diff options
Diffstat (limited to '')
| -rw-r--r-- | home-manager/neovim.nix | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/home-manager/neovim.nix b/home-manager/neovim.nix new file mode 100644 index 0000000..7b1554e --- /dev/null +++ b/home-manager/neovim.nix @@ -0,0 +1,94 @@ +{ pkgs, config, ...}: +let + unstable = import <nixos-unstable> {}; + treesitterWithGrammars = (unstable.vimPlugins.nvim-treesitter.withPlugins (p : [ + p.bash + p.comment + p.css + p.dockerfile + p.gitattributes + p.gitignore + p.go + p.gomod + p.gowork + p.rust + p.javascript + p.typescript + p.json5 + p.json + p.lua + p.markdown + p.nix + p.python + p.java + p.rust + p.toml + p.vue + p.yaml + p.php + p.latex + ])); + treesitter-parsers = pkgs.symlinkJoin { + name = "treesitter-parsers"; + paths = treesitterWithGrammars.dependencies; + }; + +in +{ + programs.neovim = { + enable = true; + # package = unstable.neovim; + defaultEditor = true; + viAlias = true; + vimAlias = true; + # vimdiffAlias = true; + # # withPython3 = false; + # # withNodeJs = false; + # # withRuby = false; + # + coc.enable = false; + # + plugins = [ + treesitterWithGrammars + ]; + }; + + home.file."./.config/nvim/lua/wilkuu/init.lua".text = '' + require("wilkuu.set") + require("wilkuu.remap") + ''; + #vim.opt.runtimepath:append("${treesitter-parsers}") + + home.file."./.config/nvim/lua/wilkuu/nix.lua".text = '' + return { + vue_ts_plugin = "/home/wilkuu/.npm/@vue/typescript-plugin", + } + ''; + + + # home.file."./.local/share/nvim/nix/nvim-treesitter/" = { + # source = treesitterWithGrammars; + # recursive = true; + # }; + + home.sessionPath = [ + "/home/wilkuu/.npm/bin/" + ]; + + home.packages = with pkgs; [ + lua + lua-language-server + gopls + go + typescript + nodejs_22 + rustup + nixd + nixfmt-rfc-style + pyright + nodePackages.intelephense + texlive.combined.scheme-full + texlab + ]; + +} |
