strange code action casued cursor drifting. disable codeaction in insert mode

neovim_0_5
ray-x 3 years ago
parent e36809759b
commit cde5c6be5c

@ -62,7 +62,7 @@ implementation.
- FZY search with Lua-JIT
- LSP multiple symbol highlight and jump between references
- LSP multiple symbol highlight/marker and hop between document references
- Better navigation for diagnostic errors, Navigate through all files/buffers that contain errors/warnings
@ -86,6 +86,8 @@ in the same line). Using treesitter for file preview highlighter etc
- LRU cache for treesitter nodes
- Lazy loader friendly
# Why a new plugin
I'd like to go beyond what the system is providing.
@ -324,6 +326,8 @@ require'navigator'.setup({
| i/n | number 1~9 | move to ith row/item in the list|
| i/n | \<Up\> | previous item in list|
| i/n | \<Down\> | next item in list|
| n | \<Ctrl-w\>j | move cursor to preview (windows move to bottom view point)|
| n | \<Ctrl-w\>k | move cursor to list (windows move to up view point)|
| i/n | \<C-o\> | open preview file in nvim/Apply action|
| n | \<Enter\> | open preview file in nvim/Apply action|
| i/n | \<C-b\> | previous page in listview|

@ -88,7 +88,14 @@ local extend_config = function(opts)
-- end
if type(_NgConfigValues[key]) == "table" then
for k, v in pairs(value) do
_NgConfigValues[key][k] = v
-- level 3
if type(_NgConfigValues[key][k]) == "table" then
for k2, v2 in pairs(v) do
_NgConfigValues[key][k][k2] = v2
end
else
_NgConfigValues[key][k] = v
end
end
else
_NgConfigValues[key] = value
@ -104,6 +111,7 @@ M.config_values = function()
end
M.setup = function(cfg)
print(vim.inspect(cfg))
extend_config(cfg)
-- local log = require"navigator.util".log
-- log(debug.traceback())
@ -119,7 +127,7 @@ M.setup = function(cfg)
-- log("navigator loader")
if _NgConfigValues.code_action_prompt.enable then
vim.cmd [[autocmd CursorHold,CursorHoldI * lua require'navigator.codeAction'.code_action_prompt()]]
vim.cmd [[autocmd CursorHold * lua require'navigator.codeAction'.code_action_prompt()]]
end
-- vim.cmd("autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4")
if not _NgConfigValues.loaded then

@ -447,7 +447,7 @@ local function setup(user_opts)
return
end
if user_opts ~= nil then
log("navigator setup", user_opts)
log("navigator user setup", user_opts)
end
trace(debug.traceback())
user_opts = user_opts or config -- incase setup was triggered from autocmd

Loading…
Cancel
Save