feat!: change to some default LSP bindings
This commit is contained in:
+2
-6
@@ -67,8 +67,6 @@ function M:init(server, bufnr)
|
|||||||
lhs = "<C-h>",
|
lhs = "<C-h>",
|
||||||
rhs = vim.lsp.buf.document_highlight,
|
rhs = vim.lsp.buf.document_highlight,
|
||||||
},
|
},
|
||||||
{ mode = { "n" }, lhs = "<leader>lr", rhs = vim.lsp.buf.rename },
|
|
||||||
{ mode = { "n" }, lhs = "<leader>la", rhs = vim.lsp.buf.code_action },
|
|
||||||
{ mode = { "n", "x" }, lhs = "<leader>lf", rhs = vim.lsp.buf.format },
|
{ mode = { "n", "x" }, lhs = "<leader>lf", rhs = vim.lsp.buf.format },
|
||||||
{
|
{
|
||||||
mode = { "n" },
|
mode = { "n" },
|
||||||
@@ -101,8 +99,8 @@ function M:init(server, bufnr)
|
|||||||
rhs = telescope.lsp_type_definitions,
|
rhs = telescope.lsp_type_definitions,
|
||||||
},
|
},
|
||||||
{ mode = "n", lhs = "gd", rhs = telescope.lsp_definitions },
|
{ mode = "n", lhs = "gd", rhs = telescope.lsp_definitions },
|
||||||
{ mode = "n", lhs = "gi", rhs = telescope.lsp_implementations },
|
{ mode = "n", lhs = "gri", rhs = telescope.lsp_implementations },
|
||||||
{ mode = "n", lhs = "gr", rhs = telescope.lsp_references },
|
{ mode = "n", lhs = "grr", rhs = telescope.lsp_references },
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
vim.list_extend(self.new[bufnr], {
|
vim.list_extend(self.new[bufnr], {
|
||||||
@@ -113,8 +111,6 @@ function M:init(server, bufnr)
|
|||||||
rhs = vim.lsp.buf.type_definition,
|
rhs = vim.lsp.buf.type_definition,
|
||||||
},
|
},
|
||||||
{ mode = "n", lhs = "gd", rhs = vim.lsp.buf.definition },
|
{ mode = "n", lhs = "gd", rhs = vim.lsp.buf.definition },
|
||||||
{ mode = "n", lhs = "gi", rhs = vim.lsp.buf.implementation },
|
|
||||||
{ mode = "n", lhs = "gr", rhs = vim.lsp.buf.references },
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user