diff --git a/README.md b/README.md index 0257b9b..b05ca33 100644 --- a/README.md +++ b/README.md @@ -301,6 +301,8 @@ servers. (Prevent loading multiple LSP for same source code.) e.g. I saw strange pylsp+pyright+jedi together. If you have multiple similar LSP installed and have trouble with the plugin, please enable only one at a time. +Note: If you have multiple lsp installed for same language, please only enable one at a time by disable others with e.g. `disable_lsp={'denols', 'clangd'}` + ### Disable a lsp client loading from navigator To disable a specific LSP, set `filetypes` to {} e.g. diff --git a/lua/navigator/treesitter.lua b/lua/navigator/treesitter.lua index f5e5c96..fe27bf5 100644 --- a/lua/navigator/treesitter.lua +++ b/lua/navigator/treesitter.lua @@ -235,7 +235,7 @@ function M.goto_adjacent_usage(bufnr, delta) local opt = {forward = true} -- log(delta) if delta < 0 then - opt = {forward = false} + opt.forward = false end bufnr = bufnr or api.nvim_get_current_buf() local node_at_point = ts_utils.get_node_at_cursor()