aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/treesitter.lua')
-rw-r--r--lua/plugins/treesitter.lua37
1 files changed, 15 insertions, 22 deletions
diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua
index e51ef9b..e9d94e8 100644
--- a/lua/plugins/treesitter.lua
+++ b/lua/plugins/treesitter.lua
@@ -1,26 +1,19 @@
-return {
- {
- "nvim-treesitter/nvim-treesitter",
- config = function()
- require("nvim-treesitter.configs").setup({
- ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "go", "nix" },
+require("nvim-treesitter.configs").setup({
+ ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "go", "nix" },
- auto_install = true,
+ auto_install = true,
- highlight = {
- enable = true,
- },
+ highlight = {
+ enable = true,
+ },
- incremental_selection = {
- enable = true,
- keymaps = {
- init_selection = "<Leader>ss",
- node_incremental = "<Leader>si",
- scope_incremental = "<Leader>sc",
- node_decremental = "<Leader>sd",
- },
- },
- })
- end,
+ incremental_selection = {
+ enable = true,
+ keymaps = {
+ init_selection = "<Leader>ss",
+ node_incremental = "<Leader>si",
+ scope_incremental = "<Leader>sc",
+ node_decremental = "<Leader>sd",
+ },
},
-}
+})