diff options
author | Julian T <julian@jtle.dk> | 2020-05-15 00:05:52 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-05-15 00:05:52 +0200 |
commit | 71e4cb1d5f47d9191f9f6ca7eb1c8a14f4a94199 (patch) | |
tree | 497cba3bcb393567e54d017301ce1a4918eaf7d7 /vim/.vimrc | |
parent | 900249e33d6c3e1108385360880ccc022bf61029 (diff) |
Cleaned up vimrc
Diffstat (limited to 'vim/.vimrc')
-rw-r--r-- | vim/.vimrc | 19 |
1 files changed, 4 insertions, 15 deletions
@@ -2,7 +2,6 @@ set nocompatible " be iMproved, required filetype plugin on set shellslash - " Plugins " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim @@ -18,7 +17,6 @@ set shellslash Plugin 'prabirshrestha/vim-lsp' Plugin 'fatih/vim-go' Plugin 'ajh17/VimCompletesMe' - " Plugin 'ludovicchabant/vim-gutentags' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-repeat' @@ -39,16 +37,11 @@ set shellslash " Plugin 'ntk148v/vim-horizon' " Git - " Plugin 'jreybert/vimagit' Plugin 'tpope/vim-fugitive' " File support " Plugin 'cespare/vim-toml' - " Plugin 'vim-scripts/TagHighlight' Plugin 'lervag/vimtex' - " Plugin 'LnL7/vim-nix' - " Plugin 'rust-lang/rust.vim' - " Plugin 'racer-rust/vim-racer' " Plugin 'vimwiki/vimwiki' @@ -63,17 +56,18 @@ set shellslash set completeopt=menuone " let g:go_def_mode='gopls' " let g:go_info_mode='gopls' - " let g:rustfmt_autosave = 1 autocmd FileType c let b:vcm_tab_complete = 'omni' autocmd FileType py let b:vcm_tab_complete = 'omni' autocmd FileType go let b:vcm_tab_complete = 'omni' autocmd FileType vim let b:vcm_tab_complete = 'vim' - " Setup lsp servers + " Lsp options let g:lsp_diagnostics_echo_cursor = 0 let g:lsp_signature_help_enabled = 0 let g:lsp_insert_text_enabled = 0 + + " Setup lsp servers if executable('pyls') au User lsp_setup call lsp#register_server({ \ 'name': 'python', @@ -133,9 +127,6 @@ set shellslash " Remove statusline set laststatus=1 - " Check if file has changed - au FocusGained,BufEnter * :checktime - if has('nvim') set inccommand=split endif @@ -195,8 +186,6 @@ set shellslash map <leader>mm :make V=1<CR> map <leader>mf :make flash V=1<CR> - map <leader>t :terminal<CR>i - map <leader>s :!echo > jtle_build_it<CR> " Enforcing filetypes autocmd BufRead,BufNewFile *.ino set filetype=c @@ -211,4 +200,4 @@ set shellslash " Spell check set spelllang=en - autocmd FileType tex set spell + autocmd FileType tex,markdown,rst set spell |