diff options
author | Brian Picciano <me@mediocregopher.com> | 2024-10-06 17:43:18 +0200 |
---|---|---|
committer | Brian Picciano <me@mediocregopher.com> | 2024-10-07 11:35:25 +0200 |
commit | 659ef00c71fd17efd2d8ffe5bbe5bd9f1698e73d (patch) | |
tree | c5e3a49d241a598f8fb1f053585ad9c86a3e1a84 /nvim/init.vim | |
parent | 1fc77476feae9c9cc5c93162daf3b931ebd719ee (diff) |
Drag my neovim config kicking and screaming into the future (LSP)
Diffstat (limited to 'nvim/init.vim')
-rw-r--r-- | nvim/init.vim | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/nvim/init.vim b/nvim/init.vim index 08ce5eb..213099f 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -1,16 +1,6 @@ set noswapfile -" Deoplete ################################################################# - -let g:deoplete#enable_at_startup = 1 -" use tab to cycle -inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>" -" close preview when leaving insert -autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif -" use omni completion for go, provided by vim-go -call deoplete#custom#option('omni_patterns', { 'go': '[^. *\t]\.\w*' }) - " NERDTree ################################################################# let NERDTreeMouseMode=3 @@ -34,39 +24,13 @@ map <C-n> :NERDTreeToggle<CR> " always enter term buffer in insert mode autocmd BufEnter * if &buftype == 'terminal' | :startinsert | endif -" vim-go ################################################################### - -let g:go_fmt_autosave = 1 -let g:go_fmt_command="goimports" - " rust.vim ################################################################### let g:rustfmt_autosave = 1 " Caddyfile #################################################################### -" -au BufNewFile,BufRead Caddyfile,*.Caddyfile,Caddyfile.* set ft=caddyfile - -" neomake ################################################################## -autocmd! BufWritePost * Neomake -"let g:neomake_verbose=3 -"let g:neomake_logfile='/tmp/neomake.log' - -" Always run clippy on rust projects -autocmd! BufWritePost *.rs Neomake! clippy - -" the sidebar sign placement wasn't playing nice with gitgutter, so use the -" location list instead. But location list is kinda dumb cause it pops open -" multiple times and at weird times, sooo.... fuck it -"let g:neomake_open_list=2 -let g:neomake_open_list=0 -let g:neomake_place_signs=0 - -let g:neomake_markdown_enabled_makers = ['misspell'] -let g:neomake_markdown_misspell_maker = { - \ 'errorformat': '%f:%l:%c:%m', - \ } +au BufNewFile,BufRead Caddyfile,*.Caddyfile,Caddyfile.* set ft=caddyfile " mine ##################################################################### |