Refresh vim settings

This commit is contained in:
Cyryl Płotnicki 2022-03-08 11:53:17 +00:00
parent bb2ced8b81
commit a7e509e6aa
3 changed files with 57 additions and 34 deletions

View file

@ -3,7 +3,7 @@ let mapleader = ","
nmap <Leader>s :update<CR>
nmap <leader>p :set paste!<CR>
nmap <leader>h :set hlsearch!<CR>
nmap <leader>t :wa <bar> :Make test<CR>
nmap <leader>t :NvimTreeOpen<CR>
" navigate buffers by ctrl-b
nmap <C-b> :bprevious<CR>

View file

@ -14,10 +14,6 @@ command! -bang -nargs=* Find call fzf#vim#grep('rga --column --line-number --no-
let g:ctrlp_show_hidden = 1
let g:ctrlp_user_command = 'rga %s --files --hidden --color=never --glob ""'
" nerdtree startup
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
" rainbow
let g:rainbow_active = 1
@ -45,3 +41,17 @@ set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}
let g:ackprg = 'rg --vimgrep --smart-case'
let g:ack_autoclose = 1
let g:ack_use_cword_for_empty_search = 1
lua << EOF
require'nvim-tree'.setup{
disable_netrw = false,
hijack_cursor=true,
ignore_buffer_on_setup=true,
open_on_setup=true,
open_on_tab=true,
update_focused_file = { enable = true },
}
EOF

View file

@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }: {
{ config, pkgs, lib, inputs, ... }: {
home.file.".vimrc".source = ../../../.vimrc;
home.packages = with pkgs; [ ripgrep ];
programs.neovim = {
@ -10,7 +10,18 @@
withPython3 = true;
withRuby = true;
plugins = with pkgs.vimPlugins; [
plugins = with pkgs;
with pkgs.vimPlugins; [
(vimUtils.buildVimPluginFrom2Nix rec {
pname = "srht.vim";
version = "2022-01-04";
src = fetchFromSourcehut {
owner = "~willdurand";
repo = pname;
rev = "825e685f75464cbd41a5f8eded974e46f416355e";
sha256 = "sha256-9/Yeqmq/1ZIIsEgsrLLZ7o0cjOt/wlUgeLEzJoK7eco=";
};
})
ack-vim
coc-highlight
coc-nvim
@ -19,6 +30,8 @@
ctrlp-vim
editorconfig-vim
fzf-vim
nvim-tree-lua
nvim-web-devicons
quickfix-reflector-vim
rainbow
tabular