summaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/treesitter.lua9
-rw-r--r--lua/config/whichkey.lua5
2 files changed, 13 insertions, 1 deletions
diff --git a/lua/config/treesitter.lua b/lua/config/treesitter.lua
index 0e1fe07..c0881e9 100644
--- a/lua/config/treesitter.lua
+++ b/lua/config/treesitter.lua
@@ -18,5 +18,12 @@ treesitter.setup({
disable = { "" }, -- list of language that will be disabled
additional_vim_regex_highlighting = true,
},
- indent = { enable = true, disable = { "yaml" } },
+ context_commentstring = {
+ enable = true,
+ enable_autocmd = false,
+ },
+ indent = { enable = true, disable = { "yaml", "python", "css" } },
+ playground = {
+ enable = true
+ }
})
diff --git a/lua/config/whichkey.lua b/lua/config/whichkey.lua
index 143ed61..44c7074 100644
--- a/lua/config/whichkey.lua
+++ b/lua/config/whichkey.lua
@@ -181,6 +181,11 @@ local mappings = {
w = { "<cmd>lua require('spectre').open_visual({select_word=true})<cr>", "Replace Word" },
f = { "<cmd>lua require('spectre').open_file_search()<cr>", "Replace Buffer" },
},
+
+ T = {
+ name = "Treesitter",
+ p = { "<cmd>TSPlaygroundToggle<cr>", "Playground" },
+ },
}
local vopts = {