From 5cdb4e421a809de51c3ebe8404e50d732721238b Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 26 Sep 2021 21:26:36 +0530 Subject: init --- programs/neovim.nix | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 programs/neovim.nix (limited to 'programs/neovim.nix') diff --git a/programs/neovim.nix b/programs/neovim.nix new file mode 100644 index 0000000..18baeac --- /dev/null +++ b/programs/neovim.nix @@ -0,0 +1,45 @@ +{ config +, pkgs +, ... +}: + +{ + programs.neovim = { + enable = true; + extraConfig = builtins.readFile ./init.vim; + withNodeJs = false; + vimAlias = true; + withPython3 = true; + extraPackages = with pkgs; [ + gcc + python37Packages.yapf + hlint + ocamlformat + ocamlPackages.ocaml-lsp + ]; + plugins = with pkgs.vimPlugins; [ + # neovim only + nvim-lspconfig + (nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars)) + completion-nvim + + # tpope + vim-surround + vim-unimpaired + vim-repeat + # vim-fugitive + + # syntax + rust-vim + vim-nix + vimtex + + # handy + # vim-gitgutter + tabular + emmet-vim + vimwiki + fzf-vim + ]; + }; +} -- cgit v1.2.3