2022-01-30 20:19:35 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
2022-02-01 14:28:29 +01:00
|
|
|
# config-nvim = "/etc/nixos/configuration/dotfiles/neovim";
|
2022-01-30 20:19:35 +01:00
|
|
|
config-nvim = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
|
|
|
name = "config-nvim";
|
|
|
|
src = ../../dotfiles/neovim;
|
|
|
|
};
|
2022-02-07 12:39:08 +01:00
|
|
|
in
|
|
|
|
{
|
2022-02-01 00:19:42 +01:00
|
|
|
home-manager.users.adrielus.programs.neovim = {
|
2022-01-30 20:19:35 +01:00
|
|
|
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
|
|
|
luafile ${config-nvim}/init.lua
|
|
|
|
'';
|
|
|
|
|
2022-02-01 00:06:48 +01:00
|
|
|
extraPackages = with pkgs; [
|
2022-01-31 21:54:22 +01:00
|
|
|
# Language servers
|
2022-02-01 14:28:29 +01:00
|
|
|
nodePackages.typescript-language-server # typescript
|
2022-02-01 00:06:48 +01:00
|
|
|
easy-purescript-nix.purescript-language-server # purescript
|
|
|
|
sumneko-lua-language-server # lua
|
|
|
|
efm-langserver # auto-formatting
|
|
|
|
rnix-lsp # nix
|
2022-01-31 21:54:22 +01:00
|
|
|
|
2022-02-01 00:06:48 +01:00
|
|
|
# Formatters
|
|
|
|
luaformatter # lua
|
2022-02-01 15:18:36 +01:00
|
|
|
prettierd # prettier but faster
|
2022-02-01 14:28:29 +01:00
|
|
|
|
|
|
|
# Others
|
2022-02-07 12:12:28 +01:00
|
|
|
fd # file finder
|
|
|
|
ripgrep # grep rewrite (I think?)
|
2022-02-01 14:28:29 +01:00
|
|
|
nodePackages.typescript # typescript language
|
2022-01-31 21:41:13 +01:00
|
|
|
];
|
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-02-07 12:12:28 +01:00
|
|
|
telescope-nvim # fuzzy search for say opening files
|
2022-02-01 00:06:48 +01:00
|
|
|
purescript-vim # purescript syntax highlighting
|
|
|
|
nvim-comment # allows toggling line-comments
|
2022-02-01 14:28:29 +01:00
|
|
|
nvim-treesitter # use treesitter for syntax highlighting
|
2022-02-01 15:18:36 +01:00
|
|
|
startup-nvim # splash screen
|
2022-02-07 12:12:28 +01:00
|
|
|
vim-devicons # nice looking icons
|
2022-02-07 12:39:08 +01:00
|
|
|
nvim-web-devicons # fork of vim-devicons?
|
2022-02-07 12:27:36 +01:00
|
|
|
plenary-nvim # async utility lib it seems?
|
2022-02-07 12:39:08 +01:00
|
|
|
nerdtree # file tree
|
|
|
|
nerdtree-git-plugin # show git status for files
|
|
|
|
nerdtree-syntax-highlight # syntax hightlight files in the tree
|
2022-01-31 21:41:13 +01:00
|
|
|
];
|
2022-01-30 19:10:57 +01:00
|
|
|
};
|
|
|
|
}
|