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

69 lines
1.5 KiB
Nix
Raw Normal View History

2019-10-19 12:55:35 +02:00
{ config, pkgs, ... }:
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
2019-12-12 15:42:12 +01:00
editorconfig-vim
2020-03-18 11:26:16 +01:00
direnv-vim
2019-12-12 15:42:12 +01:00
fzf-vim
lightline-vim
nerdtree
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
vim-commentary
vim-easymotion
2021-05-05 00:05:37 +02:00
which-key-nvim
2020-01-23 13:18:11 +01:00
vim-fugitive
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
# dap
2021-03-04 14:48:23 +01: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;
2021-03-04 14:48:23 +01:00
readFile ./init.vim # + readFile ./vim-surround-fix.vim
2021-05-05 00:05:37 +02:00
+ vimLua (readFile ./which-key.lua) + vimLua (readFile ./gitsigns.lua)
+ readFile ./test.vim + vimLua (readFile ./lsp/extensions.lua)
+ readFile ./lsp/lsp.vim + vimLua (readFile ./lsp/lsp.lua)
+ vimLua (readFile ./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
}