nvim changes

* refractor(nvim-lualine): lualine in powerline style
* feat(nvim, emacs): Org Mode Integrations Setup
* feat(nvim): C-w keymaps
* feat(wezterm): Change tab bar to top
* feat(nvim): catppuccin integrations
* feat(nvim-cmp): Icon supports
This commit is contained in:
js0ny 2025-02-09 18:27:53 +00:00
parent 1a1c8707ce
commit 2248d3a237
14 changed files with 244 additions and 127 deletions

View file

@ -5,6 +5,11 @@ local lualine = require("lualine")
local colors = require("config.colors")
local components = require("plugins.mod.lualine.components")
--[[
VSCode Style:
Remote | Git Branch | Diagnostics | Command | | MID | | Line:Column | Indent | Encoding | EOL | File Type LSP | Notifications
--]]
-- Config
local config = {
options = {
@ -12,25 +17,65 @@ local config = {
statusline = { "NvimTree", "alpha" },
},
-- Disable sections and component separators
component_separators = "",
section_separators = "",
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
theme = {
-- We are going to use lualine_c an lualine_x as left and
-- right section. Both are highlighted by c theme . So we
-- are just setting default looks o statusline
normal = { c = { fg = colors.fg, bg = colors.bg } },
inactive = { c = { fg = colors.fg, bg = colors.bg } },
-- normal = { c = { fg = colors.mantle, bg = colors.mantle } },
-- visual = { c = { fg = colors.mantle, bg = colors.mauve } },
-- normal = { c = { fg = colors.mantle, bg = colors.sapphire } },
inactive = { c = { fg = colors.mantle, bg = colors.mantle } },
normal = {
a = {
fg = colors.scheme.mantle,
bg = colors.mode.n,
},
b = {
bg = colors.scheme.surface2,
},
c = {
bg = colors.scheme.crust,
},
},
visual = {
a = {
fg = colors.scheme.mantle,
bg = colors.mode.v,
},
},
insert = {
a = {
fg = colors.scheme.mantle,
bg = colors.mode.i,
},
},
},
},
sections = {
-- these are to remove the defaults
lualine_a = {},
lualine_b = {},
lualine_y = {},
lualine_z = {},
-- These will be filled later
lualine_c = {},
lualine_x = {},
lualine_a = {
components.mode,
},
lualine_b = {
components.diff,
},
lualine_c = {
components.diagnostics,
},
lualine_x = {
components.indent,
components.encoding,
components.eol,
},
lualine_y = {
components.filetype,
components.lsp,
},
lualine_z = {
components.progress,
},
},
inactive_sections = {
-- these are to remove the defaults
@ -43,31 +88,4 @@ local config = {
},
}
-- Inserts a component in lualine_c at left section
local function ins_left(component)
table.insert(config.sections.lualine_c, component)
end
-- Inserts a component in lualine_x at right section
local function ins_right(component)
table.insert(config.sections.lualine_x, component)
end
--[[
VSCode Style:
Remote | Git Branch | Diagnostics | Command | | MID | | Line:Column | Indent | Encoding | EOL | File Type LSP | Notifications
--]]
ins_left(components.mode)
ins_left(components.diff)
ins_left(components.git)
ins_left(components.diagnostics)
ins_left(components.command)
ins_right(components.indent)
ins_right(components.encoding)
ins_right(components.eol)
ins_right(components.filetype)
ins_right(components.lsp)
ins_right(components.progress)
lualine.setup(config)