diff --git a/modules/editors/neovim/default.nix b/modules/editors/neovim/default.nix index 94d659f..5dcc41a 100644 --- a/modules/editors/neovim/default.nix +++ b/modules/editors/neovim/default.nix @@ -10,7 +10,57 @@ in { config = mkIf cfg.enable { user.packages = with pkgs; [ - neovim + (neovim.override { + configure = { + packages.myPlugins = with pkgs.vimPlugins; { + start = [ + (nvim-treesitter.withPlugins ( + plugins: with plugins; [ + bash + c + cmake + cpp + css + dockerfile + elm + glsl + graphql + haskell + http + html + java + javascript + jsdoc + json + json5 + latex + lua + markdown + ninja + nix + org + perl + php + pug + python + regex + rst + ruby + rust + scala + scss + toml + tsx + typescript + vim + yaml + zig + ] + )) + ]; + }; + }; + }) ]; home.configFile = { diff --git a/modules/editors/neovim/lua/config/treesitter.lua b/modules/editors/neovim/lua/config/treesitter.lua index fcfd616..a95ee64 100644 --- a/modules/editors/neovim/lua/config/treesitter.lua +++ b/modules/editors/neovim/lua/config/treesitter.lua @@ -1,44 +1,4 @@ require("nvim-treesitter.configs").setup({ - ensure_installed = { - "bash", - "c", - "cmake", - "cpp", - "css", - "dockerfile", - "glsl", - "graphql", - "haskell", - "http", - "html", - "java", - "javascript", - "jsdoc", - "json", - "json5", - "latex", - "lua", - "markdown", - "ninja", - "nix", - "org", - "perl", - "php", - "pug", - "python", - "regex", - "rst", - "ruby", - "rust", - "scala", - "scss", - "toml", - "tsx", - "typescript", - "vim", - "yaml", - "zig" - }, ignore_install = {}, highlight = { enable = true,