From c2ff70b0799a91d93a3f3dc7ef3088d039df044b Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Mon, 20 Oct 2025 17:01:16 +0200 Subject: [PATCH 1/2] feat: setup treesitter. --- lazy-lock.json | 3 ++- lua/plugins/treesitter.lua | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 lua/plugins/treesitter.lua diff --git a/lazy-lock.json b/lazy-lock.json index 5741eb9..7079b38 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,4 +1,5 @@ { "gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" }, - "lazy.nvim": { "branch": "main", "commit": "1ea3c4085785f460fb0e46d2fe1ee895f5f9e7c1" } + "lazy.nvim": { "branch": "main", "commit": "1ea3c4085785f460fb0e46d2fe1ee895f5f9e7c1" }, + "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" } } diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua new file mode 100644 index 0000000..e51ef9b --- /dev/null +++ b/lua/plugins/treesitter.lua @@ -0,0 +1,26 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + config = function() + require("nvim-treesitter.configs").setup({ + ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "go", "nix" }, + + auto_install = true, + + highlight = { + enable = true, + }, + + incremental_selection = { + enable = true, + keymaps = { + init_selection = "ss", + node_incremental = "si", + scope_incremental = "sc", + node_decremental = "sd", + }, + }, + }) + end, + }, +} From 2d8bfe397089df930e1d54914108bb3ceeba0bb4 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Mon, 20 Oct 2025 17:01:26 +0200 Subject: [PATCH 2/2] feat(lazy): disable some default plugins. --- lua/config/lazy.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index a2a92ab..b5bab23 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -28,4 +28,18 @@ require("lazy").setup({ rocks = { enabled = false }, + performance = { + rtp = { + disabled_plugins = { + "gzip", + "matchit", + "matchparen", + "netrwPlugin", + "tarPlugin", + "tohtml", + "tutor", + "zipPlugin", + }, + }, + }, })