nvim: purge vim-plug

we're doing this now https://hiphish.github.io/blog/2021/12/05/managing-vim-plugins-without-plugin-manager/
This commit is contained in:
dogeystamp 2024-03-03 16:49:51 -05:00
parent 617193ac5c
commit f82a0f933d
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
26 changed files with 113 additions and 2903 deletions

90
.gitmodules vendored
View File

@ -1,9 +1,93 @@
[submodule "src/.local/bin/calcpy"]
path = src/.local/bin/calcpy
url = https://github.com/idanpa/calcpy
[submodule "src/.local/bin/pyinstantref"]
path = src/.local/bin/pyinstantref
url = https://github.com/dogeystamp/pyinstantref
[submodule "src/.local/bin/inkscape-shortcut-manager"]
path = src/.local/bin/inkscape-shortcut-manager
url = https://github.com/dogeystamp/inkscape-shortcut-manager
# prompts
# telescope.vim
[submodule "src/.local/share/nvim/site/pack/3pp/start/telescope.nvim"]
path = src/.local/share/nvim/site/pack/3pp/start/telescope.nvim
url = https://github.com/nvim-telescope/telescope.nvim.git
[submodule "src/.local/share/nvim/site/pack/3pp/start/plenary.nvim"]
path = src/.local/share/nvim/site/pack/3pp/start/plenary.nvim
url = https://github.com/nvim-lua/plenary.nvim.git
# color theme
# init.vim
[submodule "src/.local/share/nvim/site/pack/3pp/start/rasmus.nvim"]
path = src/.local/share/nvim/site/pack/3pp/start/rasmus.nvim
url = https://github.com/kvrohit/rasmus.nvim.git
# url motions
# init.lua
[submodule "src/.local/share/nvim/site/pack/3pp/start/urlview.nvim"]
path = src/.local/share/nvim/site/pack/3pp/start/urlview.nvim
url = https://github.com/axieax/urlview.nvim
# git symbols in the gutter
# init.vim
[submodule "src/.local/share/nvim/site/pack/3pp/start/vim-gitgutter"]
path = src/.local/share/nvim/site/pack/3pp/start/vim-gitgutter
url = https://github.com/airblade/vim-gitgutter.git
# error/warning/info box
# coding.vim
[submodule "src/.local/share/nvim/site/pack/3pp/start/trouble.nvim"]
path = src/.local/share/nvim/site/pack/3pp/start/trouble.nvim
url = https://github.com/folke/trouble.nvim
# auto close brackets and quotes
# coding.vim
[submodule "src/.local/share/nvim/site/pack/3pp/start/auto-pairs"]
path = src/.local/share/nvim/site/pack/3pp/start/auto-pairs
url = https://github.com/jiangmiao/auto-pairs
# debugging and stuff
# vimspector.vim
[submodule "src/.local/share/nvim/site/pack/3pp/start/vimspector"]
path = src/.local/share/nvim/site/pack/3pp/start/vimspector
url = https://github.com/puremourning/vimspector.git
# language smarts
# coding.vim
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-lspconfig"]
path = src/.local/share/nvim/site/pack/3pp/start/nvim-lspconfig
url = https://github.com/neovim/nvim-lspconfig.git
[submodule "src/.local/share/nvim/site/pack/3pp/start/lsp-status.nvim"]
path = src/.local/share/nvim/site/pack/3pp/start/lsp-status.nvim
url = https://github.com/nvim-lua/lsp-status.nvim.git
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-cmp"]
path = src/.local/share/nvim/site/pack/3pp/start/nvim-cmp
url = https://github.com/hrsh7th/nvim-cmp.git
[submodule "src/.local/share/nvim/site/pack/3pp/start/cmp-nvim-lsp"]
path = src/.local/share/nvim/site/pack/3pp/start/cmp-nvim-lsp
url = https://github.com/hrsh7th/cmp-nvim-lsp.git
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-treesitter"]
path = src/.local/share/nvim/site/pack/3pp/start/nvim-treesitter
url = https://github.com/nvim-treesitter/nvim-treesitter.git
# aesthetic changes
# coding.vim
[submodule "src/.local/share/nvim/site/pack/3pp/start/dressing.nvim"]
path = src/.local/share/nvim/site/pack/3pp/start/dressing.nvim
url = https://github.com/stevearc/dressing.nvim.git
# plain-text-accounting ledger ftplugin
# ftplugin/ledger.vim
[submodule "src/.local/share/nvim/site/pack/3pp/start/vim-ledger"]
path = src/.local/share/nvim/site/pack/3pp/start/vim-ledger
url = https://github.com/ledger/vim-ledger.git
# document typesetting
# ftplugin/typst.vim
[submodule "src/.local/share/nvim/site/pack/3pp/start/typst.vim"]
path = src/.local/share/nvim/site/pack/3pp/start/typst.vim
url = https://github.com/kaarmu/typst.vim.git
# snippet engine
# ultisnips.vim
[submodule "src/.local/share/nvim/site/pack/3pp/opt/ultisnips"]
path = src/.local/share/nvim/site/pack/3pp/opt/ultisnips
url = https://github.com/SirVer/ultisnips.git

View File

@ -1,31 +1,17 @@
" configurations for coding
" -------------------------
Plug 'neovim/nvim-lspconfig'
Plug 'nvim-lua/lsp-status.nvim'
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'stevearc/dressing.nvim'
Plug 'nvim-treesitter/nvim-treesitter'
" Code folding
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
"autocmd BufEnter * normal zR
" debugger interface atop many many abstractions
" (works on a lot of languages though!)
Plug 'puremourning/vimspector'
source $XDG_CONFIG_HOME/nvim/vimspector.vim
" bracket closing
Plug 'jiangmiao/auto-pairs'
" auto-pairs
let g:AutoPairsFlyMode = 0
" improved error list
Plug 'folke/trouble.nvim'
" trouble.nvim
nnoremap <leader>dxx <cmd>TroubleToggle<cr>
nnoremap <leader>dxw <cmd>TroubleToggle workspace_diagnostics<cr>
nnoremap <leader>dxd <cmd>TroubleToggle document_diagnostics<cr>

View File

@ -1,3 +1,5 @@
" plug: typst.vim
" edit figure in Inkscape
function EditFig()
" expands filename under cursor

View File

@ -70,51 +70,26 @@ nnoremap <silent> ZF :qa<cr>
" copy URL under cursor to clipboard bind
:nnoremap <silent><leader>uu :let @+ = expand('<cfile>')<CR>
" Plugins
" Run PlugInstall if there are missing plugins
if $SYSTEM_PROFILE == "DEFAULT"
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | source $MYVIMRC
\| endif
endif
" The rest will not be sourced if the system is on minimal settings.
if $SYSTEM_PROFILE == "MINIMAL"
finish
endif
call plug#begin()
filetype plugin indent on
" i don't use LaTeX anymore, but you can uncomment this to
"source $XDG_CONFIG_HOME/nvim/vimtex.vim
source $XDG_CONFIG_HOME/nvim/ultisnips.vim
if $SYSTEM_PROFILE == "DEFAULT"
" plugins for IDE-like nvim
source $XDG_CONFIG_HOME/nvim/coding.vim
" notes and documents stuff
" see ftplugin/typst.vim for binds and stuff
Plug 'kaarmu/typst.vim'
endif
" color theme
Plug 'kvrohit/rasmus.nvim'
" personal preference
autocmd ColorScheme * highlight clear statusline
set shortmess+=I
" URL motions
Plug 'axieax/urlview.nvim'
Plug 'ledger/vim-ledger'
" gitgutter
" adds git diffs to the gutter (side bar thing)
Plug 'airblade/vim-gitgutter'
highlight GitGutterAdd ctermfg=green
highlight GitGutterChange ctermfg=yellow
highlight GitGutterDelete ctermfg=red
@ -123,8 +98,6 @@ highlight GitGutterDelete ctermfg=red
source $XDG_CONFIG_HOME/nvim/telescope.vim
call plug#end()
source $XDG_CONFIG_HOME/nvim/color.vim
if $SYSTEM_PROFILE == "DEFAULT"

View File

@ -1,5 +1,4 @@
Plug 'nvim-telescope/telescope.nvim'
Plug 'nvim-lua/plenary.nvim'
" depends on: telescope.nvim, plenary.nvim
nnoremap <leader>ef <cmd>Telescope find_files<cr>
nnoremap <leader>eg <cmd>Telescope live_grep<cr>

View File

@ -1,7 +1,7 @@
" snippet engine (see .config/nvim/ultisnips/)
if has('python3') && ($SYSTEM_PROFILE == "DEFAULT" || $SYSTEM_PROFILE == "SLIM")
Plug 'SirVer/ultisnips'
packadd ultisnips
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"

View File

@ -1,3 +1,5 @@
" vimspector
let g:vimspector_sidebar_width = 30
let g:vimspector_terminal_maxwidth = 30

View File

@ -1,27 +0,0 @@
if $SYSTEM_PROFILE == "DEFAULT"
Plug 'lervag/vimtex'
let g:vimtex_view_method = 'zathura'
let g:vimtex_compiler_method = 'latexmk'
set conceallevel=0
let g:tex_conceal='abdmg'
let g:vimtex_view_forward_search_on_start=1
let g:vimtex_compiler_latexmk = {
\ 'build_dir' : $HOME.'/.cache/latexmk/',
\ 'callback' : 1,
\ 'continuous' : 1,
\ 'executable' : 'latexmk',
\ 'hooks' : [],
\ 'options' : [
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ],
\}
" spellcheck
au BufEnter *.tex set spell spelllang=en_ca
" Autowrite in tex files
" au TextChanged,TextChangedI *.tex silent write
endif

File diff suppressed because it is too large Load Diff

@ -0,0 +1 @@
Subproject commit b393ba65386d47664421e1f8b246a87a6e8b218c

@ -0,0 +1 @@
Subproject commit 39f06b873a8449af8ff6a3eee716d3da14d63a76

@ -0,0 +1 @@
Subproject commit 5af77f54de1b16c34b23cba810150689a3a90312

@ -0,0 +1 @@
Subproject commit 6f212262061a2120e42da0d1e87326e8a41c0478

@ -0,0 +1 @@
Subproject commit 54f48eb5017632d81d0fd40112065f1d062d0629

@ -0,0 +1 @@
Subproject commit 04e0ca376d6abdbfc8b52180f8ea236cbfddf782

@ -0,0 +1 @@
Subproject commit c932a56bf25167b1e88d2a1ebe35bb774b41019a

@ -0,0 +1 @@
Subproject commit 63ca90eaa3ce1cc668add8828a9e3d6728dbbdf1

@ -0,0 +1 @@
Subproject commit 4f71c0c4a196ceb656c824a70792f3df3ce6bb6d

@ -0,0 +1 @@
Subproject commit f824de95d446686e479781c0c2b778c177da528f

@ -0,0 +1 @@
Subproject commit aa83606299c5beeaf80e656efbf07bde258db7be

@ -0,0 +1 @@
Subproject commit f1168feada93c0154ede4d1fe9183bf69bac54ea

@ -0,0 +1 @@
Subproject commit ff57d27cf5ee7427941a63fb537714f9a80e0246

@ -0,0 +1 @@
Subproject commit 7d622e11adbc2cac5bba62345ade9b6672d564a4

@ -0,0 +1 @@
Subproject commit 67ef116100b40f9ca128196504a2e0bc0a2753b0

@ -0,0 +1 @@
Subproject commit 281346a221434574dd7f8767a352b2bf0b218b74

@ -0,0 +1 @@
Subproject commit def092693ea33eb2055fb2cfbcabb8e56ea77963