|
|
|
@ -16,16 +16,6 @@ local key_maps = {
|
|
|
|
|
{key = "gr", func = "references()"}, {mode = "i", key = "<M-k>", func = "signature_help()"},
|
|
|
|
|
{key = "gs", func = "signature_help()"}, {key = "g0", func = "document_symbol()"},
|
|
|
|
|
{key = "gW", func = "workspace_symbol()"}, {key = "<c-]>", func = "definition()"},
|
|
|
|
|
{key = "gs", func = "signature_help()"}, {key = "g0", func = "document_symbol()"},
|
|
|
|
|
{key = "gW", func = "workspace_symbol()"}, {key = "<c-]>", func = "definition()"},
|
|
|
|
|
{key = "gD", func = "declaration({ popup_opts = { border = 'single' }})"},
|
|
|
|
|
{key = "gp", func = "require('navigator.definition').definition_preview()"},
|
|
|
|
|
{key = "gT", func = "require('navigator.treesitter').buf_ts()"},
|
|
|
|
|
{key = "GT", func = "require('navigator.treesitter').bufs_ts()"},
|
|
|
|
|
{key = "gs", func = "signature_help()"}, {key = "g0", func = "document_symbol()"},
|
|
|
|
|
{key = "gW", func = "workspace_symbol()"}, {key = "<c-]>", func = "definition()"},
|
|
|
|
|
{key = "gs", func = "signature_help()"}, {key = "g0", func = "document_symbol()"},
|
|
|
|
|
{key = "gW", func = "workspace_symbol()"}, {key = "<c-]>", func = "definition()"},
|
|
|
|
|
{key = "gD", func = "declaration({ popup_opts = { border = 'single' }})"},
|
|
|
|
|
{key = "gp", func = "require('navigator.definition').definition_preview()"},
|
|
|
|
|
{key = "gT", func = "require('navigator.treesitter').buf_ts()"},
|
|
|
|
@ -68,8 +58,8 @@ local function set_mapping(user_opts)
|
|
|
|
|
for _, v in pairs(user_key) do
|
|
|
|
|
local exists = false
|
|
|
|
|
for _, default in pairs(key_maps) do
|
|
|
|
|
if v.func == default.func then
|
|
|
|
|
default.key, exists = v.key, true
|
|
|
|
|
if v.func == default.func and (not default.override) then
|
|
|
|
|
default.key, default.override, exists = v.key, true, true
|
|
|
|
|
break
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|