diff options
Diffstat (limited to '')
-rw-r--r-- | vimrc | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,8 @@ packadd snippets +" General +set ignorecase + " Indentation set tabstop=8 set shiftround @@ -13,6 +16,8 @@ syntax on set background=light set rnu colorscheme quiet +set incsearch +set matchpairs+=<:> hi Normal ctermfg=black ctermbg=white "hi Keyword ctermfg=black cterm=bold hi SpellBad term=reverse cterm=underline ctermfg=124 ctermbg=white @@ -113,6 +118,8 @@ end autocmd Filetype go set makeprg=go\ build autocmd Filetype go autocmd BufWritePre <buffer> :LspFormat +au BufRead,BufNewFile *.tmpl set filetype=tmpl +autocmd Filetype tmpl setlocal tabstop=2 " Nix if exists('g:loaded_lsp') @@ -137,11 +144,17 @@ if exists('g:loaded_lsp') end +autocmd Filetype markdown setlocal spell + + + " Keybindings let mapleader=" " noremap , : noremap <leader>e :e **/ noremap <silent> gd mB:LspGotoDefinition<Enter> +noremap <silent> ]d :LspDiagNext<Enter> +noremap <silent> [d :LspDiagPrev<Enter> noremap <silent> gs mB:LspDocumentSymbol<Enter> noremap <silent> gr mB:LspGotoImpl<Enter> noremap <leader>ca :LspCodeAction<Enter> |