From 17ec8d65c0e3d698ad6dc55976daca7f98df9bc4 Mon Sep 17 00:00:00 2001 From: ray Date: Sun, 23 Jan 2022 11:24:07 +0000 Subject: [PATCH] update --- lua/init-lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/init-lsp.lua b/lua/init-lsp.lua index 63c250a..ec2ff6f 100644 --- a/lua/init-lsp.lua +++ b/lua/init-lsp.lua @@ -58,8 +58,8 @@ local on_attach = function(client, bufnr) -- Mappings. local opts = { noremap=true, silent=true } -- See `:help vim.lsp.*` for documentation on any of the below functions - buf_set_keymap('n', '[d', 'lua vim.diagnostic.goto_prev({float = false})', opts) - buf_set_keymap('n', ']d', 'lua vim.diagnostic.goto_next({float = false})', opts) + buf_set_keymap('n', '[d', 'lua vim.diagnostic.goto_prev({float = {...}})', opts) + buf_set_keymap('n', ']d', 'lua vim.diagnostic.goto_next({float = {...}})', opts) buf_set_keymap('n', 'gd', 'lua vim.lsp.buf.definition()', opts) buf_set_keymap('n', 'gD', 'lua vim.lsp.buf.declaration()', opts) buf_set_keymap('n', 'gi', 'lua vim.lsp.buf.implementation()', opts)