commit d40191e7a5e5cc5656c7d68382e422a219f10b79
parent 6ad02df30677ebde33d8a103ffcfc2e42403aea1
Author: Pollux <pollux@pollux.codes>
Date: Mon, 26 May 2025 21:41:58 -0500
vim: replace fzf with vim-project
Signed-off-by: Pollux <pollux@pollux.codes>
Diffstat:
M | .vimrc | | | 18 | ++++++++++++++++-- |
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/.vimrc b/.vimrc
@@ -18,8 +18,8 @@ autocmd VimEnter * colorscheme wal
Plug 'SirVer/ultisnips'
let g:UltiSnipsExpandTrigger="<tab>"
-" Fuzzyfind
-Plug 'junegunn/fzf.vim'
+" Project Management/Search
+Plug 'leafOfTree/vim-project'
" LSP
Plug 'yegappan/lsp'
@@ -48,6 +48,15 @@ autocmd User LspSetup call LspAddServer(lspServers)
call plug#end()
+""" Misc AutoCMDs
+
+function OnStart()
+ if @% == ""
+ ProjectList
+ endif
+endfunction
+autocmd VimEnter * call OnStart()
+
""" Settings
set incsearch
set relativenumber
@@ -69,6 +78,11 @@ nmap ,dd :LspDiagCurrent<CR>
nmap ,dn :LspDiagNextWrap<CR>
nmap ,dp :LspDiagPrevWrap<CR>
+" Projects
+nmap ;; :ProjectList<CR>
+nmap ;r :ProjectFindInFiles<CR>
+nmap ;f :ProjectSearchFiles<CR>
+
" Misc
nmap <C-n> :noh<CR>