49 lines
1.4 KiB
Nix
49 lines
1.4 KiB
Nix
{ pkgs, ... }:
|
|
let
|
|
# config-nvim = "/etc/nixos/configuration/dotfiles/neovim";
|
|
config-nvim = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
|
name = "config-nvim";
|
|
src = ../../dotfiles/neovim;
|
|
};
|
|
in
|
|
{
|
|
home-manager.users.adrielus.programs.neovim = {
|
|
enable = true;
|
|
package = pkgs.neovim-nightly;
|
|
|
|
extraConfig = ''
|
|
luafile ${config-nvim}/init.lua
|
|
'';
|
|
|
|
extraPackages = with pkgs; [
|
|
# Language servers
|
|
nodePackages.typescript-language-server # typescript
|
|
easy-purescript-nix.purescript-language-server # purescript
|
|
sumneko-lua-language-server # lua
|
|
efm-langserver # auto-formatting
|
|
rnix-lsp # nix
|
|
|
|
# Formatters
|
|
luaformatter # lua
|
|
prettierd # prettier but faster
|
|
|
|
# Others
|
|
fzf # Required by lua-fzf
|
|
nodePackages.typescript # typescript language
|
|
];
|
|
|
|
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
|
|
fzf-lua # fuzzy search for say opening files
|
|
purescript-vim # purescript syntax highlighting
|
|
nvim-comment # allows toggling line-comments
|
|
nvim-treesitter # use treesitter for syntax highlighting
|
|
startup-nvim # splash screen
|
|
];
|
|
};
|
|
}
|