refactor: add treesitter playground

This commit is contained in:
Dinesh Salunke 2023-06-26 23:25:08 +05:30
parent 8dd95bef24
commit dfdfcabd5d

View File

@ -27,6 +27,7 @@ return {
"bash",
"c",
"html",
"fish",
"javascript",
"json",
"lua",
@ -55,4 +56,36 @@ return {
},
},
},
{
"nvim-treesitter/playground",
config = function()
require("nvim-treesitter.configs").setup({
playground = {
enable = true,
updatetime = 25,
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 = "?",
},
},
})
end,
},
{
"windwp/nvim-ts-autotag",
opts = {
enable_rename = true,
enable_close_on_slash = true,
enable_close = true,
},
},
}