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

94 lines
1.9 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 {
2022-08-08 22:56:15 +02:00
home.packages = with pkgs; [ neovide 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
telescope-nvim
telescope-project-nvim
telescope-fzy-native-nvim
lualine-nvim
nvim-web-devicons
nvim-tree-lua
toggleterm-nvim
alpha-nvim
auto-session
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
luasnip
nvim-kitty-navigator
nvim-cmp
2022-03-30 11:48:46 +02:00
cmp-path
cmp-buffer
cmp-nvim-lsp
cmp_luasnip
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
null-ls-nvim
2021-08-04 22:21:44 +02:00
nvim-lightbulb
# dap
2021-09-01 12:52:34 +02:00
nvim-dap
2022-04-25 21:10:56 +02:00
nvim-dap-ui
2021-09-01 12:52:34 +02:00
nvim-dap-virtual-text
2020-08-27 13:33:29 +02:00
2022-05-19 00:51:22 +02:00
neorg
2019-10-19 12:55:35 +02:00
];
2020-06-18 16:22:24 +02:00
extraConfig = with builtins;
vimLua (lib.foldl (r: f: r + "\n" + readFile f) "" [
./init.lua
./alpha.lua
./auto-session.lua
./lualine.lua
./which-key.lua
./gitsigns.lua
./test.lua
2022-03-30 11:48:46 +02:00
./completion.lua
2022-05-03 20:41:39 +02:00
./diagnostic.lua
./lsp/extensions.lua
./lsp/lsp.lua
./lsp/mappings.lua
./dap/dap.lua
./dap/mappings.lua
./treesitter.lua
./telescope.lua
2022-05-19 00:51:22 +02:00
./neorg.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
xdg.configFile."nvim/filetype.lua".source = ./filetype.lua;
2019-10-19 12:55:35 +02:00
}