user setup and doc updates

This commit is contained in:
ray-x 2021-04-25 13:58:32 +10:00
parent 54f4fca0c0
commit 93460890c6
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ The plugin can be loaded lazily (packer `opt = true` ), And it will check if opt
Please refer to lua/navigator/lspclient/mapping.lua on key mappings. Should be able to work out-of-box.
- Use \<c-e\> or `:q!` to kill the floating window
- <up/down> to move
- <up/down> (or \<c-n\>, \<c-p\>) to move
- \<c-o\> to open location or apply code actions
## Screenshots

View File

@ -46,13 +46,13 @@ M.config_values = function() return _NgConfigValues end
M.setup = function(cfg)
extend_config(cfg)
-- print("loading navigator")
require('navigator.lspclient').setup(M.config_values)
require('navigator.lspclient').setup(_NgConfigValues)
require('navigator.reference')
require('navigator.definition')
require('navigator.hierarchy')
require('navigator.implementation')
-- log("navigator loader")
if M.config_values.code_action_prompt.enable then
if _NgConfigValues.code_action_prompt.enable then
vim.cmd [[autocmd CursorHold,CursorHoldI * lua require'navigator.codeAction'.code_action_prompt()]]
end