diff options
| author | Crony Akatsuki <crony@cronyakatsuki.xyz> | 2026-03-05 18:35:56 +0100 |
|---|---|---|
| committer | Crony Akatsuki <crony@cronyakatsuki.xyz> | 2026-03-05 18:35:56 +0100 |
| commit | 7c2b42d916dab762292cc01de0b63d55b320e9d6 (patch) | |
| tree | 087a06761f9e5d9d7763d0ca48431b6fa5eefe3b /lua/plugins/treesitter.lua | |
| parent | 84168cc23170da722538db84b04b44ec9f731148 (diff) | |
| download | nvim-7c2b42d916dab762292cc01de0b63d55b320e9d6.zip nvim-7c2b42d916dab762292cc01de0b63d55b320e9d6.tar.gz | |
feat: move to new treesitter.
Diffstat (limited to 'lua/plugins/treesitter.lua')
| -rw-r--r-- | lua/plugins/treesitter.lua | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 6ead4ba..4284957 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,28 +1,10 @@ vim.pack.add({ - { src = "https://github.com/nvim-treesitter/nvim-treesitter", name = "nvim-treesitter" }, + { src = "https://github.com/nvim-treesitter/nvim-treesitter" }, }) ---@diagnostic disable: missing-fields -require'nvim-treesitter'.setup { - -- ensure_installed = { "go", "nix" }, +require 'nvim-treesitter'.setup {} - auto_install = 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", - }, - }, -} - -require'nvim-treesitter'.install { 'go', 'nix'} +require 'nvim-treesitter'.install { 'go', 'nix', 'lua', 'json', 'html', 'markdown_inline', 'python', 'bash', 'zsh', 'just', 'yaml' } -- run tsupdate when updating nvim-treesitter vim.api.nvim_create_autocmd('PackChanged', { |
