fix(nvim): migrate to native tree-sitter integration and resolve lifecycle crash

This commit is contained in:
kiskaadee committed 2026-06-18 19:14:13 -05:00
1 parent 02e3898364
commit 43a0204a2c
1 file changed
+11 -15
+11 -15
View File
@@ -21,19 +21,22 @@
vim.opt.smartindent = true vim.opt.smartindent = true
vim.opt.wrap = false vim.opt.wrap = false
vim.opt.termguicolors = true vim.opt.termguicolors = true
-- Apply colorscheme after plugins load
vim.cmd("colorscheme catppuccin-mocha")
''; '';
## Declarative Plugin Management ## Declarative Plugin Management
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
# Color scheme # Color scheme loaded dynamically
catppuccin-nvim {
plugin = catppuccin-nvim;
type = "lua";
config = ''
vim.cmd("packadd catppuccin-nvim")
vim.cmd("colorscheme catppuccin-mocha")
'';
}
# Advanced Syntax Highlighting for Python, Rust and Nix # Advanced Syntax Highlighting for Python, Rust and Nix
{ (nvim-treesitter.withPlugins (p: with p; [
plugin = nvim-treesitter.withPlugins (p: with p; [
python python
rust rust
nix nix
@@ -41,14 +44,7 @@
java java
javascript javascript
markdown markdown
]); ]))
type = "lua";
config = ''
require('nvim-treesitter.configs').setup({
highlight = {enable = true },
})
'';
}
]; ];
}; };
} }