-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathbarbecue.diff
29 lines (29 loc) · 1.32 KB
/
barbecue.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/nvim/lua/usr/nvim-treesitter.lua b/nvim/lua/usr/nvim-treesitter.lua
index ffc71537274f..fd776b9bff59 100644
--- a/nvim/lua/usr/nvim-treesitter.lua
+++ b/nvim/lua/usr/nvim-treesitter.lua
@@ -78,7 +78,7 @@ require("nvim-treesitter.configs").setup({
["xK"] = "@class.outer",
},
goto_previous_start = {
- ["xh"] = "@function.outer",
+ ["gj"] = "@function.outer",
["xH"] = "@class.outer",
},
goto_previous_end = {
diff --git a/nvim/lua/usr/which-key.lua b/nvim/lua/usr/which-key.lua
index e6f40e45cab0..6aecf0881c4c 100644
--- a/nvim/lua/usr/which-key.lua
+++ b/nvim/lua/usr/which-key.lua
@@ -119,11 +119,6 @@ wk.add({
{ "gD", "<cmd>lua vim.lsp.buf.declaration()<cr>", desc = "go to declaration" },
{ "gd", "<cmd>lua vim.lsp.buf.definition()<cr>", desc = "go to definition" },
{ "gi", "<cmd>lua vim.lsp.buf.implementation()<cr>", desc = "go to implementation" },
- {
- "gj",
- "<cmd>lua require('barbecue.ui').navigate(-1)<cr>",
- desc = "go to the head of function / struct",
- },
{ "gr", "<cmd>lua vim.lsp.buf.references()<cr>", desc = "go to reference" },
{ "gw", "<cmd>Telescope diagnostics<cr>", desc = "diagnostics" },
{ "m", group = "bookmarks" },