reorganize neovim hm

main
Zynh Ludwig 2024-05-29 15:58:08 -07:00
parent c06618330b
commit bcbf30fd2e
1 changed files with 5 additions and 9 deletions

View File

@ -61,6 +61,8 @@
programs.neovim = programs.neovim =
let let
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
nvim-treesitter = pkgs.vimPlugins.nvim-treesitter; nvim-treesitter = pkgs.vimPlugins.nvim-treesitter;
treesitterWithGrammars = (nvim-treesitter.withPlugins (_: nvim-treesitter.allGrammars)); treesitterWithGrammars = (nvim-treesitter.withPlugins (_: nvim-treesitter.allGrammars));
@ -70,10 +72,9 @@
}; };
in in
{ {
inherit package;
enable = true; enable = true;
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
withNodeJs = true;
# extraConfig = ''vim.opt.runtimepath:append ("${treesitter-parsers}")'';
extraLuaConfig = '' extraLuaConfig = ''
-- bootstrap lazy.nvim, LazyVim and your plugins -- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy") require("config.lazy")
@ -82,15 +83,10 @@
vim.opt.runtimepath:append ("${treesitter-parsers}") vim.opt.runtimepath:append ("${treesitter-parsers}")
''; '';
extraPackages = with pkgs; [
lua-language-server
rust-analyzer-unwrapped
nil
];
plugins = [ plugins = [
treesitterWithGrammars treesitterWithGrammars
]; ];
withNodeJs = true;
}; };
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.