summaryrefslogtreecommitdiff
path: root/plug-config
diff options
context:
space:
mode:
authorChris <[email protected]>2021-03-10 12:04:37 -0500
committerChris <[email protected]>2021-03-10 12:04:37 -0500
commit3e7f568d1e20c51d38d767b8dfb98e6253c4c9e1 (patch)
tree275f7805a2c2f2363a6fd5d36bddf9a526c0cd03 /plug-config
parent3601498afed5fa3162e10fe72c010f6b4f0ca9e0 (diff)
cleanup
Diffstat (limited to 'plug-config')
-rw-r--r--plug-config/lightbulb.vim2
-rw-r--r--plug-config/lsp-saga.vim9
2 files changed, 11 insertions, 0 deletions
diff --git a/plug-config/lightbulb.vim b/plug-config/lightbulb.vim
new file mode 100644
index 00000000..d869f930
--- /dev/null
+++ b/plug-config/lightbulb.vim
@@ -0,0 +1,2 @@
+" Lightbulb
+autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_lightbulb()
diff --git a/plug-config/lsp-saga.vim b/plug-config/lsp-saga.vim
new file mode 100644
index 00000000..91e1d01c
--- /dev/null
+++ b/plug-config/lsp-saga.vim
@@ -0,0 +1,9 @@
+ " TODO find way to add doc abilities back for compe
+ nnoremap <silent> K <cmd>lua require('lspsaga.hover').render_hover_doc()<CR>
+ " -- scroll down hover doc or scroll in definition preview
+ nnoremap <silent> <C-f> <cmd>lua require('lspsaga.action').smart_scroll_with_saga(1)<CR>
+ " -- scroll up hover doc
+ nnoremap <silent> <C-b> <cmd>lua require('lspsaga.action').smart_scroll_with_saga(-1)<CR>
+ " signature
+ nnoremap <silent> gs <cmd>lua require('lspsaga.signaturehelp').signature_help()<CR>
+