vimrc updates
This commit is contained in:
parent
2864b882cf
commit
39f160d29f
|
@ -22,9 +22,13 @@ let g:go_imports_autosave = 1
|
||||||
let g:go_auto_sameids = 0
|
let g:go_auto_sameids = 0
|
||||||
let g:go_auto_type_info = 0
|
let g:go_auto_type_info = 0
|
||||||
let g:go_info_mode = "gopls"
|
let g:go_info_mode = "gopls"
|
||||||
|
let g:go_highlight_functions = 1
|
||||||
|
let g:go_term_enabled = 0
|
||||||
|
let g:go_term_close_on_exit = 0
|
||||||
let g:go_fmt_options = {
|
let g:go_fmt_options = {
|
||||||
\ 'goimports': '-local github.com/sensiblecode.com/cantabular',
|
\ 'goimports': '-local github.com/sensiblecode.com/cantabular',
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
autocmd BufNewFile,BufRead *.gohtml set syntax=gohtmltmpl
|
autocmd BufNewFile,BufRead *.gohtml set syntax=gohtmltmpl
|
||||||
autocmd BufNewFile,BufRead *.go nmap <silent> <leader>g6 :GoAlternate!<cr>
|
autocmd BufNewFile,BufRead *.go nmap <silent> <leader>g6 :GoAlternate!<cr>
|
||||||
|
|
||||||
|
|
11
vimrc
11
vimrc
|
@ -56,6 +56,7 @@ set balloonevalterm
|
||||||
set scrolloff=5
|
set scrolloff=5
|
||||||
set dict=/usr/share/dict/words
|
set dict=/usr/share/dict/words
|
||||||
set shortmess+=I
|
set shortmess+=I
|
||||||
|
set updatetime=100
|
||||||
set pastetoggle=<f2>
|
set pastetoggle=<f2>
|
||||||
" See :help thesaurus
|
" See :help thesaurus
|
||||||
set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt
|
set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt
|
||||||
|
@ -64,7 +65,7 @@ set completeopt=menu,menuone,popup,longest,noselect
|
||||||
set completepopup=width:300,height:50,align:item,border:off
|
set completepopup=width:300,height:50,align:item,border:off
|
||||||
|
|
||||||
" Colour scheme:
|
" Colour scheme:
|
||||||
colorscheme iceberg
|
colorscheme nord
|
||||||
|
|
||||||
" Automatically load/save views on files.
|
" Automatically load/save views on files.
|
||||||
" https://vi.stackexchange.com/posts/13874/revisions
|
" https://vi.stackexchange.com/posts/13874/revisions
|
||||||
|
@ -85,7 +86,7 @@ imap <down> <nop>
|
||||||
imap <left> <nop>
|
imap <left> <nop>
|
||||||
imap <right> <nop>
|
imap <right> <nop>
|
||||||
|
|
||||||
nnoremap <silent> ,/ :nohlsearch<CR>
|
nnoremap <silent> ,/ :nohlsearch<cr>
|
||||||
map <c-t> <esc>:tabnew<cr>
|
map <c-t> <esc>:tabnew<cr>
|
||||||
" Select just-pasted text:
|
" Select just-pasted text:
|
||||||
nnoremap <Leader>0 `[v`]
|
nnoremap <Leader>0 `[v`]
|
||||||
|
@ -151,6 +152,11 @@ packadd! command-t
|
||||||
" Lightline configuration:
|
" Lightline configuration:
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
|
||||||
|
" vim-gitgutter configuration
|
||||||
|
nnoremap hg :GitGutterLineHighlightsToggle<cr>
|
||||||
|
nmap ]h <Plug>(GitGutterNextHunk)
|
||||||
|
nmap [h <Plug>(GitGutterPrevHunk)
|
||||||
|
|
||||||
" Vim-Rust configuration:
|
" Vim-Rust configuration:
|
||||||
let g:rustfmt_autosave = 1
|
let g:rustfmt_autosave = 1
|
||||||
|
|
||||||
|
@ -232,5 +238,6 @@ packadd! ale
|
||||||
packadd! lightline.vim
|
packadd! lightline.vim
|
||||||
packadd! tmux-complete.vim
|
packadd! tmux-complete.vim
|
||||||
packadd! vim-commentary
|
packadd! vim-commentary
|
||||||
|
packadd! vim-gitgutter
|
||||||
packadd! vim-surround
|
packadd! vim-surround
|
||||||
packadd! vim-yaml-folds
|
packadd! vim-yaml-folds
|
||||||
|
|
Loading…
Reference in New Issue