nvim: Drop vim-polyglot & miscellaneous clean up

Drop polyglot and add the necessary language support manually. While at
it disable some internal plugins and drop vim-qlist. qlist is only useful
if path is set correctly and it can search for files as indicated by the
path. Since we do not do this, it does not add any value.

Add vim-tmux-focus-events back again. As per this thread
https://github.com/tmux-plugins/vim-tmux-focus-events/issues/1

neovim shouldn't require this plugin however the observation seems that
it's required.

Gitgutter quickfix entries should be loaded in quickfix and not location
list.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-05-18 12:31:51 +05:30
parent f8d48a4dc4
commit 491ffb9bee
3 changed files with 71 additions and 37 deletions

View file

@ -80,9 +80,19 @@ let g:loaded_perl_provider = 0
let g:loaded_node_provider = 0 let g:loaded_node_provider = 0
let g:python3_host_prog = '/usr/bin/python3' let g:python3_host_prog = '/usr/bin/python3'
" Disable netrw completely " Disable some in built plugins completely
let g:loaded_netrw = 1 let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1 let g:loaded_netrwPlugin = 1
let g:loaded_matchparen = 1
let g:loaded_2html_plugin = 1
let g:loaded_getscriptPlugin = 1
let g:loaded_gzip = 1
let g:loaded_logipat = 1
let g:loaded_rrhelper = 1
let g:loaded_spellfile_plugin = 1
let g:loaded_tarPlugin = 1
let g:loaded_vimballPlugin = 1
let g:loaded_zipPlugin = 1
" Colorscheme " Colorscheme
colorscheme molokai colorscheme molokai

View file

@ -13,10 +13,13 @@ Plug 'axelf4/vim-strip-trailing-whitespace'
Plug 'ap/vim-buftabline' Plug 'ap/vim-buftabline'
" Manage Project sessions " Manage Project sessions
Plug 'thaerkh/vim-workspace' Plug 'thaerkh/vim-workspace'
" Syntax highlighting " For autocompletion
Plug 'sheerun/vim-polyglot' Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" For LaTeX support Plug 'Shougo/neco-syntax'
Plug 'lervag/vimtex' Plug 'deoplete-plugins/deoplete-tag'
" For tmux
Plug 'tmux-plugins/vim-tmux-focus-events'
Plug 'wellle/tmux-complete.vim'
" Git support " Git support
Plug 'lambdalisue/gina.vim' Plug 'lambdalisue/gina.vim'
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
@ -28,33 +31,8 @@ Plug 'salcode/vim-interactive-rebase-reverse'
Plug 'vim-utils/vim-husk' Plug 'vim-utils/vim-husk'
" GDB " GDB
Plug 'sakhnik/nvim-gdb', { 'do': ':UpdateRemotePlugins' } Plug 'sakhnik/nvim-gdb', { 'do': ':UpdateRemotePlugins' }
" Haskell
Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
Plug 'Twinside/vim-hoogle', { 'for': 'haskell' }
Plug 'pbrisbin/vim-syntax-shakespeare'
Plug 'godlygeek/tabular', { 'for': 'haskell' }
Plug 'Twinside/vim-haskellFold'
" Purescript
Plug 'frigoeu/psc-ide-vim', { 'for': 'purescript' }
" Erlang Support
Plug 'vim-erlang/vim-erlang-tags', { 'for': 'erlang' }
Plug 'vim-erlang/vim-erlang-omnicomplete', { 'for': 'erlang' }
Plug 'vim-erlang/vim-erlang-compiler', { 'for': 'erlang' }
" Lisp
Plug 'guns/vim-sexp', { 'for': [ 'scheme', 'lisp', 'clojure' ] }
Plug 'tpope/vim-sexp-mappings-for-regular-people', { 'for': [ 'scheme', 'lisp', 'clojure' ] }
Plug 'kovisoft/slimv', { 'for': [ 'scheme', 'lisp', 'clojure' ] }
" Rainbow Parentheses " Rainbow Parentheses
Plug 'luochen1990/rainbow' Plug 'luochen1990/rainbow'
" Python
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
" For autocompletion
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'deoplete-plugins/deoplete-jedi', { 'for': 'python' }
Plug 'sebastianmarkow/deoplete-rust', { 'for': 'rust' }
Plug 'Shougo/neco-syntax'
Plug 'deoplete-plugins/deoplete-tag'
Plug 'wellle/tmux-complete.vim'
" Neo/Async stuff " Neo/Async stuff
Plug 'sbdchd/neoformat' Plug 'sbdchd/neoformat'
Plug 'neomake/neomake' Plug 'neomake/neomake'
@ -62,7 +40,6 @@ Plug 'neomake/neomake'
Plug 'sk1418/QFGrep' Plug 'sk1418/QFGrep'
Plug 'ronakg/quickr-cscope.vim' Plug 'ronakg/quickr-cscope.vim'
Plug 'stefandtw/quickfix-reflector.vim' Plug 'stefandtw/quickfix-reflector.vim'
Plug 'romainl/vim-qlist'
Plug 'mhinz/vim-grepper' Plug 'mhinz/vim-grepper'
Plug 'milkypostman/vim-togglelist' Plug 'milkypostman/vim-togglelist'
Plug 'skywind3000/vim-quickui' Plug 'skywind3000/vim-quickui'
@ -93,6 +70,47 @@ Plug 'wsdjeg/vim-fetch'
Plug 'liuchengxu/vim-which-key' Plug 'liuchengxu/vim-which-key'
" Clipboard " Clipboard
Plug 'christoomey/vim-system-copy' Plug 'christoomey/vim-system-copy'
" Language support & syntax highlighting
" Haskell
Plug 'neovimhaskell/haskell-vim'
Plug 'Twinside/vim-haskellFold'
Plug 'Twinside/vim-hoogle', { 'for': 'haskell' }
Plug 'godlygeek/tabular', { 'for': 'haskell' }
Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
" Rust
Plug 'rust-lang/rust.vim'
Plug 'sebastianmarkow/deoplete-rust', { 'for': 'rust' }
" Purescript
Plug 'purescript-contrib/purescript-vim'
Plug 'frigoeu/psc-ide-vim'
" Lisp
Plug 'wlangstroth/vim-racket'
Plug 'guns/vim-clojure-static'
Plug 'guns/vim-sexp', { 'for': [ 'racket', 'scheme', 'lisp', 'clojure' ] }
Plug 'tpope/vim-sexp-mappings-for-regular-people', { 'for': [ 'racket', 'scheme', 'lisp', 'clojure' ] }
" Erlang
Plug 'vim-erlang/vim-erlang-runtime', { 'for': 'erlang' }
Plug 'vim-erlang/vim-erlang-tags', { 'for': 'erlang' }
Plug 'vim-erlang/vim-erlang-omnicomplete', { 'for': 'erlang' }
Plug 'vim-erlang/vim-erlang-compiler', { 'for': 'erlang' }
" Python
Plug 'vim-python/python-syntax'
Plug 'deoplete-plugins/deoplete-jedi'
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
" C/C++
Plug 'vim-jp/vim-cpp'
Plug 'octol/vim-cpp-enhanced-highlight'
" LaTeX
Plug 'lervag/vimtex'
" Dhall & nix
Plug 'vmchale/dhall-vim'
Plug 'LnL7/vim-nix'
" Other syntax highlighting support
Plug 'georgewitteman/vim-fish'
Plug 'elzr/vim-json'
Plug 'lifepillar/pgsql.vim'
Plug 'plasticboy/vim-markdown'
Plug 'mtdl9/vim-log-highlighting'
call plug#end() call plug#end()

View file

@ -3,7 +3,7 @@ let g:gitgutter_max_signs=1000
let g:gitgutter_map_keys = 0 let g:gitgutter_map_keys = 0
let g:gitgutter_highlight_linenrs = 1 let g:gitgutter_highlight_linenrs = 1
let g:gitgutter_preview_win_floating = 1 let g:gitgutter_preview_win_floating = 1
let g:gitgutter_use_location_list = 1 let g:gitgutter_use_location_list = 0
let g:gitgutter_sign_added = '+a' let g:gitgutter_sign_added = '+a'
let g:gitgutter_sign_modified = '+m' let g:gitgutter_sign_modified = '+m'
let g:gitgutter_sign_removed = '-r' let g:gitgutter_sign_removed = '-r'
@ -48,9 +48,6 @@ let g:mapleader = "\<Space>"
let g:maplocalleader = ',' let g:maplocalleader = ','
let g:which_key_use_floating_win = 1 let g:which_key_use_floating_win = 1
" Disable auto highlighting of Matched Parentheses
let g:loaded_matchparen = 1
" Rainbow Parentheses " Rainbow Parentheses
let g:rainbow_active = 1 let g:rainbow_active = 1
@ -86,6 +83,15 @@ let g:buftabline_indicators = 1
" Markdown " Markdown
let g:vim_markdown_conceal = 0 let g:vim_markdown_conceal = 0
" Python
let g:python_highlight_all = 1
" C/CPP
let g:cpp_class_scope_highlight = 1
let g:cpp_member_variable_highlight = 1
let g:cpp_class_decl_highlight = 1
let g:cpp_posix_standard = 1
let g:cpp_experimental_template_highlight = 1
let g:cpp_concepts_highlight = 1
" Deoplete " Deoplete
let g:deoplete#enable_at_startup = 0 let g:deoplete#enable_at_startup = 0