From 7c2b42d916dab762292cc01de0b63d55b320e9d6 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Thu, 5 Mar 2026 18:35:56 +0100 Subject: feat: move to new treesitter. --- lua/plugins/lsp.lua | 6 +++--- lua/plugins/treesitter.lua | 24 +++--------------------- 2 files changed, 6 insertions(+), 24 deletions(-) (limited to 'lua/plugins') diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 7fa01fe..8f0b6ee 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -16,6 +16,9 @@ vim.lsp.config("*", { root_markers = { '.git' }, }) +-- fix annoying lua lsp errors +require("lazydev").setup() + -- enable specific language servers vim.lsp.enable({ "nixd", @@ -33,6 +36,3 @@ vim.lsp.enable({ -- diagnostic settings vim.diagnostic.config({ virtual_text = true }) - --- fix annoying lua lsp errors -require("lazydev").setup() 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 = "ss", - node_incremental = "si", - scope_incremental = "sc", - node_decremental = "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', { -- cgit v1.1