From 890b3c5f7f589e318bce0dee86db0efb0d66cdcc Mon Sep 17 00:00:00 2001 From: ray-x Date: Wed, 8 Sep 2021 01:48:42 +1000 Subject: [PATCH] keymapping #57 --- lua/navigator/lspclient/mapping.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/navigator/lspclient/mapping.lua b/lua/navigator/lspclient/mapping.lua index 76b73aa..80d4bd3 100644 --- a/lua/navigator/lspclient/mapping.lua +++ b/lua/navigator/lspclient/mapping.lua @@ -42,8 +42,8 @@ local key_maps = { {key = "k", func = "require('navigator.dochighlight').hi_symbol()"}, {key = 'wa', func = 'add_workspace_folder()'}, {key = 'wr', func = 'remove_workspace_folder()'}, - {key = 'ff', func = 'formatting()'}, - {key = 'ff', func = 'range_formatting()', mode='v'}, + {key = 'ff', func = 'formatting()', mode='n'}, + {key = 'ff', func = 'range_formatting()', mode='v'}, {key = 'wl', func = 'print(vim.inspect(vim.lsp.buf.list_workspace_folders()))'}, {key = "la", mode = "n", func = "require('navigator.codelens').run_action()"}, @@ -95,7 +95,7 @@ local function set_mapping(user_opts) -- local function buf_set_option(...) -- vim.api.nvim_buf_set_option(bufnr, ...) -- end - local rsv, range_fmt, doc_fmt, ccls = check_cap() + local rsv, doc_fmt, range_fmt, ccls = check_cap() if ccls then vim.list_extend(key_maps, ccls_mappings)