Updated theme

This commit is contained in:
2023-06-12 23:04:25 +02:00
parent e23c98ae69
commit 67807e8e96
3 changed files with 30 additions and 43 deletions

View File

@@ -53,7 +53,7 @@ vim.o.showtabline = 0
vim.o.wrap = false
vim.o.cmdheight = 0
-- vim.o.cmdheight = 0
-------------------------------------------------------------------
-- Plugin management
@@ -188,40 +188,36 @@ require('lazy').setup({
options = {
icons_enabled = true,
theme = 'nightly_cm',
component_separators = '|',
component_separators = '',
section_separators = '',
globalstatus = true,
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'branch' },
lualine_c = { 'diff', 'diagnostics', 'filename' },
lualine_b = { 'branch', 'diff' },
lualine_c = { 'filename' },
lualine_x = {
{
-- Lsp server name .
function()
local msg = ''
-- local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
local clients = vim.lsp.get_active_clients({ bufnr = 0 })
if next(clients) == nil then
return 'No Active Lsp'
return msg
end
for _, client in ipairs(clients) do
-- local filetypes = client.config.filetypes
-- if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
msg = msg .. client.name .. " - "
-- end
msg = msg .. client.name .. ", "
end
if msg == '' then
return 'No Active Lsp'
return msg
end
return msg:sub(1, -4)
return msg:sub(1, -3)
end,
color = { fg = '#afd787' },
}, 'filetype',
color = { fg = '#c6c6c6' },
},
},
lualine_y = { 'progress' },
lualine_z = { 'location' }
lualine_y = { 'filetype' },
lualine_z = { 'progress' }
},
},
},
@@ -376,6 +372,9 @@ local servers = {
filetypes = { 'c', 'cpp', 'objc', 'objcpp' },
},
rust_analyzer = {},
bashls = {},
pyright = {},
marksman = {},
}
-------------------------------------------------------------------