Removed Lualine

This commit is contained in:
Ben Puryear 2024-05-22 23:19:15 -07:00
parent 8b2c8070c2
commit 4b68c4d164

View file

@ -66,47 +66,6 @@ return {
end,
lazy = false,
},
{
"nvim-lualine/lualine.nvim",
config = function()
local rstt = {
{ "-", "#aaaaaa" }, -- 1: ftplugin/* sourced, but nclientserver not started yet.
{ "S", "#757755" }, -- 2: nclientserver started, but not ready yet.
{ "S", "#117711" }, -- 3: nclientserver is ready.
{ "S", "#ff8833" }, -- 4: nclientserver started the TCP server
{ "S", "#3388ff" }, -- 5: TCP server is ready
{ "R", "#ff8833" }, -- 6: R started, but nvimcom was not loaded yet.
{ "R", "#3388ff" }, -- 7: nvimcom is loaded.
}
local rstatus = function()
if not vim.g.R_Nvim_status or vim.g.R_Nvim_status == 0 then
-- No R file type (R, Quarto, Rmd, Rhelp) opened yet
return ""
end
return rstt[vim.g.R_Nvim_status][1]
end
local rsttcolor = function()
if not vim.g.R_Nvim_status or vim.g.R_Nvim_status == 0 then
-- No R file type (R, Quarto, Rmd, Rhelp) opened yet
return { fg = "#000000" }
end
return { fg = rstt[vim.g.R_Nvim_status][2] }
end
require("lualine").setup({
sections = {
lualine_a = { "mode" },
lualine_b = { "branch", "diagnostics" },
lualine_c = { "filename" },
lualine_x = { "encoding", "fileformat", "filetype" },
lualine_y = { { rstatus, color = rsttcolor } },
lualine_z = { "progress", "location" },
},
})
end,
},
{
"hrsh7th/nvim-cmp",
dependencies = { "R-nvim/cmp-r" },