chore(nvim): config updates

This commit is contained in:
Rob Watson 2024-06-11 19:33:36 +02:00
parent fa94c7d878
commit fc4a7ff3b2
1 changed files with 5 additions and 2 deletions

7
nvimrc
View File

@ -19,6 +19,9 @@ let g:netrw_list_hide = '^\.'
let g:netrw_winsize=25 let g:netrw_winsize=25
map <leader>n <esc>:Lexplore<cr> map <leader>n <esc>:Lexplore<cr>
" https://stackoverflow.com/questions/34675677/disable-highlight-matched-parentheses-in-vim-let-loaded-matchparen-1-not-w
let g:loaded_matchparen=1
" fix helptags for opt/ plugins " fix helptags for opt/ plugins
" https://vi.stackexchange.com/questions/17210/generating-help-tags-for-packages-that-are-loaded-by-vim-8s-package-management " https://vi.stackexchange.com/questions/17210/generating-help-tags-for-packages-that-are-loaded-by-vim-8s-package-management
command! -nargs=0 -bar Helptags command! -nargs=0 -bar Helptags
@ -45,7 +48,7 @@ set showmatch
set wildmenu set wildmenu
set wildmode=list:full,full set wildmode=list:full,full
set number set number
set norelativenumber set relativenumber
set ruler set ruler
set backspace=indent,eol,start set backspace=indent,eol,start
set ignorecase set ignorecase
@ -109,7 +112,7 @@ augroup vimrc
" https://github.com/fatih/vim-go/issues/1757#issuecomment-565130503 " https://github.com/fatih/vim-go/issues/1757#issuecomment-565130503
autocmd FileType qf if (getwininfo(win_getid())[0].loclist != 1) | wincmd J | endif autocmd FileType qf if (getwininfo(win_getid())[0].loclist != 1) | wincmd J | endif
" Remove trailing whitespace pre-save: " Remove trailing whitespace pre-save:
autocmd FileType go,ruby,markdown,rust,python,markdown,lua,sql,bash autocmd BufWritePre <buffer> silent! %s/\s\+$//e autocmd FileType go,ruby,markdown,rust,python,markdown,lua,sql,bash,css,scss autocmd BufWritePre <buffer> silent! %s/\s\+$//e
augroup end augroup end
" Don't remember the current directory for a given file: " Don't remember the current directory for a given file: