vim config plus rust

This commit is contained in:
tess 2022-10-28 17:36:32 +02:00
parent 2059329e90
commit 528166dd51
2 changed files with 47 additions and 0 deletions

View File

@ -154,6 +154,8 @@
#progaming
git
neovim
rustc
cargo
# creative
gimp
@ -171,6 +173,7 @@
xorg.xbacklight
syncthing
keepassxc
jitsi-meet-electron
];
#Fonts

44
nvim.nix Normal file
View File

@ -0,0 +1,44 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
packageOverrides = pkgs: with pkgs; {
myNeovim = neovim.override {
configure {
customRC = ''
syntax on
set mouse=a
filetype plugin indent on
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>"
'';
packages.myVimPackage = with pkgs.vimPlugins; {
start = [
coc-nvim
coc-prettier
coc-texlab
coc-rust-analyzer
coc-html
rust-vim
vimwiki
];
opt = [ ];
};
};
};
};
}