1
Fork 0
satellite/modules/applications/neovim.nix

31 lines
742 B
Nix
Raw Normal View History

2022-01-30 20:19:35 +01:00
{ pkgs, ... }:
let
config-nvim = pkgs.vimUtils.buildVimPluginFrom2Nix {
name = "config-nvim";
src = ../../dotfiles/neovim;
};
in {
home-manager.users.adrielus.programs.neovim = {
enable = true;
package = pkgs.neovim-nightly;
2022-01-30 19:10:57 +01:00
2022-01-30 20:19:35 +01:00
extraConfig = ''
2022-01-30 19:10:57 +01:00
let g:disable_paq = v:true
luafile ${config-nvim}/init.lua
'';
2022-01-31 21:41:13 +01:00
extraPackages = [
pkgs.nodePackages.typescript
pkgs.easy-purescript-nix.purescript-language-server
];
2022-01-30 20:19:35 +01:00
2022-01-31 21:41:13 +01:00
plugins = with pkgs.vimPlugins;
with pkgs.vimExtraPlugins; [
config-nvim # my neovim config
github-nvim-theme # github theme for neovim
nvim-lspconfig # configures lsps for me
nvim-autopairs # close pairs for me
];
2022-01-30 19:10:57 +01:00
};
}