nvim in home

sh-initrd-on-root
Zynh Ludwig 2024-05-29 14:34:47 -07:00
parent edf807c9e0
commit 3ab3e29786
2 changed files with 51 additions and 4 deletions

View File

@ -103,14 +103,11 @@
git-credential-oauth git-credential-oauth
rustup
neovim
tree-sitter
firefox firefox
brave brave
gparted gparted
rustup
gnumake gnumake
zig zig
go go

View File

@ -58,6 +58,56 @@
# systemd.enable = true; # systemd.enable = true;
# }; # };
programs.neovim =
let
treesitterWithGrammars = (pkgs.vimPlugins.nvim-treesitter.withPlugins (p: [
p.bash
p.comment
p.css
p.dockerfile
p.fish
p.gitattributes
p.gitignore
p.go
p.gomod
p.gowork
p.javascript
p.json5
p.json
p.lua
p.make
p.markdown
p.nix
p.python
p.rust
p.toml
p.typescript
p.yaml
]));
treesitter-parsers = pkgs.symlinkJoin {
name = "treesitter-parsers";
paths = treesitterWithGrammars.dependencies;
};
in
{
enable = true;
withNodeJs = true;
# extraConfig = ''vim.opt.runtimepath:append ("${treesitter-parsers}")'';
extraLuaConfig = ''
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
vim.g.editorconfig = true
vim.opt.runtimepath:append ("${treesitter-parsers}")
'';
plugins = [
treesitterWithGrammars
];
};
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }