From 442802c1470e252f57818bc41b0bf41ef9485907 Mon Sep 17 00:00:00 2001 From: Kent Smith Date: Fri, 18 Nov 2022 09:52:14 -0800 Subject: more fun vim plugins --- .gitmodules | 18 ++++++++++++++++++ .vim/pack/git-plugins/start/ale | 1 + .vim/pack/git-plugins/start/dadbod | 1 + .vim/pack/git-plugins/start/fugitive | 1 + .vim/pack/git-plugins/start/vim-dotenv | 1 + .vim/pack/git-plugins/start/vim-lsp-ale | 1 + .vim/pack/git-plugins/start/vim-rhubarb | 1 + .vimrc | 18 ++++++++++++++++-- 8 files changed, 40 insertions(+), 2 deletions(-) create mode 160000 .vim/pack/git-plugins/start/ale create mode 160000 .vim/pack/git-plugins/start/dadbod create mode 160000 .vim/pack/git-plugins/start/fugitive create mode 160000 .vim/pack/git-plugins/start/vim-dotenv create mode 160000 .vim/pack/git-plugins/start/vim-lsp-ale create mode 160000 .vim/pack/git-plugins/start/vim-rhubarb diff --git a/.gitmodules b/.gitmodules index 904ff1a..c853939 100644 --- a/.gitmodules +++ b/.gitmodules @@ -73,3 +73,21 @@ [submodule ".vim/pack/git-plugins/start/asyncomplete-lsp.vim"] path = .vim/pack/git-plugins/start/asyncomplete-lsp.vim url = https://github.com/prabirshrestha/asyncomplete-lsp.vim +[submodule ".vim/pack/git-plugins/start/fugitive"] + path = .vim/pack/git-plugins/start/fugitive + url = https://tpope.io/vim/fugitive.git +[submodule ".vim/pack/git-plugins/start/vim-rhubarb"] + path = .vim/pack/git-plugins/start/vim-rhubarb + url = https://github.com/tpope/vim-rhubarb.git +[submodule ".vim/pack/git-plugins/start/ale"] + path = .vim/pack/git-plugins/start/ale + url = https://github.com/dense-analysis/ale.git +[submodule ".vim/pack/git-plugins/start/vim-lsp-ale"] + path = .vim/pack/git-plugins/start/vim-lsp-ale + url = https://github.com/rhysd/vim-lsp-ale +[submodule ".vim/pack/git-plugins/start/dadbod"] + path = .vim/pack/git-plugins/start/dadbod + url = https://tpope.io/vim/dadbod.git +[submodule ".vim/pack/git-plugins/start/vim-dotenv"] + path = .vim/pack/git-plugins/start/vim-dotenv + url = https://github.com/tpope/vim-dotenv diff --git a/.vim/pack/git-plugins/start/ale b/.vim/pack/git-plugins/start/ale new file mode 160000 index 0000000..f085227 --- /dev/null +++ b/.vim/pack/git-plugins/start/ale @@ -0,0 +1 @@ +Subproject commit f085227504076dff5224cbf10cb1bf83286188a9 diff --git a/.vim/pack/git-plugins/start/dadbod b/.vim/pack/git-plugins/start/dadbod new file mode 160000 index 0000000..8778515 --- /dev/null +++ b/.vim/pack/git-plugins/start/dadbod @@ -0,0 +1 @@ +Subproject commit 87785156a7919f51409f3e6656ea2b3a9e0e8e97 diff --git a/.vim/pack/git-plugins/start/fugitive b/.vim/pack/git-plugins/start/fugitive new file mode 160000 index 0000000..dd8107c --- /dev/null +++ b/.vim/pack/git-plugins/start/fugitive @@ -0,0 +1 @@ +Subproject commit dd8107cabf5fe85df94d5eedcae52415e543f208 diff --git a/.vim/pack/git-plugins/start/vim-dotenv b/.vim/pack/git-plugins/start/vim-dotenv new file mode 160000 index 0000000..5c51cfc --- /dev/null +++ b/.vim/pack/git-plugins/start/vim-dotenv @@ -0,0 +1 @@ +Subproject commit 5c51cfcf8d87280d6414e03cd6b253eb70ecb800 diff --git a/.vim/pack/git-plugins/start/vim-lsp-ale b/.vim/pack/git-plugins/start/vim-lsp-ale new file mode 160000 index 0000000..db0f9a8 --- /dev/null +++ b/.vim/pack/git-plugins/start/vim-lsp-ale @@ -0,0 +1 @@ +Subproject commit db0f9a8a33c0480988dc420cd2fba8a07743e4a4 diff --git a/.vim/pack/git-plugins/start/vim-rhubarb b/.vim/pack/git-plugins/start/vim-rhubarb new file mode 160000 index 0000000..cad60fe --- /dev/null +++ b/.vim/pack/git-plugins/start/vim-rhubarb @@ -0,0 +1 @@ +Subproject commit cad60fe382f3f501bbb28e113dfe8c0de6e77c75 diff --git a/.vimrc b/.vimrc index a3db86d..e2c82d7 100644 --- a/.vimrc +++ b/.vimrc @@ -234,7 +234,7 @@ cmap w!! %!sudo tee > /dev/null % " This replicates the idea of closing a tab nmap bq :bp bd # -colorscheme base16-tomorrow-night +colorscheme base16-default-dark " Load all plugins now. " Plugins need to be added to runtimepath before helptags can be generated. @@ -258,7 +258,7 @@ function! s:on_lsp_buffer_enabled() abort nmap ]g (lsp-next-diagnostic) nmap K (lsp-hover) nnoremap lsp#scroll(+4) - nnoremap lsp#scroll(-4) + nnoremap lsp#scroll(-4) let g:lsp_format_sync_timeout = 1000 autocmd! BufWritePre *.rs,*.go call execute('LspDocumentFormatSync') @@ -271,3 +271,17 @@ augroup lsp_install " call s:on_lsp_buffer_enabled only for languages that has the server registered. autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() augroup END + +if executable('solargraph') + " gem install solargraph + au User lsp_setup call lsp#register_server({ + \ 'name': 'solargraph', + \ 'cmd': {server_info->[&shell, &shellcmdflag, 'solargraph stdio']}, + \ 'initialization_options': {"diagnostics": "true"}, + \ 'whitelist': ['ruby'], + \ }) +endif + +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? asyncomplete#close_popup() : "\" -- cgit v1.2.3