setup dap for lldb/zig, change lualine theme, edit ts config

This commit is contained in:
2024-12-12 14:32:13 +01:00
parent 5ec6ca4070
commit 4217f3f6bc
6 changed files with 61 additions and 104 deletions
@@ -1,7 +1,7 @@
require('lualine').setup {
options = {
icons_enabled = true,
theme = 'rose-pine',
theme = 'auto',
component_separators = { left = '|', right = '|'},
section_separators = { left = '', right = ''},
disabled_filetypes = {
@@ -12,13 +12,13 @@ require('lualine').setup {
always_divide_middle = true,
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
statusline = 75,
tabline = 10000,
winbar = 10000,
}
},
sections = {
lualine_a = {'mode'},
lualine_a = { 'mode' },
lualine_b = {
'branch',
'diff',
@@ -42,29 +42,6 @@ require('lualine').setup {
always_visible = false, -- Show diagnostics even if there are none.
},
},
lualine_c = {
'filename',
{
-- Lsp server name .
function()
local msg = 'No Active Lsp'
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
local clients = vim.lsp.get_active_clients()
if next(clients) == nil then
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
return client.name
end
end
return msg
end,
icon = ' LSP:',
color = { fg = '#ffffff', gui = 'bold' },
}
},
lualine_x = {'encoding', 'filetype'},
lualine_y = {'progress'},
lualine_z = {'location'}