1
0
Fork 0
dotfiles/programs/nvim/default.nix

127 lines
2.3 KiB
Nix
Raw Normal View History

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;
withNodeJs = false;
withRuby = false;
withPython3 = false;
2021-12-06 22:35:29 +00:00
extraConfig = ''
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
2021-12-20 17:43:23 +00:00
nodePackages.typescript-language-server
2021-12-06 22:35:29 +00:00
nodePackages.vscode-langservers-extracted
nodePackages.yaml-language-server
rnix-lsp
sqls
taplo-lsp
# LSP Tools
hadolint
shellcheck
shfmt
2021-12-18 23:25:21 +00:00
statix
2021-12-06 22:35:29 +00:00
];
plugins = with customPlugins; [
# Fixes
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
2021-12-19 20:32:20 +00:00
cmp-nvim-lsp-signature-help
2021-12-06 22:35:29 +00:00
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;
};
}