From 93460890c6c0e6eb3d9ebada017085f17b655f6c Mon Sep 17 00:00:00 2001 From: ray-x Date: Sun, 25 Apr 2021 13:58:32 +1000 Subject: [PATCH] user setup and doc updates --- README.md | 2 +- lua/navigator.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 26f5737..0d5fd27 100644 --- a/README.md +++ b/README.md @@ -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 \ or `:q!` to kill the floating window -- to move +- (or \, \) to move - \ to open location or apply code actions ## Screenshots diff --git a/lua/navigator.lua b/lua/navigator.lua index 29e1e76..8e1c427 100644 --- a/lua/navigator.lua +++ b/lua/navigator.lua @@ -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