remove the stat usline and error highlighting stuff i removed

This commit is contained in:
Ivar Fatland
2026-04-14 15:49:16 +02:00
parent 98a85e967e
commit 1c4b7b270d
-18
View File
@@ -211,7 +211,6 @@ do
end
return nil
end
local original_statusline = vim.opt_global.statusline
local padding_buffer = _G[ID]
if padding_buffer == nil then
@@ -258,11 +257,6 @@ do
local padding = calculate_padding()
if padding == nil then
vim.api.nvim_win_close(padding_window, true)
vim.opt_global.statusline = original_statusline
vim.diagnostic.config{
signs=true,
underline=true,
}
else
vim.api.nvim_win_set_width(padding_window, padding)
end
@@ -293,20 +287,8 @@ do
vim.api.nvim_set_option_value('winfixwidth', true, {win = win})
vim.api.nvim_set_option_value("fillchars", "eob: ", { win = win })
vim.cmd"wincmd ="
vim.cmd[[
set statusline=%<%f\ %h%w%m%r\ %=%{%\ &showcmdloc\ ==\ 'statusline'\ ?\ '%-10.S\ '\ :\ ''\ %}%{%\ exists('b:keymap_name')\ ?\ '<'..b:keymap_name..'>\ '\ :\ ''\ %}%{%\ &ruler\ ?\ (\ &rulerformat\ ==\ ''\ ?\ '%-14.(%l,%c%V%)\ %P'\ :\ &rulerformat\ )\ :\ ''\ %}
]]
vim.diagnostic.config{
signs=false,
underline=false,
}
else
vim.api.nvim_win_close(padding_window, true)
vim.opt_global.statusline = original_statusline
vim.diagnostic.config{
signs=true,
underline=true,
}
end
end