1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

[nvim 0.7] vim.keymap.set opts update

This commit is contained in:
jdhao 2022-04-16 00:44:37 +08:00
parent 617fb733d7
commit f7bb7caba6

View File

@ -18,7 +18,7 @@ end
local custom_attach = function(client, bufnr)
-- Mappings.
local opts = { noremap = true, silent = true, buffer = bufnr }
local opts = { silent = true, buffer = bufnr }
vim.keymap.set("n", "gd", vim.lsp.buf.definition, opts)
vim.keymap.set("n", "<C-]>", vim.lsp.buf.definition, opts)
vim.keymap.set("n", "K", vim.lsp.buf.hover, opts)