nixos-config/home/editors/neovim/default.nix

81 lines
1.6 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2019-10-19 12:55:35 +02:00
2019-12-12 15:42:12 +01:00
let
2020-09-26 23:54:07 +02:00
vimLua = lua: ''
lua << EOF
${lua}
EOF
'';
in {
2021-05-05 00:05:37 +02:00
home.packages = with pkgs; [ graphviz ];
2020-09-26 23:54:07 +02:00
2019-10-19 12:55:35 +02:00
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
2021-03-26 03:32:40 +01:00
nvcode-color-schemes-vim
editorconfig-nvim
2020-03-18 11:26:16 +01:00
direnv-vim
2019-12-12 15:42:12 +01:00
fzf-vim
lualine-nvim
nvim-tree-lua
toggleterm-nvim
2020-01-23 13:18:11 +01:00
vim-startify
2020-10-03 16:52:45 +02:00
vim-visual-multi
2019-12-12 15:42:12 +01:00
vim-surround
kommentary
lightspeed-nvim
2021-05-05 00:05:37 +02:00
which-key-nvim
neogit
plenary-nvim
gitsigns-nvim
2020-03-04 19:03:00 +01:00
vim-test
2021-08-04 22:21:44 +02:00
nvim-autopairs
2019-12-12 15:42:12 +01:00
camelcasemotion
2020-09-23 09:36:25 +02:00
wmgraphviz-vim
2021-04-13 15:15:09 +02:00
nvim-compe
2021-08-04 22:21:44 +02:00
vim-vsnip
2019-12-12 15:42:12 +01:00
2021-05-05 00:05:37 +02:00
(nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars))
2021-03-04 20:03:38 +01:00
nvim-treesitter-context
nvim-treesitter-refactor
nvim-treesitter-textobjects
nvim-ts-autotag
2021-04-13 15:15:09 +02:00
nvim-ts-context-commentstring
2021-03-04 20:03:38 +01:00
2021-08-04 22:21:44 +02:00
# lsp
2020-10-03 16:52:45 +02:00
nvim-lspconfig
2021-08-04 22:21:44 +02:00
nvim-lightbulb
2021-11-13 04:23:32 +01:00
nvim-lspfuzzy
2021-08-04 22:21:44 +02:00
# dap
2021-09-01 12:52:34 +02:00
nvim-dap
nvim-dap-virtual-text
2020-08-27 13:33:29 +02:00
2019-12-12 15:42:12 +01:00
vim-orgmode
2019-10-19 12:55:35 +02:00
];
2020-06-18 16:22:24 +02:00
extraConfig = with builtins;
# readFile ./vim-surround-fix.vim +
vimLua (lib.foldl (r: f: r + "\n" + readFile f) "" [
./init.lua
./startify.lua
./lualine.lua
./which-key.lua
./gitsigns.lua
./test.lua
./lsp/extensions.lua
./lsp/lsp.lua
./lsp/mappings.lua
./dap/dap.lua
./dap/mappings.lua
./treesitter.lua
]);
2021-04-13 15:15:09 +02:00
withNodeJs = false;
2021-05-05 00:05:37 +02:00
withPython3 = false;
2019-10-19 12:55:35 +02:00
};
2020-10-20 15:47:53 +02:00
2021-03-04 20:03:38 +01:00
xdg.configFile."nvim/filetype.vim".source = ./filetype.vim;
2020-10-20 15:47:53 +02:00
xdg.configFile."nvim/scripts.vim".source = ./scripts.vim;
2019-10-19 12:55:35 +02:00
}