user/neovim-minimal: init

This commit is contained in:
LavaDesu 2022-02-02 11:00:43 +07:00
parent 825120f549
commit 5218910a2b
Signed by: cilly
GPG key ID: 6500251E087653C9
4 changed files with 144 additions and 1 deletions

View file

@ -0,0 +1,44 @@
{ config, lib, pkgs, ... }: {
systemd.user.tmpfiles.rules = [
"D %t/vim/swap 0755 - - - -"
"D %t/vim/undo 0755 - - - -"
];
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
withNodeJs = false;
plugins = with pkgs.vimPlugins; [
ctrlp-vim
lualine-nvim
nerdtree
tokyonight-nvim
vim-fugitive
vim-nix
vim-repeat
vim-signify
vim-surround
nvim-cmp
nvim-lspconfig
cmp-nvim-lsp
cmp_luasnip
luasnip
(pkgs.me.nvim-treesitter-nightly.withPlugins (p: with p; [
tree-sitter-comment
tree-sitter-json
tree-sitter-lua
tree-sitter-nix
tree-sitter-toml
tree-sitter-yaml
]))
];
extraConfig = ''
luafile ${../../res/config-minimal.lua}
'';
};
}