mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-18 21:27:42 +00:00
Nvim: enable text objects for functions and classes
This commit is contained in:
parent
59cac76657
commit
be0452583c
@ -69,6 +69,33 @@ return {
|
||||
goto_previous_start = { ["[f"] = "@function.outer", ["[c"] = "@class.outer" },
|
||||
goto_previous_end = { ["[F"] = "@function.outer", ["[C"] = "@class.outer" },
|
||||
},
|
||||
select = {
|
||||
enable = true,
|
||||
lookahead = true,
|
||||
keymaps = {
|
||||
["af"] = {
|
||||
query = "@function.outer",
|
||||
desc = "Select outer part of a function",
|
||||
},
|
||||
["if"] = {
|
||||
query = "@function.inner",
|
||||
desc = "Select inner part of a function",
|
||||
},
|
||||
["ac"] = {
|
||||
query = "@class.outer",
|
||||
desc = "Select outer part of a class",
|
||||
},
|
||||
["ic"] = {
|
||||
query = "@class.inner",
|
||||
desc = "Select inner part of a class",
|
||||
},
|
||||
["as"] = {
|
||||
query = "@scope",
|
||||
query_group = "locals",
|
||||
desc = "Select language scope",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
--- @param opts TSConfig
|
||||
|
Loading…
Reference in New Issue
Block a user