Move ui.lua to plugin directory

This commit is contained in:
2024-05-14 22:50:55 +01:00
parent 75f9b205bd
commit 5da8a3c2f6
2 changed files with 0 additions and 1 deletions

22
plugin/ui.lua Normal file
View File

@@ -0,0 +1,22 @@
-- Customise LSP UI
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(
vim.lsp.handlers.hover, {
border = 'rounded',
title = 'Hover',
}
)
vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(
vim.lsp.handlers.signature_help, {
border = 'rounded',
title = 'Signature Help',
}
)
-- Customise diagnostic UI
vim.diagnostic.config({
float = {
border = 'rounded',
title = 'Diagnostics',
},
virtual_text = false,
})