From 74ea1ddd737a8f2a17cd2a969685c1e3b007d0c5 Mon Sep 17 00:00:00 2001 From: ray-x Date: Sun, 24 Oct 2021 12:30:52 +1100 Subject: [PATCH] document update --- README.md | 2 ++ lua/navigator/treesitter.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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()