add: nvim: treesitter playground

This commit is contained in:
qwjyh 2023-06-23 09:14:45 +09:00
parent 153dd0b707
commit f6464096aa

View file

@ -103,6 +103,10 @@ require('lazy').setup({
"nvim-treesitter/nvim-treesitter-textobjects",
},
},
{
"nvim-treesitter/playground",
lazy = true,
},
{
"andymass/vim-matchup",
config = function ()
@ -364,6 +368,24 @@ require'nvim-treesitter.configs'.setup {
},
},
},
playground = {
enable = true,
disable = {},
updatetime = 25,
persist_queries = false,
keybindings = {
toggle_query_editor = 'o',
toggle_hl_groups = 'i',
toggle_injected_languages = 't',
toggle_anonymous_nodes = 'a',
toggle_language_display = 'I',
focus_language = 'f',
unfocus_language = 'F',
update = 'R',
goto_node = '<cr>',
show_help = '?',
},
},
}