1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 19:41:15 +02:00

nvim: updated plugins, fixed minor errors in keymaps

This commit is contained in:
2024-02-07 05:36:35 +01:00
parent b134ff0302
commit 3a8523c9c7
2 changed files with 7 additions and 7 deletions

View File

@@ -86,12 +86,12 @@ m.nmap("<leader>gdc", ":DiffviewClose<CR>", "Git: close diff")
m.nmap("<leader>x", ":TroubleToggle<CR>", "LSP: toggle error list")
-- hrsh7th/nvim-cmp
m.nnoremap("gd", vim.lsp.buf.definition, "LSP: goto definition")
m.nnoremap("gD", vim.lsp.buf.declaration, "LSP: goto declaration")
m.nnoremap("gi", vim.lsp.buf.implementation, "LSP: list implementation")
m.nnoremap("gr", vim.lsp.buf.references, "LSP: list references")
m.nnoremap("gy", vim.lsp.buf.type_definition, "LSP: goto type definition")
m.nnoremap("K", vim.lsp.buf.hover, "LSP: show documentation")
m.nnoremap("gd", vim.lsp.buf.definition(), "LSP: goto definition")
m.nnoremap("gD", vim.lsp.buf.declaration(), "LSP: goto declaration")
m.nnoremap("gi", vim.lsp.buf.implementation(), "LSP: list implementation")
m.nnoremap("gr", vim.lsp.buf.references(), "LSP: list references")
m.nnoremap("gy", vim.lsp.buf.type_definition(), "LSP: goto type definition")
m.nnoremap("K", vim.lsp.buf.hover(), "LSP: show documentation")
m.nnoremap("<F8>", function() require("conform").format({ async = true, lsp_fallback = true }) end, "LSP: format")
-- filipdutescu/renamer.nvim