diff options
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/init.vim | 64 |
1 files changed, 24 insertions, 40 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 2042b4d..df0fca1 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -1,30 +1,4 @@ set nocompatible " be iMproved, required -" PYTHON PROVIDERS {{{ - -if has('macunix') - -" OSX - -let g:python3_host_prog = '/usr/bin/python3' " -- Set python 3 provider - -" let g:python_host_prog = '/usr/bin/python2' " --- Set python 2 provider - -elseif has('unix') - -" Ubuntu - -let g:python3_host_prog = '/usr/bin/python3' " -------- Set python 3 provider - -" let g:python_host_prog = '/usr/bin/python' " ---------- Set python 2 provider - -elseif has('win32') || has('win64') - -" Window - -endif - -" }}} - " auto-install vim-plug if empty(glob('~/.config/nvim/autoload/plug.vim')) silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ @@ -44,7 +18,17 @@ Plug 'octol/vim-cpp-enhanced-highlight' Plug 'tikhomirov/vim-glsl' " latex Plug 'lervag/vimtex' + Plug 'morhetz/gruvbox' + +Plug 'nikvdp/ejs-syntax' + +Plug 'pangloss/vim-javascript' + +" Plug 'leafOfTree/vim-vue-plugin' + +Plug 'posva/vim-vue' + call plug#end() filetype plugin indent on " required @@ -60,6 +44,7 @@ filetype plugin indent on " required " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line " + colorscheme gruvbox hi clear SignColumn @@ -71,8 +56,11 @@ function! HasPaste() return '' endfunction -" Applying codeAction to the selected region. +let mapleader=" " +nnoremap <SPACE> <Nop> + +autocmd CursorHold * silent call CocActionAsync('highlight') " Example: \`<leader>aap\` for current paragraph xmap <leader>a <Plug>(coc-codeaction-selected) @@ -102,7 +90,7 @@ vnoremap <leader>p "+p vnoremap <leader>P "+P "python with virtualenv support -py3 << EOF +py << EOF import os import sys if 'VIRTUAL_ENV' in os.environ: @@ -198,12 +186,12 @@ hi User5 ctermfg=238 ctermbg=233 "------------Start Python PEP 8 stuff---------------- " Number of spaces that a pre-existing tab is equal to. -au BufRead,BufNewFile *.html,*py,*pyw,*.c,*.h,*.js,*.tex,*.glsl,*.java,*.ts,*.tsx,*.c,*.cpp,*.h,*.hpp set tabstop=4 +au BufRead,BufNewFile * set tabstop=4 "spaces for indents -au BufRead,BufNewFile *.html,*.py,*.pyw,*.js,*.tex,*.glsl,*.java,*.ts,*.tsx,*.c,*.cpp,*.h,*.hpp set shiftwidth=4 -au BufRead,BufNewFile *.html,*.py,*.pyw,*.js,*.tex,*.glsl,*.java,*.ts,*.tsx,*.c,*.cpp,*.h,*.hpp set expandtab -au BufRead,BufNewFile *.html,*.py,*.js,*.tex,*.glsl,*.java,*.ts,*.tsx,*.c,*.cpp,*.h,*.hpp set softtabstop=4 +au BufRead,BufNewFile * set shiftwidth=4 +au BufRead,BufNewFile * set expandtab +au BufRead,BufNewFile * set softtabstop=4 " Use the below highlight group when displaying bad whitespace is desired. highlight BadWhitespace ctermbg=red guibg=red @@ -241,14 +229,6 @@ highlight LineNr ctermfg=grey let python_highlight_all=1 syntax on " highlight Pmenu ctermfg=cyan ctermbg=black - -let g:ycm_python_binary_path = 'python' -let g:ycm_server_python_interpreter = '/usr/bin/python' -let g:ycm_autoclose_preview_window_after_completion=1 -let g:ycm_collect_identifiers_from_comments_and_strings=1 -let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py' -set backspace=indent,eol,start - " Rust let g:rustfmt_autosave = 1 "let g:ycm_rust_src_path = '~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/' @@ -267,3 +247,7 @@ let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 +" tex +let g:tex_flavor = 'latex' + +let g:vim_vue_plugin_load_full_syntax = 1 |
