mirror of
https://github.com/pnx/dotfiles
synced 2026-06-17 19:40:02 +02:00
new nvim config
This commit is contained in:
parent
4b730d3924
commit
7388c9bfd3
78 changed files with 1291 additions and 43 deletions
|
|
@ -1,93 +0,0 @@
|
|||
local icons = require('config.icons')
|
||||
local separator = { "'" .. icons.separator .. "'", color = 'StatusLineSeparator' }
|
||||
|
||||
return {
|
||||
options = {
|
||||
globalstatus = true,
|
||||
component_separators = '',
|
||||
section_separators = '',
|
||||
disabled_filetypes = {
|
||||
statusline = {
|
||||
'dashboard',
|
||||
}
|
||||
},
|
||||
theme = {
|
||||
normal = {
|
||||
a = "StatusLineNormal",
|
||||
b = "StatusLine",
|
||||
c = "StatusLine",
|
||||
x = "StatusLine",
|
||||
y = "StatusLine",
|
||||
z = "StatusLine",
|
||||
},
|
||||
command = {
|
||||
a = "StatusLineCommand",
|
||||
z = "StatusLine",
|
||||
},
|
||||
insert = {
|
||||
a = "StatusLineInsert",
|
||||
z = "StatusLine",
|
||||
},
|
||||
visual = {
|
||||
a = "StatusLineVisual",
|
||||
z = "StatusLine",
|
||||
},
|
||||
replace = {
|
||||
a = "StatusLineReplace",
|
||||
z = "StatusLine",
|
||||
}
|
||||
}
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {
|
||||
"mode",
|
||||
},
|
||||
lualine_b = {
|
||||
separator,
|
||||
"branch",
|
||||
separator,
|
||||
'" " .. tostring(#vim.tbl_keys(vim.lsp.buf_get_clients()))',
|
||||
{
|
||||
require("lazy.status").updates,
|
||||
cond = require("lazy.status").has_updates,
|
||||
color = { fg = "#ff9e64" },
|
||||
},
|
||||
{
|
||||
"diagnostics",
|
||||
symbols = {
|
||||
error = icons.diagnostics.error .. ' ',
|
||||
warn = icons.diagnostics.warn .. ' ',
|
||||
info = icons.diagnostics.info .. ' ',
|
||||
hint = icons.diagnostics.hint .. ' ',
|
||||
},
|
||||
},
|
||||
{
|
||||
"diff",
|
||||
symbols = {
|
||||
added = icons.diff.added .. ' ',
|
||||
modified = icons.diff.modified .. ' ',
|
||||
removed = icons.diff.removed .. ' '
|
||||
}
|
||||
},
|
||||
separator,
|
||||
},
|
||||
lualine_c = {
|
||||
'filename'
|
||||
},
|
||||
lualine_x = {
|
||||
'filetype',
|
||||
'fileformat',
|
||||
'(vim.bo.expandtab and "SPC" or "TAB") .. " " .. vim.bo.shiftwidth',
|
||||
},
|
||||
lualine_y = {
|
||||
separator,
|
||||
'location',
|
||||
'progress'
|
||||
},
|
||||
lualine_z = {}
|
||||
},
|
||||
extensions = {
|
||||
'lazy',
|
||||
'neo-tree'
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue