Updated theme

This commit is contained in:
Christoffer Martinsson 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 = {},
}
-------------------------------------------------------------------

View File

@ -1,51 +1,39 @@
local nightly = {
normal = {
-- a = { bg = "#000000", fg = "#87afd7" },
a = { bg = "#87afd7", fg = "#0c0c0c" },
-- b = { bg = "#000000", fg = "#c6c6c6" },
b = { bg = "#262626", fg = "#87afd7" },
c = { bg = "#0c0c0c", fg = "#c6c6c6" },
b = { bg = "#303030", fg = "#c6c6c6" },
c = { bg = "#303030", fg = "#c6c6c6" },
},
insert = {
-- a = { bg = "#000000", fg = "#afd787" },
a = { bg = "#afd787", fg = "#0c0c0c" },
-- b = { bg = "#000000", fg = "#c6c6c6" },
b = { bg = "#262626", fg = "#afd787" },
b = { bg = "#303030", fg = "#c6c6c6" },
},
command = {
-- a = { bg = "#000000", fg = "#d7af5f" },
a = { bg = "#d7af5f", fg = "#0c0c0c" },
-- b = { bg = "#000000", fg = "#c6c6c6" },
b = { bg = "#262626", fg = "#d7af5f" },
b = { bg = "#303030", fg = "#c6c6c6" },
},
visual = {
-- a = { bg = "#000000", fg = "#87afd7" },
a = { bg = "#87afd7", fg = "#0c0c0c" },
-- b = { bg = "#000000", fg = "#c6c6c6" },
b = { bg = "#262626", fg = "#87afd7" },
b = { bg = "#303030", fg = "#c6c6c6" },
},
replace = {
-- a = { bg = "#000000", fg = "#d75f00" },
a = { bg = "#d75f00", fg = "#0c0c0c" },
-- b = { bg = "#000000", fg = "#c6c6c6" },
b = { bg = "#262626", fg = "#d75f00" },
b = { bg = "#303030", fg = "#c6c6c6" },
},
terminal = {
-- a = { bg = "#000000", fg = "#87afd7" },
a = { bg = "#87afd7", fg = "#0c0c0c" },
-- b = { bg = "#000000", fg = "#c6c6c6" },
b = { bg = "#262626", fg = "#87afd7" },
b = { bg = "#303030", fg = "#c6c6c6" },
},
inactive = {
a = { bg = "#0c0c0c", fg = "#c6c6c6" },
b = { bg = "#0c0c0c", fg = "#c6c6c6" },
c = { bg = "#0c0c0c", fg = "#c6c6c6" },
a = { bg = "#303030", fg = "#c6c6c6" },
b = { bg = "#303030", fg = "#c6c6c6" },
c = { bg = "#303030", fg = "#c6c6c6" },
},
}
return nightly

View File

@ -16,8 +16,8 @@ set-option -sg escape-time 1
set-option -g focus-events on
set -g status-interval 2
set -g status-bg black
set -g status-fg brightblack
set -g status-bg "#0c0c0c"
set -g status-fg "#6c6c6c"
set -g status-left ''
set -g status-right '#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load -g 0 --interval 2) | %H:%M | %d-%b-%Y'
set -g status-right-length 100
@ -25,11 +25,11 @@ set -g status-right-length 100
# Use normal and bright monochrome colors to show a tab line on the left.
set -g status-justify left
set-window-option -g window-status-separator ''
set-window-option -g window-status-format '#[bg=black,fg=#555555] #I #W '
set-window-option -g window-status-current-format '#[bg=black,fg=brightblack] #I #W '
set-window-option -g window-status-format '#[bg=black,fg=#6c6c6c] #I #W '
set-window-option -g window-status-current-format '#[bg=black,fg=#b0b0b0] #I #W '
# Switching panes should change the foreground color but not border colors.
set -g window-style 'bg=default,fg=#ababab'
set -g window-style 'bg=default,fg=#c6c6c6'
set -g window-active-style 'bg=default,fg=white'
set -g pane-border-style 'bg=default,fg=black'
set -g pane-active-border-style 'bg=default,fg=black'