update default treebindings #39

This commit is contained in:
ray-x 2021-08-15 19:46:30 +10:00
parent 4ff9aa47a3
commit 7dd5d50691
3 changed files with 3 additions and 3 deletions

View File

@ -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 💡 ) |

View File

@ -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

View File

@ -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()"},