Set window border style
This commit is contained in:
parent
1640e1c3b6
commit
48894989e8
|
@ -58,6 +58,7 @@ end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
local symbols = require('constant.symbols');
|
local symbols = require('constant.symbols');
|
||||||
|
local border = 'rounded';
|
||||||
|
|
||||||
-- NOTE: Here is where you install your plugins.
|
-- NOTE: Here is where you install your plugins.
|
||||||
-- You can configure plugins using the `config` key.
|
-- You can configure plugins using the `config` key.
|
||||||
|
@ -106,13 +107,11 @@ require('lazy').setup({
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
bind = true, -- This is mandatory, otherwise border config won't get registered.
|
|
||||||
hint_enable = false,
|
hint_enable = false,
|
||||||
handler_opts = {
|
handler_opts = {
|
||||||
-- TODO: Setup borders for other lsp stuff (Maybe using noice?)
|
border = border
|
||||||
border = "single"
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -360,6 +359,23 @@ require('nvim-treesitter.configs').setup {
|
||||||
}
|
}
|
||||||
|
|
||||||
-- LSP settings.
|
-- LSP settings.
|
||||||
|
|
||||||
|
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(
|
||||||
|
vim.lsp.handlers.hover,
|
||||||
|
{border = border}
|
||||||
|
)
|
||||||
|
|
||||||
|
vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(
|
||||||
|
vim.lsp.handlers.hover,
|
||||||
|
{border = border}
|
||||||
|
)
|
||||||
|
|
||||||
|
vim.diagnostic.config {
|
||||||
|
float = {
|
||||||
|
border = border
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
-- Set the diagnostic symbols (Also used by Neo-tree)
|
-- Set the diagnostic symbols (Also used by Neo-tree)
|
||||||
local signs = { Error = symbols.diagnostic.error, Warn = symbols.diagnostic.warning, Hint = symbols.diagnostic.hint,
|
local signs = { Error = symbols.diagnostic.error, Warn = symbols.diagnostic.warning, Hint = symbols.diagnostic.hint,
|
||||||
Info = symbols.diagnostic.info }
|
Info = symbols.diagnostic.info }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user