fix depreciated nvim treesitter

This commit is contained in:
2026-04-15 02:09:37 -04:00
parent 797c1028de
commit 91bdc5e049
+41 -40
View File
@@ -79,10 +79,10 @@
plugin = nerdcommenter; plugin = nerdcommenter;
config = toLuaFile ./plugins/nerdcommenter.lua; config = toLuaFile ./plugins/nerdcommenter.lua;
} }
# { {
# plugin = nvim-tree-lua; plugin = nvim-tree-lua;
# config = toLuaFile ./plugins/nvimtree.lua; config = toLuaFile ./plugins/nvimtree.lua;
# } }
# { # {
# plugin = vim-airline; # plugin = vim-airline;
# config = toLuaFile ./plugins/airline.lua; # config = toLuaFile ./plugins/airline.lua;
@@ -104,42 +104,43 @@
plugin = lualine-nvim; plugin = lualine-nvim;
config = toLuaFile ./plugins/lualine.lua; config = toLuaFile ./plugins/lualine.lua;
} }
{ # depreciated :(
plugin = nvim-treesitter.withPlugins (p: [ # {
# p.tree-sitter-nix # plugin = nvim-treesitter.withPlugins (p: [
# p.tree-sitter-vim # # p.tree-sitter-nix
# p.tree-sitter-bash # # p.tree-sitter-vim
# p.tree-sitter-lua # # p.tree-sitter-bash
# p.tree-sitter-python # # p.tree-sitter-lua
# p.tree-sitter-json # # p.tree-sitter-python
p.bash # # p.tree-sitter-json
p.comment # p.bash
p.css # p.comment
p.dockerfile # p.css
p.fish # p.dockerfile
p.gitattributes # p.fish
p.gitignore # p.gitattributes
p.go # p.gitignore
p.gomod # p.go
p.gowork # p.gomod
p.hcl # p.gowork
p.javascript # p.hcl
p.jq # p.javascript
p.json5 # p.jq
p.json # p.json5
p.lua # p.json
p.make # p.lua
p.markdown # p.make
p.nix # p.markdown
p.python # p.nix
p.rust # p.python
p.toml # p.rust
p.typescript # p.toml
p.yaml # p.typescript
p.agda # p.yaml
]); # p.agda
config = toLuaFile ./plugins/treesitter.lua; # ]);
} # config = toLuaFile ./plugins/treesitter.lua;
# }
]; ];
# extraConfig = lib.fileContents ./init.vim; # extraConfig = lib.fileContents ./init.vim;