bugfix issue #97

neovim_0.6
ray-x 3 years ago
parent 262181246d
commit 427007ee9b

@ -596,6 +596,32 @@ Codelens for C++/ccls. Symbol reference
![nerdfont](https://github.com/ray-x/files/blob/master/img/navigator/icon_nerd.jpg?raw=true)
# Debug the plugin
One simple way to gether debug info and understand what is wrong is output the debug logs
```lua
require'navigator'.setup({
debug = false, -- log output, set to true and log path: ~/.local/share/nvim/gh.log
})
```
```lua
-- output the logs
local log = require"navigator.util".log
-- output your log
local definition_hdlr = util.mk_handler(function(err, locations, ctx, _)
log('this is a log for locations', locations, "and ctx", ctx)
if err ~= nil then
return
end
end
```
# Break changes and known issues
[known issues I am working on](https://github.com/ray-x/navigator.lua/issues/1)

@ -438,7 +438,7 @@ local function apply_action(action, client, ctx)
end
if action.command then
local command = type(action.command) == 'table' and action.command or action
local fn = vim.lsp.commands[command.command]
local fn = vim.lsp.commands and vim.lsp.commands[command.command]
if fn then
local enriched_ctx = vim.deepcopy(ctx)
enriched_ctx.client_id = client.id

Loading…
Cancel
Save