Move ui.lua to plugin directory
This commit is contained in:
22
plugin/ui.lua
Normal file
22
plugin/ui.lua
Normal 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,
|
||||
})
|
||||
Reference in New Issue
Block a user