Skip to content

Commit

Permalink
fix: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha2phi committed Jul 21, 2023
1 parent ade78ce commit e4405c1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lua/base/lsp/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ local M = {}
function M.on_attach(client, buffer)
local self = M.new(client, buffer)

self:map("gd", "Telescope lsp_definitions", { desc = "Goto Definition" })
-- stylua: ignore
self:map("gd", function() require("telescope.builtin").lsp_definitions({ reuse_win = true }) end, { desc = "Goto Definition" })
self:map("gr", "Telescope lsp_references", { desc = "References" })
self:map("gI", "Telescope lsp_implementations", { desc = "Goto Implementation" })
self:map("gb", "Telescope lsp_type_definitions", { desc = "Goto Type Definition" })
-- stylua: ignore
self:map("gI", function() require("telescope.builtin").lsp_implementations({ reuse_win = true }) end, { desc = "Goto Implementation" })
-- stylua: ignore
self:map("gy", function() require("telescope.builtin").lsp_type_definitions({ reuse_win = true }) end, { desc = "Goto Type Definition" })
self:map("K", vim.lsp.buf.hover, { desc = "Hover" })
self:map("gK", vim.lsp.buf.signature_help, { desc = "Signature Help", has = "signatureHelp" })
self:map("]d", M.diagnostic_goto(true), { desc = "Next Diagnostic" })
Expand Down

0 comments on commit e4405c1

Please sign in to comment.