vimrc: rg comes from nix too
This commit is contained in:
parent
51d3328e4b
commit
8ccf3d6452
@ -152,7 +152,7 @@ in {
|
|||||||
builtins.readFile
|
builtins.readFile
|
||||||
(pkgs.substituteAll {
|
(pkgs.substituteAll {
|
||||||
src = ./dev.lua;
|
src = ./dev.lua;
|
||||||
inherit (pkgs) gotools;
|
inherit (pkgs) gotools ripgrep;
|
||||||
})
|
})
|
||||||
.outPath;
|
.outPath;
|
||||||
})
|
})
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
vim.api.nvim_exec([[
|
vim.api.nvim_exec([[
|
||||||
au FileType go nnoremap <buffer> <C-]> :GoDef<CR>
|
set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m
|
||||||
au FileType go let g:go_template_autocreate = 0
|
|
||||||
au FileType go let g:go_fmt_command = "@gotools@/bin/goimports"
|
au FileType go let g:go_fmt_command = "@gotools@/bin/goimports"
|
||||||
]], false)
|
]], false)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
syntax on
|
syntax on
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
set et ts=4 sw=4 sts=4 nu hlsearch ruler ignorecase smartcase nomodeline bg=dark incsearch
|
set et ts=4 sw=4 sts=4 nu hlsearch ruler ignorecase smartcase nomodeline bg=dark incsearch
|
||||||
set path=**/* grepprg=rg\ --vimgrep grepformat^=%f:%l:%c:%m backspace=2 nojs
|
set path=**/* backspace=2 nojs
|
||||||
set laststatus=1 diffopt+=algorithm:patience
|
set laststatus=1 diffopt+=algorithm:patience
|
||||||
nnoremap <Leader>\ gqj
|
nnoremap <Leader>\ gqj
|
||||||
command OLD :enew | setl buftype=nofile | 0put =v:oldfiles | nnoremap <buffer> <CR> :e <C-r>=getline('.')<CR><CR>
|
command OLD :enew | setl buftype=nofile | 0put =v:oldfiles | nnoremap <buffer> <CR> :e <C-r>=getline('.')<CR><CR>
|
||||||
@ -42,6 +42,8 @@ au BufRead,BufNewFile *.do setfiletype sh
|
|||||||
|
|
||||||
" go
|
" go
|
||||||
au FileType go setlocal noet
|
au FileType go setlocal noet
|
||||||
|
au FileType go nnoremap <buffer> <C-]> :GoDef<CR>
|
||||||
|
au FileType go let g:go_template_autocreate = 0
|
||||||
|
|
||||||
" strace
|
" strace
|
||||||
au FileType strace setlocal nonu
|
au FileType strace setlocal nonu
|
||||||
|
Loading…
Reference in New Issue
Block a user