user/neovim-minimal: init
This commit is contained in:
parent
825120f549
commit
5218910a2b
4 changed files with 144 additions and 1 deletions
|
|
@ -38,6 +38,7 @@ in {
|
|||
./user/kitty.nix
|
||||
./user/mpv.nix
|
||||
./user/neovim.nix
|
||||
./user/neovim-minimal.nix
|
||||
./user/npm.nix
|
||||
./user/packages-rin.nix
|
||||
./user/pass.nix
|
||||
|
|
|
|||
44
modules/user/neovim-minimal.nix
Normal file
44
modules/user/neovim-minimal.nix
Normal 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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue