|
|
@ -46,10 +46,35 @@ Plug 'gko/vim-coloresque' |
|
|
|
Plug 'dracula/vim', { 'as': 'dracula' } |
|
|
|
Plug 'dracula/vim', { 'as': 'dracula' } |
|
|
|
Plug 'joshdick/onedark.vim' |
|
|
|
Plug 'joshdick/onedark.vim' |
|
|
|
Plug 'Mofiqul/dracula.nvim' |
|
|
|
Plug 'Mofiqul/dracula.nvim' |
|
|
|
|
|
|
|
|
|
|
|
" Lang. Support |
|
|
|
" Lang. Support |
|
|
|
Plug 'fatih/vim-go' |
|
|
|
"""""""""""""""""""""""""""""""GO""""""""""""""""""""""""""""""""""""""" |
|
|
|
|
|
|
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } |
|
|
|
|
|
|
|
Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'} |
|
|
|
|
|
|
|
set completeopt-=preview |
|
|
|
|
|
|
|
" Go related keybinds |
|
|
|
|
|
|
|
autocmd FileType go nmap <leader>r <Plug>(go-run) |
|
|
|
|
|
|
|
" Move through errors easier! |
|
|
|
|
|
|
|
map <C-n> :cnext<CR> |
|
|
|
|
|
|
|
map <C-m> :cprevious<CR> |
|
|
|
|
|
|
|
nnoremap <leader>a :cclose<CR> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" run :GoBuild or :GoTestCompile based on the go file |
|
|
|
|
|
|
|
function! s:build_go_files() |
|
|
|
|
|
|
|
let l:file = expand('%') |
|
|
|
|
|
|
|
if l:file =~# '^\f\+_test\.go$' |
|
|
|
|
|
|
|
call go#test#Test(0, 1) |
|
|
|
|
|
|
|
elseif l:file =~# '^\f\+\.go$' |
|
|
|
|
|
|
|
call go#cmd#Build(0) |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
endfunction |
|
|
|
|
|
|
|
autocmd FileType go nmap <leader>b :<C-u>call <SID>build_go_files()<CR> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let g:go_def_mode='gopls' |
|
|
|
|
|
|
|
let g:go_info_mode='gopls' |
|
|
|
|
|
|
|
let g:go_list_type = "quickfix" |
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""GO"""""""""""""""""""""""""""""""""""""""" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" JAVA |
|
|
|
Plug 'artur-shaik/vim-javacomplete2' |
|
|
|
Plug 'artur-shaik/vim-javacomplete2' |
|
|
|
autocmd FileType java setlocal omnifunc=javacomplete#Complete |
|
|
|
autocmd FileType java setlocal omnifunc=javacomplete#Complete |
|
|
|
|
|
|
|
|
|
|
@ -59,10 +84,11 @@ Plug 'zchee/deoplete-jedi' |
|
|
|
Plug 'deoplete-plugins/deoplete-clang' |
|
|
|
Plug 'deoplete-plugins/deoplete-clang' |
|
|
|
Plug 'davidhalter/jedi-vim' |
|
|
|
Plug 'davidhalter/jedi-vim' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" RUST |
|
|
|
Plug 'rust-lang/rust.vim' |
|
|
|
Plug 'rust-lang/rust.vim' |
|
|
|
Plug 'simrat39/rust-tools.nvim' |
|
|
|
Plug 'simrat39/rust-tools.nvim' |
|
|
|
Plug 'neovim/nvim-lspconfig' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Plug 'neovim/nvim-lspconfig' |
|
|
|
Plug 'preservim/nerdcommenter' |
|
|
|
Plug 'preservim/nerdcommenter' |
|
|
|
Plug 'mattn/emmet-vim' |
|
|
|
Plug 'mattn/emmet-vim' |
|
|
|
|
|
|
|
|
|
|
@ -76,7 +102,7 @@ noremap <F3> :Autoformat<CR> |
|
|
|
" Indent Blanklines |
|
|
|
" Indent Blanklines |
|
|
|
Plug 'lukas-reineke/indent-blankline.nvim' |
|
|
|
Plug 'lukas-reineke/indent-blankline.nvim' |
|
|
|
|
|
|
|
|
|
|
|
" Writing |
|
|
|
" Writing in LaTeX |
|
|
|
Plug 'junegunn/goyo.vim' |
|
|
|
Plug 'junegunn/goyo.vim' |
|
|
|
Plug 'lervag/vimtex' |
|
|
|
Plug 'lervag/vimtex' |
|
|
|
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' } |
|
|
|
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' } |
|
|
@ -97,6 +123,7 @@ let g:UltiSnipsExpandTrigger = '<tab>' |
|
|
|
let g:UltiSnipsJumpForwardTrigger="<c-b>" |
|
|
|
let g:UltiSnipsJumpForwardTrigger="<c-b>" |
|
|
|
let g:UltiSnipsJumpBackwardTrigger="<c-z>" |
|
|
|
let g:UltiSnipsJumpBackwardTrigger="<c-z>" |
|
|
|
let g:UltiSnipsListSnippets="<c-;>" |
|
|
|
let g:UltiSnipsListSnippets="<c-;>" |
|
|
|
|
|
|
|
|
|
|
|
" Zoxide |
|
|
|
" Zoxide |
|
|
|
Plug 'nanotee/zoxide.vim' |
|
|
|
Plug 'nanotee/zoxide.vim' |
|
|
|
|
|
|
|
|
|
|
@ -121,17 +148,21 @@ Plug 'ryanoasis/vim-devicons' |
|
|
|
" Lightspeed |
|
|
|
" Lightspeed |
|
|
|
Plug 'ggandor/lightspeed.nvim' |
|
|
|
Plug 'ggandor/lightspeed.nvim' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Markdown Preview |
|
|
|
|
|
|
|
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': 'markdown' } |
|
|
|
|
|
|
|
|
|
|
|
call plug#end() |
|
|
|
call plug#end() |
|
|
|
|
|
|
|
|
|
|
|
"let g:molokai_original = 1 |
|
|
|
"let g:molokai_original = 1 |
|
|
|
"let g:airline_theme='onedark' |
|
|
|
"let g:airline_theme='onedark' |
|
|
|
"let g:airline_theme='dracula' |
|
|
|
"let g:airline_theme='dracula' |
|
|
|
let g:ale_enable=1 |
|
|
|
let g:ale_enable=0 |
|
|
|
let g:ale_linters = { |
|
|
|
let g:ale_linters = { |
|
|
|
\ 'python': ['pylint'], |
|
|
|
\ 'python': ['pylint'], |
|
|
|
\ 'vim': ['vint'], |
|
|
|
\ 'vim': ['vint'], |
|
|
|
\ 'cpp': ['clang'], |
|
|
|
\ 'cpp': ['clang'], |
|
|
|
\ 'c': ['clang'] |
|
|
|
\ 'c': ['clang'], |
|
|
|
|
|
|
|
\ 'go': ['gopls'], |
|
|
|
\} |
|
|
|
\} |
|
|
|
syntax on |
|
|
|
syntax on |
|
|
|
filetype plugin indent on |
|
|
|
filetype plugin indent on |
|
|
@ -223,6 +254,9 @@ nnoremap <A-o> :e<Space> |
|
|
|
nnoremap <A-O> :tabe<Space> |
|
|
|
nnoremap <A-O> :tabe<Space> |
|
|
|
nnoremap <A-v> :vsplit<Space> |
|
|
|
nnoremap <A-v> :vsplit<Space> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Markdown Preview |
|
|
|
|
|
|
|
nnoremap <leader>m :MarkdownPreviewToggle<CR> |
|
|
|
|
|
|
|
|
|
|
|
" Screenshot command |
|
|
|
" Screenshot command |
|
|
|
nnoremap <silent> <leader>s :!bash /home/simon/.scripts/vscrnpaste<CR><CR> |
|
|
|
nnoremap <silent> <leader>s :!bash /home/simon/.scripts/vscrnpaste<CR><CR> |
|
|
|
|
|
|
|
|
|
|
|