feat(nvim): add Treesitter text objects

This commit is contained in:
Oliver Davies 2022-05-11 10:04:33 +01:00
parent 6b8bb7daf2
commit 0926ae9671
2 changed files with 15 additions and 1 deletions

View file

@ -17,7 +17,20 @@ configs.setup {
},
matchup = {
enable = true,
}
},
textobjects = {
select = {
enable = true,
lookahead = true,
keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
["ac"] = "@class.outer",
["ic"] = "@class.inner",
},
},
},
}
local nmap = require "opdavies.keymap".nmap