# Neovim with LSP, completion, fuzzy finding and format-on-save. # The editor config is in init.lua next to this file. It sets the catppuccin # colorscheme itself, so Stylix's neovim target stays off (modules/theme/stylix.nix). { flake.modules.homeManager.neovim = { pkgs, ... }: { programs.neovim = { enable = true; defaultEditor = true; viAlias = true; vimAlias = true; plugins = with pkgs.vimPlugins; [ nvim-treesitter.withAllGrammars nvim-lspconfig blink-cmp telescope-nvim telescope-fzf-native-nvim plenary-nvim lualine-nvim gitsigns-nvim which-key-nvim oil-nvim conform-nvim catppuccin-nvim nvim-web-devicons mini-nvim ]; # Language servers, formatters and search tools, visible to nvim only. extraPackages = with pkgs; [ nixd nixfmt lua-language-server stylua bash-language-server shfmt ripgrep fd ]; initLua = builtins.readFile ./init.lua; }; }; }