2021-12-06 22:35:29 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
customPlugins = import ./plugins.nix { inherit pkgs; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.neovim-nightly;
|
|
|
|
|
2021-12-07 15:23:17 +00:00
|
|
|
withNodeJs = false;
|
|
|
|
withRuby = false;
|
|
|
|
withPython3 = false;
|
|
|
|
|
2021-12-06 22:35:29 +00:00
|
|
|
extraConfig = ''
|
2021-12-16 20:13:07 +00:00
|
|
|
lua require('impatient')
|
2021-12-06 22:35:29 +00:00
|
|
|
lua require('nix_init')
|
|
|
|
'';
|
|
|
|
|
|
|
|
extraPackages = with pkgs; [
|
2021-12-14 19:32:50 +00:00
|
|
|
nodejs-16_x
|
2021-12-06 22:35:29 +00:00
|
|
|
tree-sitter
|
|
|
|
|
|
|
|
# LSP
|
|
|
|
nodePackages.bash-language-server
|
|
|
|
nodePackages.dockerfile-language-server-nodejs
|
|
|
|
nodePackages.vscode-langservers-extracted
|
|
|
|
nodePackages.yaml-language-server
|
|
|
|
rnix-lsp
|
|
|
|
sqls
|
|
|
|
taplo-lsp
|
|
|
|
|
|
|
|
# LSP Tools
|
|
|
|
hadolint
|
|
|
|
shellcheck
|
|
|
|
shfmt
|
|
|
|
];
|
|
|
|
|
|
|
|
plugins = with customPlugins; [
|
|
|
|
# Fixes
|
2021-12-16 20:13:07 +00:00
|
|
|
impatient-nvim
|
2021-12-06 22:35:29 +00:00
|
|
|
FixCursorHold-nvim
|
|
|
|
vim-auto-cursorline
|
|
|
|
|
|
|
|
# Utils
|
|
|
|
popup-nvim
|
|
|
|
plenary-nvim
|
|
|
|
nvim-web-devicons
|
|
|
|
|
|
|
|
# Keybindings
|
|
|
|
which-key-nvim
|
2021-12-07 20:59:18 +00:00
|
|
|
{ plugin = vim-yoink; optional = true; }
|
|
|
|
{ plugin = vim-cutlass; optional = true; }
|
2021-12-07 22:01:39 +00:00
|
|
|
{ plugin = vim-subversive; optional = true; }
|
2021-12-06 22:35:29 +00:00
|
|
|
|
|
|
|
# Themes
|
|
|
|
dracula-nvim
|
|
|
|
|
|
|
|
# Syntax
|
|
|
|
nvim-treesitter
|
|
|
|
playground
|
|
|
|
Jenkinsfile-vim-syntax
|
|
|
|
|
|
|
|
# Telescope
|
|
|
|
telescope-nvim
|
|
|
|
telescope-fzf-native-nvim
|
|
|
|
project-nvim
|
|
|
|
todo-comments-nvim
|
|
|
|
|
|
|
|
# LSP
|
|
|
|
nvim-lspconfig
|
2021-12-18 22:05:38 +00:00
|
|
|
null-ls-nvim
|
2021-12-15 19:43:52 +00:00
|
|
|
trouble-nvim
|
2021-12-06 22:35:29 +00:00
|
|
|
lspkind-nvim
|
|
|
|
lsp-status-nvim
|
|
|
|
vim-illuminate
|
|
|
|
|
|
|
|
# cmp
|
|
|
|
nvim-cmp
|
|
|
|
cmp-nvim-lsp
|
|
|
|
LuaSnip
|
|
|
|
cmp_luasnip
|
|
|
|
cmp-nvim-lua
|
|
|
|
cmp-path
|
|
|
|
cmp-buffer
|
|
|
|
cmp-treesitter
|
|
|
|
cmp-cmdline
|
|
|
|
cmp-nvim-lsp-document-symbol
|
|
|
|
|
|
|
|
# Pairs
|
|
|
|
nvim-autopairs
|
|
|
|
nvim-ts-autotag
|
|
|
|
vim-matchup
|
|
|
|
|
|
|
|
# Comments
|
|
|
|
Comment-nvim
|
|
|
|
|
|
|
|
# Textobjects
|
|
|
|
nvim-treesitter-textobjects
|
|
|
|
surround-nvim
|
|
|
|
|
|
|
|
# UI
|
|
|
|
undotree
|
|
|
|
lualine-nvim
|
2021-12-15 19:43:52 +00:00
|
|
|
bufferline-nvim
|
2021-12-06 22:35:29 +00:00
|
|
|
nvim-tree-lua
|
|
|
|
indent-blankline-nvim
|
|
|
|
virt-column-nvim
|
|
|
|
nvim-colorizer-lua
|
|
|
|
gitsigns-nvim
|
|
|
|
spellsitter-nvim
|
|
|
|
nvim-notify
|
|
|
|
nvim-visual-eof-lua
|
|
|
|
FTerm-nvim
|
|
|
|
editorconfig-vim
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.configFile.nvim = {
|
|
|
|
source = ../../config/nvim;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
}
|