refactor(nvim): better support 0.10.0 release
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled

This commit is contained in:
Price Hiller 2024-05-18 02:18:32 -05:00
parent b67d4c0c20
commit c30e8b1164
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
3 changed files with 8 additions and 4 deletions

View File

@ -122,9 +122,6 @@ M.setup = function()
opt.modeline = true
opt.modelines = 5
-- Set command bar height
opt.cmdheight = 1
-- Set splitkeep
vim.opt.splitkeep = "cursor"

View File

@ -557,7 +557,11 @@ return {
},
{
provider = function(self)
return " " .. (vim.diagnostic.is_disabled(self.bufnr) and "󱃓 " or "󰪥 ")
return " "
.. (
(not vim.diagnostic.is_enabled({ bufnr = self.bufnr })) and "󱃓 "
or "󰪥 "
)
end,
hl = {
bg = colors.oniViolet,

View File

@ -2,6 +2,9 @@ return {
{
"folke/noice.nvim",
lazy = false,
init = function()
vim.opt.cmdheight = 0
end,
opts = {
lsp = {
override = {