diff --git a/plugins.vim b/plugins.vim index 3b400b9..92af1c2 100644 --- a/plugins.vim +++ b/plugins.vim @@ -13,10 +13,15 @@ Plugin 'VundleVim/Vundle.vim' " Pretty Plugin 'itchyny/lightline.vim' "Plug 'morhetz/gruvbox' +Plugin 'ShowTrailingWhitespace' +Plugin 'Yggdroot/indentLine' + " Functional +Plugin 'tpope/vim-fugitive' Plugin 'jiangmiao/auto-pairs' Plugin 'tpope/vim-surround' Plugin 'dhruvasagar/vim-dotoo' +Plugin 'sheerun/vim-polyglot' " Language C++/glsl "Plugin 'ycm-core/YouCompleteMe' 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. autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() 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 diff --git a/vimrc b/vimrc index ed0751a..fda6c8a 100644 --- a/vimrc +++ b/vimrc @@ -37,7 +37,11 @@ augroup vimrcEx au! " 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 " Add optional packages. @@ -89,7 +93,7 @@ hi clear CursorLine hi CursorLine ctermbg=8 guibg=#404040 hi Cursor ctermbg=15 " set spellcheck -set spell +"set spell " Remap Lex nnoremap :Lex " Load Plugins