vim config plus rust
This commit is contained in:
parent
2059329e90
commit
528166dd51
|
@ -154,6 +154,8 @@
|
|||
#progaming
|
||||
git
|
||||
neovim
|
||||
rustc
|
||||
cargo
|
||||
|
||||
# creative
|
||||
gimp
|
||||
|
@ -171,6 +173,7 @@
|
|||
xorg.xbacklight
|
||||
syncthing
|
||||
keepassxc
|
||||
jitsi-meet-electron
|
||||
];
|
||||
|
||||
#Fonts
|
||||
|
|
|
@ -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 = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue