config/nvim/plugins: cut down drastically & reenable firenvim
For anything beyond basic text editing Emacs is my editor of choice now :)
This commit is contained in:
parent
12c2b4cb71
commit
a345cf94c6
|
@ -13,13 +13,12 @@ call plug#begin()
|
||||||
|
|
||||||
" Editing
|
" Editing
|
||||||
" text objects
|
" text objects
|
||||||
Plug 'xerus2000/argtextobj.vim' " arguments in brackets as text objects
|
Plug 'xeruf/argtextobj.vim' " arguments in brackets as text objects
|
||||||
Plug 'tpope/vim-surround' " edit surroundings - cs, ds, ys
|
Plug 'tpope/vim-surround' " edit surroundings - cs, ds, ys
|
||||||
Plug 'bkad/CamelCaseMotion' " move through camel case words
|
Plug 'bkad/CamelCaseMotion' " move through camel case words
|
||||||
" commands
|
" commands
|
||||||
Plug 'inkarkat/vim-ReplaceWithRegister' " gr to replace with register
|
Plug 'inkarkat/vim-ReplaceWithRegister' " gr to replace with register
|
||||||
Plug 'tpope/vim-commentary' " gc to comment out (gcap for paragraph)
|
Plug 'tpope/vim-commentary' " gc to comment out (gcap for paragraph)
|
||||||
Plug 'terryma/vim-multiple-cursors' " <C-n> new coursor+selection on match, <C-x> skip, <C-p> remove cursor & back
|
|
||||||
Plug 'junegunn/vim-easy-align' " ga to align stuff
|
Plug 'junegunn/vim-easy-align' " ga to align stuff
|
||||||
xmap ga <Plug>(EasyAlign)
|
xmap ga <Plug>(EasyAlign)
|
||||||
nmap ga <Plug>(EasyAlign)
|
nmap ga <Plug>(EasyAlign)
|
||||||
|
@ -31,14 +30,7 @@ Plug 'inkarkat/vim-ingo-library'
|
||||||
Plug 'DataWraith/auto_mkdir' " mkdir parent dirs when saving
|
Plug 'DataWraith/auto_mkdir' " mkdir parent dirs when saving
|
||||||
Plug 'AndrewRadev/bufferize.vim' " Command to buffer
|
Plug 'AndrewRadev/bufferize.vim' " Command to buffer
|
||||||
Plug 'tpope/vim-eunuch' " OS helpers
|
Plug 'tpope/vim-eunuch' " OS helpers
|
||||||
Plug 'tpope/vim-fugitive' " Git commands in vim
|
|
||||||
Plug 'jreybert/vimagit' " Magit for vim - git stage individual changes
|
|
||||||
Plug 'doy/vim-diff-changes' " Commands for diffing - :DiffAgainstFilesystem :DiffAgainstVCS :DiffStop
|
Plug 'doy/vim-diff-changes' " Commands for diffing - :DiffAgainstFilesystem :DiffAgainstVCS :DiffStop
|
||||||
Plug 'junegunn/fzf' " File selection with :FZF
|
|
||||||
" Browse
|
|
||||||
Plug 'tyru/open-browser.vim' " :OpenBrowser, :OpenBrowserSearch
|
|
||||||
Plug 'tyru/open-browser-github.vim'
|
|
||||||
Plug 'KabbAmine/zeavim.vim' " Integrate with Zeal (Dash) offline documentation
|
|
||||||
|
|
||||||
" QOL
|
" QOL
|
||||||
Plug 'farmergreg/vim-lastplace' " Automatically jump to last edit position
|
Plug 'farmergreg/vim-lastplace' " Automatically jump to last edit position
|
||||||
|
@ -47,24 +39,18 @@ Plug 'ntpeters/vim-better-whitespace' " Tools for trailing whitespace & mixed in
|
||||||
|
|
||||||
" Aesthetic
|
" Aesthetic
|
||||||
Plug 'vim-airline/vim-airline' " Status bar on the bottom
|
Plug 'vim-airline/vim-airline' " Status bar on the bottom
|
||||||
Plug 'psliwka/vim-smoothie' " Smooth scrolling
|
set noshowmode " Don't show current mode because airline already does and it inhibits echo in visual mode
|
||||||
Plug 'romainl/vim-cool' " Automatically stop highlighting search results when moving - https://stackoverflow.com/questions/657447/vim-clear-last-search-highlighting
|
Plug 'romainl/vim-cool' " Automatically stop highlighting search results when moving - https://stackoverflow.com/questions/657447/vim-clear-last-search-highlighting
|
||||||
Plug 'airblade/vim-gitgutter' " Git info on the left
|
Plug 'airblade/vim-gitgutter' " Git info on the left
|
||||||
Plug 'norcalli/nvim-colorizer.lua' " Highlights color literals
|
" Highlight color literals
|
||||||
|
Plug 'norcalli/nvim-colorizer.lua'
|
||||||
" Visual indent guides
|
" Visual indent guides
|
||||||
Plug 'nathanaelkane/vim-indent-guides'
|
Plug 'nathanaelkane/vim-indent-guides'
|
||||||
let g:indent_guides_enable_on_vim_startup = 1
|
let g:indent_guides_enable_on_vim_startup = 1
|
||||||
|
|
||||||
" Integrations
|
" Integrations
|
||||||
Plug 'dhruvasagar/vim-table-mode'
|
|
||||||
let g:table_mode_corner='|'
|
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release' }
|
|
||||||
Plug 'udalov/kotlin-vim'
|
|
||||||
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' }
|
|
||||||
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } }
|
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } }
|
||||||
Plug 'mipmip/vim-scimark' " Edit markdown tables
|
Plug 'mipmip/vim-scimark' " Edit markdown tables with sc-im
|
||||||
Plug 'APZelos/blamer.nvim' " Inline git blame
|
|
||||||
" Plug 'xerus2000/vim-dokuwiki'
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
" Don't show current mode because airline already does and it inhibits echo in visual mode
|
|
||||||
set noshowmode
|
|
||||||
|
|
||||||
command! PU PlugUpdate | PlugUpgrade
|
command! PU PlugUpdate | PlugUpgrade
|
||||||
|
|
||||||
lua require 'colorizer'.setup({ '*'; markdown = { names = false; }; })
|
lua require 'colorizer'.setup({ '*'; markdown = { names = false; }; })
|
||||||
|
@ -12,12 +9,6 @@ let g:better_whitespace_skip_empty_lines=1
|
||||||
let g:better_whitespace_guicolor=$THEME == 'light' ? 'LightGrey' : 'DarkGrey'
|
let g:better_whitespace_guicolor=$THEME == 'light' ? 'LightGrey' : 'DarkGrey'
|
||||||
" see https://github.com/ntpeters/vim-better-whitespace/issues/134 - autocmd OptionSet background let g:better_whitespace_guicolor=&background == 'light' ? 'LightYellow' : 'Brown'
|
" see https://github.com/ntpeters/vim-better-whitespace/issues/134 - autocmd OptionSet background let g:better_whitespace_guicolor=&background == 'light' ? 'LightYellow' : 'Brown'
|
||||||
|
|
||||||
let g:blamer_enabled = 1
|
|
||||||
let g:blamer_template = '<committer>: <summary> • <commit-short> <committer-time>'
|
|
||||||
let g:blamer_relative_time = 1
|
|
||||||
let g:blamer_delay = 300
|
|
||||||
" let g:blamer_show_in_visual_modes = 0
|
|
||||||
|
|
||||||
" remap movement commands to respect CamelCase
|
" remap movement commands to respect CamelCase
|
||||||
map <silent> w <Plug>CamelCaseMotion_w
|
map <silent> w <Plug>CamelCaseMotion_w
|
||||||
map <silent> b <Plug>CamelCaseMotion_b
|
map <silent> b <Plug>CamelCaseMotion_b
|
||||||
|
@ -30,15 +21,6 @@ xmap <silent> ib <Plug>CamelCaseMotion_ib
|
||||||
omap <silent> ie <Plug>CamelCaseMotion_ie
|
omap <silent> ie <Plug>CamelCaseMotion_ie
|
||||||
xmap <silent> ie <Plug>CamelCaseMotion_ie
|
xmap <silent> ie <Plug>CamelCaseMotion_ie
|
||||||
|
|
||||||
" open-browser
|
|
||||||
let g:openbrowser_default_search="duckduckgo"
|
|
||||||
let g:netrw_nogx = 1 " disable netrw's gx mapping.
|
|
||||||
nmap gs <Plug>(openbrowser-smart-search)
|
|
||||||
vmap gs <Plug>(openbrowser-smart-search)
|
|
||||||
nmap gx yi':OpenGithubProject <C-R>"<CR>
|
|
||||||
command! S OpenBrowserSmartSearch <C-R>"<CR>
|
|
||||||
command! GH OpenGithubProject <C-R>"<CR>
|
|
||||||
|
|
||||||
" firenvim
|
" firenvim
|
||||||
let g:firenvim_config = {
|
let g:firenvim_config = {
|
||||||
\ 'globalSettings': {
|
\ 'globalSettings': {
|
||||||
|
@ -49,7 +31,7 @@ let g:firenvim_config = {
|
||||||
\ 'cmdline': 'firenvim',
|
\ 'cmdline': 'firenvim',
|
||||||
\ 'priority': 0,
|
\ 'priority': 0,
|
||||||
\ 'selector': 'textarea:not([readonly]):not([class="handsontableInput"]):not([wrap="off"]), div[role="textbox"]:not([aria-label="Search"])',
|
\ 'selector': 'textarea:not([readonly]):not([class="handsontableInput"]):not([wrap="off"]), div[role="textbox"]:not([aria-label="Search"])',
|
||||||
\ 'takeover': 'never',
|
\ 'takeover': 'always',
|
||||||
\ },
|
\ },
|
||||||
\ '.*notion\.so.*': { 'priority': 9, 'takeover': 'never', },
|
\ '.*notion\.so.*': { 'priority': 9, 'takeover': 'never', },
|
||||||
\ '.*docs\.google\.com.*': { 'priority': 9, 'takeover': 'never', },
|
\ '.*docs\.google\.com.*': { 'priority': 9, 'takeover': 'never', },
|
||||||
|
|
Loading…
Reference in New Issue