From d58c377a736cc3effb67e4cee9dbf2d06d298d96 Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 8 Jul 2021 12:30:49 +1000 Subject: [PATCH] [Breaking] change some of mappings to be same as lspconfig --- README.md | 8 ++++---- lua/navigator/lspclient/mapping.lua | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e9d237d..e911cb8 100644 --- a/README.md +++ b/README.md @@ -266,14 +266,14 @@ require.'navigator'.setup({ | n | gT | treesitter document symbol | | n | GT | treesitter symbol for all open buffers | | n | K | hover doc | -| n | ga | code action (when you see 💡 ) | -| v | ga | range code action (when you see 💡 ) | +| n | \ca | code action (when you see 💡 ) | +| v | \cA | range code action (when you see 💡 ) | +| n | \rn | rename with floating window| | n | \re | rename (lsp default)| -| n | \re | rename with floating window| | n | \gi | incoming calls| | n | \go | outgoing calls| | n | gi | implementation | -| n | gt | type definition | +| n | \ gt | type definition | | n | gL | show line diagnostic | | n | gG | show diagnostic for all buffers | | n | ]d | next diagnostic| diff --git a/lua/navigator/lspclient/mapping.lua b/lua/navigator/lspclient/mapping.lua index d2c5e33..0b414a5 100644 --- a/lua/navigator/lspclient/mapping.lua +++ b/lua/navigator/lspclient/mapping.lua @@ -25,14 +25,14 @@ local key_maps = { {key = "gT", func = "require('navigator.treesitter').buf_ts()"}, {key = "GT", func = "require('navigator.treesitter').bufs_ts()"}, {key = "K", func = "hover({ popup_opts = { border = single }})"}, - {key = "ga", mode = "n", func = "code_action()"}, - {key = "ga", mode = "v", func = "range_code_action()"}, + {key = "ca", mode = "n", func = "code_action()"}, + {key = "cA", mode = "v", func = "range_code_action()"}, {key = "re", func = "rename()"}, - {key = "re", func = "require('navigator.rename').rename()"}, + {key = "rn", func = "require('navigator.rename').rename()"}, {key = "gi", func = "incoming_calls()"}, {key = "go", func = "outgoing_calls()"}, {key = "gi", func = "implementation()"}, - {key = "gt", func = "type_definition()"}, + {key = "D", func = "type_definition()"}, {key = "gL", func = "diagnostic.show_line_diagnostics({ popup_opts = { border = single }})"}, {key = "gG", func = "require('navigator.diagnostics').show_diagnostic()"}, {key = "]d", func = "diagnostic.goto_next({ popup_opts = { border = single }})"},