Updated plugins and added org support

This commit is contained in:
Warwick 2021-04-21 11:06:39 +01:00
parent d81f16f963
commit c3114439e8
2 changed files with 26 additions and 2 deletions

View file

@ -13,10 +13,15 @@ Plugin 'VundleVim/Vundle.vim'
" Pretty " Pretty
Plugin 'itchyny/lightline.vim' Plugin 'itchyny/lightline.vim'
"Plug 'morhetz/gruvbox' "Plug 'morhetz/gruvbox'
Plugin 'ShowTrailingWhitespace'
Plugin 'Yggdroot/indentLine'
" Functional " Functional
Plugin 'tpope/vim-fugitive'
Plugin 'jiangmiao/auto-pairs' Plugin 'jiangmiao/auto-pairs'
Plugin 'tpope/vim-surround' Plugin 'tpope/vim-surround'
Plugin 'dhruvasagar/vim-dotoo' Plugin 'dhruvasagar/vim-dotoo'
Plugin 'sheerun/vim-polyglot'
" Language C++/glsl " Language C++/glsl
"Plugin 'ycm-core/YouCompleteMe' "Plugin 'ycm-core/YouCompleteMe'
Plugin 'prabirshrestha/vim-lsp' Plugin 'prabirshrestha/vim-lsp'
@ -78,3 +83,18 @@ augroup lsp_install
" call s:on_lsp_buffer_enabled only for languages that has the server registered. " call s:on_lsp_buffer_enabled only for languages that has the server registered.
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
augroup END augroup END
" GLSL
autocmd! BufNewFile,BufRead *.vs,*.fs,*.glsl,*.frag,*.vert set ft=glsl
" dotoo
let g:dotoo#agenda#files = ['~/org/*.org']
let g:dotoo#capture#refile = expand('~/org/refile.org')
autocmd! BufNewFile,BufRead *.org set filetype=dotoo
augroup dotoo
autocmd!
autocmd BufNewFile,BufRead *.org *.dotoo set hidden
autocmd FileType dotoo,org,tex,text setlocal textwidth=80
autocmd FileType dotoo,org,tex,text setlocal spell spelllang=en_gb
augroup END

8
vimrc
View file

@ -37,7 +37,11 @@ augroup vimrcEx
au! au!
" For all text files set 'textwidth' to 78 characters. " For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78 "autocmd FileType text setlocal textwidth=78
autocmd FileType dotoo,org,tex,text setlocal textwidth=80
autocmd FileType dotoo,org,tex,text setlocal spell spelllang=en_gb
augroup END augroup END
" Add optional packages. " Add optional packages.
@ -89,7 +93,7 @@ hi clear CursorLine
hi CursorLine ctermbg=8 guibg=#404040 hi CursorLine ctermbg=8 guibg=#404040
hi Cursor ctermbg=15 hi Cursor ctermbg=15
" set spellcheck " set spellcheck
set spell "set spell
" Remap Lex " Remap Lex
nnoremap <C-n> :Lex<CR> nnoremap <C-n> :Lex<CR>
" Load Plugins " Load Plugins