port vim config to home manager

This commit is contained in:
Cyryl Płotnicki 2020-05-02 10:49:49 +01:00
parent 3bc4436b18
commit 0c6c449950
2 changed files with 44 additions and 45 deletions

View file

@ -19,6 +19,9 @@ let g:ctrlp_show_hidden = 1
autocmd StdinReadPre * let s:std_in=1 autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
" rainbow
let g:rainbow_active = 1
" coc " coc
set updatetime=300 set updatetime=300

View file

@ -1,49 +1,45 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home.file.".vimrc".source = ~/dev/dotfiles/.vimrc.nixos; home.file.".vimrc".source = ~/dev/dotfiles/.vimrc.nixos;
home.packages = with pkgs; [ programs.neovim = {
unstable.rust-analyzer enable = true;
nodejs viAlias = true;
( vimAlias = true;
neovim.override { vimdiffAlias = true;
vimAlias = true; withNodeJs = true;
configure = { withPython3 = true;
customRC = '' withRuby = true;
if filereadable($HOME . "/.vimrc")
source $HOME/.vimrc
endif
'';
vam.knownPlugins = vimPlugins; plugins = with pkgs.vimPlugins; [
vam.pluginDictionaries = [ coc-highlight
{ names = [ coc-nvim
"ack-vim" coc-tabnine
"coc-highlight" ctrlp-vim
"coc-nvim" editorconfig-vim
"coc-tabnine" fzf-vim
"ctrlp-vim" nerdtree
"editorconfig-vim" nerdtree-git-plugin
"fzf-vim" rainbow
"nerdtree" tabular
"nerdtree-git-plugin" vim-airline
"rust-vim" vim-airline-themes
"tabular" vim-autoformat
"vim-airline" vim-colors-solarized
"vim-airline-themes" vim-dirdiff
"vim-autoformat" vim-dispatch
"vim-colors-solarized" vim-fugitive
"vim-dirdiff" vim-gitgutter
"vim-dispatch" vim-markdown
"vim-fugitive" vim-nix
"vim-gitgutter" vim-sensible
"vim-markdown" vim-startify
"vim-nix" vim-surround
"vim-sensible" vim-toml
"vim-startify" ];
"vim-surround" extraConfig = ''
"vim-toml" if filereadable($HOME . "/.vimrc")
];}]; source $HOME/.vimrc
};}) endif
'';
]; };
} }