users/foo-dogsquared/programs/nixvim: add various language support

This commit is contained in:
Gabriel Arazas 2024-02-13 12:32:27 +08:00
parent 7736fd7059
commit ce14a15863
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 61 additions and 0 deletions

View File

@ -17,6 +17,7 @@ in
./note-taking.nix
]
++ lib.optionals userCfg.setups.development.enable [
./dev.nix
./lsp.nix
./dap.nix
];

View File

@ -0,0 +1,60 @@
# NixVim config for some light software development. This is where language
# support plugins mainly reside.
{ config, pkgs, ... }:
{
plugins.treesitter.grammarPackages =
with config.plugins.treesitter.package.builtGrammars; [
agda
arduino
astro
awk
blueprint
cairo
cmake
commonlisp
csv
cue
dart
devicetree
diff
elixir
elm
erlang
fennel
fish
git_config
git_rebase
gitattributes
gitcommit
gitignore
gdscript
glsl
go
hcl
janet-simple
kotlin
make
nickel
perl
ruby
rust
scheme
sparql
sql
supercollider
wgsl
wgsl_bevy
zig
]
++ (with pkgs.tree-sitter-grammars; [
tree-sitter-elisp
tree-sitter-nu
]);
extraPlugins = with pkgs.vimPlugins; [
vim-nickel
vim-nix
zig-vim
];
}