From f6464096aadcd5e709554b8f3f83bfe403af0b7d Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 23 Jun 2023 09:14:45 +0900 Subject: [PATCH] add: nvim: treesitter playground --- dotfiles/neovim/init.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index d666a7c..261fe74 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -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 = '', + show_help = '?', + }, + }, }