added correct borders to NullInfo and LspInfo
This commit is contained in:
parent
c47939eced
commit
e78de6328b
2 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,8 @@ return {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
-- event = "BufReadPre",
|
-- event = "BufReadPre",
|
||||||
config = function()
|
config = function()
|
||||||
|
require('lspconfig.ui.windows').default_options.border = 'rounded'
|
||||||
|
vim.api.nvim_set_hl(0, "LspInfoBorder", {bg = none, fg = "#d4be98"})
|
||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, opts)
|
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, opts)
|
||||||
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts)
|
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts)
|
||||||
|
@ -55,7 +56,7 @@ return {
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
float = { border = border },
|
float = { border = border },
|
||||||
virtual_text = {
|
virtual_text = {
|
||||||
prefix = '▎', -- Could be '●', '■', 'x'
|
prefix = '●', -- Could be '●', '■', 'x', '▎'
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -24,6 +24,7 @@ return {
|
||||||
opts = function()
|
opts = function()
|
||||||
local null_ls = require('null-ls')
|
local null_ls = require('null-ls')
|
||||||
return {
|
return {
|
||||||
|
border = 'rounded',
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
||||||
vim.keymap.set('n', '<space>a', vim.lsp.buf.code_action, bufopts)
|
vim.keymap.set('n', '<space>a', vim.lsp.buf.code_action, bufopts)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue