nvim in home
This commit is contained in:
parent
edf807c9e0
commit
3ab3e29786
2 changed files with 51 additions and 4 deletions
|
@ -103,14 +103,11 @@
|
|||
|
||||
git-credential-oauth
|
||||
|
||||
rustup
|
||||
neovim
|
||||
tree-sitter
|
||||
|
||||
firefox
|
||||
brave
|
||||
gparted
|
||||
|
||||
rustup
|
||||
gnumake
|
||||
zig
|
||||
go
|
||||
|
|
50
home.nix
50
home.nix
|
@ -58,6 +58,56 @@
|
|||
# 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.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue