mirror of
https://github.com/ray-x/navigator.lua
synced 2024-11-11 07:10:59 +00:00
update default treebindings #39
This commit is contained in:
parent
4ff9aa47a3
commit
7dd5d50691
@ -273,7 +273,7 @@ require'navigator'.setup({
|
||||
| n | \<C-LeftMouse\> | definition|
|
||||
| n | g\<LeftMouse\> | implementation|
|
||||
| n | gT | treesitter document symbol |
|
||||
| n | GT | treesitter symbol for all open buffers |
|
||||
| n | \<Leader\>gT | treesitter symbol for all open buffers |
|
||||
| n | K | hover doc |
|
||||
| n | \<Space\>ca | code action (when you see 💡 ) |
|
||||
| v | \<Space\>cA | range code action (when you see 💡 ) |
|
||||
|
@ -71,7 +71,7 @@ local function error_marker(result, client_id)
|
||||
})
|
||||
end
|
||||
end
|
||||
log("pos", pos, diag.range.start)
|
||||
trace("pos", pos, diag.range.start)
|
||||
end
|
||||
|
||||
for i, s in pairs(pos) do
|
||||
|
@ -23,7 +23,7 @@ local key_maps = {
|
||||
{key = "gD", func = "declaration({ 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 = "<Leader>gT", func = "require('navigator.treesitter').bufs_ts()"},
|
||||
{key = "K", func = "hover({ popup_opts = { border = single }})"},
|
||||
{key = "<Space>ca", mode = "n", func = "code_action()"},
|
||||
{key = "<Space>cA", mode = "v", func = "range_code_action()"},
|
||||
|
Loading…
Reference in New Issue
Block a user