Ensure vim.lsp.hover has a rounded border

This commit is contained in:
Kenneth Benzie 2025-08-19 16:58:21 +01:00
parent 595c45724d
commit 13de31e044

View File

@ -232,7 +232,9 @@ return {
-- TODO: v0.10.0 |vim.lsp.start()| now maps |K| to use
-- |vim.lsp.buf.hover()| if the server supports it, unless
-- |'keywordprg'| was customized before calling |vim.lsp.start()|.
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
vim.keymap.set('n', 'K', function()
vim.lsp.buf.hover({ border = 'rounded' })
end, opts)
-- Format whole buffer mapping
vim.keymap.set('n', '<leader>gq', vim.lsp.buf.format, opts)