fix(nvim): migrate to native tree-sitter integration and resolve lifecycle crash
This commit is contained in:
1 parent
02e3898364
commit
43a0204a2c
1 file changed
+18
-22
+18
-22
@@ -21,34 +21,30 @@
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.wrap = false
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
-- Apply colorscheme after plugins load
|
||||
vim.cmd("colorscheme catppuccin-mocha")
|
||||
'';
|
||||
|
||||
## Declarative Plugin Management
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
# Color scheme
|
||||
catppuccin-nvim
|
||||
# Color scheme loaded dynamically
|
||||
{
|
||||
plugin = catppuccin-nvim;
|
||||
type = "lua";
|
||||
config = ''
|
||||
vim.cmd("packadd catppuccin-nvim")
|
||||
vim.cmd("colorscheme catppuccin-mocha")
|
||||
'';
|
||||
}
|
||||
|
||||
# Advanced Syntax Highlighting for Python, Rust and Nix
|
||||
{
|
||||
plugin = nvim-treesitter.withPlugins (p: with p; [
|
||||
python
|
||||
rust
|
||||
nix
|
||||
lua
|
||||
java
|
||||
javascript
|
||||
markdown
|
||||
]);
|
||||
type = "lua";
|
||||
config = ''
|
||||
require('nvim-treesitter.configs').setup({
|
||||
highlight = {enable = true },
|
||||
})
|
||||
'';
|
||||
}
|
||||
(nvim-treesitter.withPlugins (p: with p; [
|
||||
python
|
||||
rust
|
||||
nix
|
||||
lua
|
||||
java
|
||||
javascript
|
||||
markdown
|
||||
]))
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user