refactor(nvim): better support 0.10.0
release
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
This commit is contained in:
parent
b67d4c0c20
commit
c30e8b1164
@ -122,9 +122,6 @@ M.setup = function()
|
|||||||
opt.modeline = true
|
opt.modeline = true
|
||||||
opt.modelines = 5
|
opt.modelines = 5
|
||||||
|
|
||||||
-- Set command bar height
|
|
||||||
opt.cmdheight = 1
|
|
||||||
|
|
||||||
-- Set splitkeep
|
-- Set splitkeep
|
||||||
vim.opt.splitkeep = "cursor"
|
vim.opt.splitkeep = "cursor"
|
||||||
|
|
||||||
|
@ -557,7 +557,11 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
provider = function(self)
|
provider = function(self)
|
||||||
return " " .. (vim.diagnostic.is_disabled(self.bufnr) and " " or " ")
|
return " "
|
||||||
|
.. (
|
||||||
|
(not vim.diagnostic.is_enabled({ bufnr = self.bufnr })) and " "
|
||||||
|
or " "
|
||||||
|
)
|
||||||
end,
|
end,
|
||||||
hl = {
|
hl = {
|
||||||
bg = colors.oniViolet,
|
bg = colors.oniViolet,
|
||||||
|
@ -2,6 +2,9 @@ return {
|
|||||||
{
|
{
|
||||||
"folke/noice.nvim",
|
"folke/noice.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
init = function()
|
||||||
|
vim.opt.cmdheight = 0
|
||||||
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
lsp = {
|
lsp = {
|
||||||
override = {
|
override = {
|
||||||
|
Loading…
Reference in New Issue
Block a user