mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -04:00
refactor(textobj): use configs and don't use VimL
This commit is contained in:
parent
7c7d4e5270
commit
cadb3ee1ff
4 changed files with 78 additions and 62 deletions
|
|
@ -157,12 +157,15 @@ local config = {
|
|||
return queries.get_query(ft, 'highlights') ~= nil
|
||||
end
|
||||
},
|
||||
-- selection = {
|
||||
-- enable = false,
|
||||
-- disable = {},
|
||||
-- keymaps = {},
|
||||
-- is_supported = function() return false end
|
||||
-- },
|
||||
textobj = {
|
||||
enable = false,
|
||||
disable = {},
|
||||
keymaps = {
|
||||
node_incremental="grn",
|
||||
scope_incremental="grc"
|
||||
},
|
||||
is_supported = function() return true end
|
||||
},
|
||||
-- folding = {
|
||||
-- enable = false,
|
||||
-- disable = {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue