vim config more

This commit is contained in:
tess 2022-10-28 18:20:52 +02:00
parent 528166dd51
commit eff0f88f71
3 changed files with 13 additions and 15 deletions

View File

@ -9,6 +9,7 @@
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./hostname.nix
./nvim.nix
];
# Bootloader.
@ -167,6 +168,7 @@
gdb
# other
nodejs
python38
neofetch
pavucontrol

View File

@ -6,23 +6,16 @@
{
packageOverrides = pkgs: with pkgs; {
myNeovim = neovim.override {
configure {
environment.systemPackages = with pkgs; [
(neovim.override {
configure = {
customRC = ''
syntax on
set mouse=a
filetype plugin indent on
let g:rustfmt_autosave = 1
let g:rustfmt_autosave = 1
set signcolumn=yes
inoremap <silent><expr> <TAB>
\ coc#pum#visible() ? coc#pum#next(1) :
\ CheckBackspace() ? "\<Tab>" :
\ coc#refresh()
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
command! -nargs=0 Prettier :CocCommand prettier.forceFormatDocument
'';
packages.myVimPackage = with pkgs.vimPlugins; {
start = [
@ -34,11 +27,14 @@
rust-vim
vimwiki
vim-nix
rainbow
nvim-colorizer-lua
];
opt = [ ];
};
};
};
};
}
)];
}

View File

@ -6,6 +6,6 @@ git pull
cp -r /etc/nixos/ ./backup
sudo cp -r ./configuration.nix /etc/nixos/
sudo cp -r ./configuration.nix ./nvim.nix /etc/nixos/
echo "done :)"