fix border, obsidian completion and deprecated plugin leftovers

This commit is contained in:
xesc 2025-07-01 22:05:24 +02:00
parent 091a472949
commit 42d0945517
4 changed files with 159 additions and 165 deletions

View file

@ -76,4 +76,3 @@ vim.opt.shortmess = "aItTF"
-- hide buffers instead of closing
vim.opt.hidden = true
vim.opt.winborder = 'rounded'

View file

@ -49,6 +49,7 @@ return {
enabled = true
},
menu = {
border = 'rounded',
winhighlight = 'Normal:NormalFloat,FloatBorder:FloatBorder,CursorLine:CursorLine,Search:None',
min_width = 40,
max_height = 25,
@ -75,7 +76,7 @@ return {
auto_show = true,
auto_show_delay_ms = 0,
window = {
border = 'rounded',
winhighlight = 'Normal:NormalFloat,FloatBorder:FloatBorder,CursorLine:CursorLine',
}
},
@ -114,6 +115,7 @@ return {
signature = {
enabled = true,
window = {
border = 'rounded',
winhighlight = 'Normal:NormalFloat,FloatBorder:FloatBorder',
}
},

View file

@ -1,161 +1,153 @@
return {
{
"nvim-lualine/lualine.nvim",
config = function()
vim.api.nvim_set_option("showmode", false)
local custom_gruvbox = require 'lualine.themes.gruvbox-material'
custom_gruvbox.normal.a.bg = '#89b482'
custom_gruvbox.normal.c.bg = ''
custom_gruvbox.insert.a.bg = '#d8a657'
custom_gruvbox.visual.a.bg = '#a9b665'
custom_gruvbox.replace.a.bg = '#ea6962'
{
"nvim-lualine/lualine.nvim",
config = function()
vim.api.nvim_set_option("showmode", false)
local custom_gruvbox = require 'lualine.themes.gruvbox-material'
custom_gruvbox.normal.a.bg = '#89b482'
custom_gruvbox.normal.c.bg = ''
custom_gruvbox.insert.a.bg = '#d8a657'
custom_gruvbox.visual.a.bg = '#a9b665'
custom_gruvbox.replace.a.bg = '#ea6962'
local function lspsaga()
return require('lspsaga.symbol.winbar').get_bar()
end
require('lualine').setup {
options = {
theme = custom_gruvbox,
globalstatus = true,
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = { 'netrw', 'Trouble' },
},
sections = {
lualine_a = {
{
'mode',
padding = 1,
}
},
lualine_b = {
{
'branch',
icon = '',
color = { fg = '#d8a657', bg = '#141617', gui = 'bold' },
padding = 1,
},
{
'filename',
color = { gui = 'italic', fg = '#d3869b', bg = '#1d2021' },
padding = 1,
path = 1,
},
},
lualine_c = {
{
lspsaga
}
},
lualine_x = {
{
'filetype',
color = { bg = '#1d2021', fg = '#d4be98', gui = 'italic' },
padding = 1,
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
},
{
'fileformat',
color = { gui = 'italic', bg = '#141617' },
symbols = {
unix = '(unix)',
dos = '(dos)',
mac = '(mac)',
},
}
},
lualine_y = {
{
'diagnostics',
color = { gui = 'bold', bg = '#141617' },
sections = { 'error', 'warn', 'info', 'hint' },
symbols = { error = "", warn = "", info = "", hint = "" },
padding = 1,
update_in_insert = true
},
{
'diff',
icon = { '', color = { bg = '#141617', fg = '#d8a657', gui = 'bold' } },
color = { gui = 'bold', bg = '#141617' },
padding = 1,
}
},
lualine_z = {
{
'location',
padding = 1,
}
}
},
inactive_sections = {
lualine_a = {
{
'mode',
padding = 1,
}
},
lualine_b = {
{
'branch',
icon = '',
padding = 1,
},
{
'filename',
padding = 1,
path = 1,
}
},
lualine_c = {
},
lualine_x = {
{
'filetype',
color = { gui = 'italic' },
padding = 1,
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
},
{
'fileformat',
color = { gui = 'italic' },
symbols = {
unix = 'Unix',
dos = 'Dos',
mac = 'Mac',
},
},
},
lualine_y = {
{
'diagnostics',
color = { gui = 'bold', bg = '#141617' },
sections = { 'error', 'warn', 'info', 'hint' },
symbols = { error = "", warn = "", info = "", hint = "󰌶 " },
padding = 1,
update_in_insert = true
},
{
'diff',
icon = { '', color = { bg = '#141617', gui = 'bold' } },
color = { gui = 'bold', bg = '#141617' },
padding = 1,
}
},
lualine_z = {
{
'location',
padding = 1,
},
}
},
require('lualine').setup {
options = {
theme = custom_gruvbox,
globalstatus = true,
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = { 'netrw', 'Trouble' },
},
sections = {
lualine_a = {
{
'mode',
padding = 1,
}
end,
},
},
lualine_b = {
{
'branch',
icon = '',
color = { fg = '#d8a657', bg = '#141617', gui = 'bold' },
padding = 1,
},
},
lualine_c = {
{
'filename',
color = { gui = 'italic', fg = '#d3869b', bg = '#1d2021' },
padding = 1,
path = 1,
},
},
lualine_x = {
{
'filetype',
color = { bg = '#1d2021', fg = '#d4be98', gui = 'italic' },
padding = 1,
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
},
{
'fileformat',
color = { gui = 'italic', bg = '#141617' },
symbols = {
unix = '(unix)',
dos = '(dos)',
mac = '(mac)',
},
}
},
lualine_y = {
{
'diagnostics',
color = { gui = 'bold', bg = '#141617' },
sections = { 'error', 'warn', 'info', 'hint' },
symbols = { error = "", warn = "", info = "", hint = "" },
padding = 1,
update_in_insert = true
},
{
'diff',
icon = { '', color = { bg = '#141617', fg = '#d8a657', gui = 'bold' } },
color = { gui = 'bold', bg = '#141617' },
padding = 1,
}
},
lualine_z = {
{
'location',
padding = 1,
}
}
},
inactive_sections = {
lualine_a = {
{
'mode',
padding = 1,
}
},
lualine_b = {
{
'branch',
icon = '',
padding = 1,
},
},
lualine_c = {
{
'filename',
padding = 1,
path = 1,
}
},
lualine_x = {
{
'filetype',
color = { gui = 'italic' },
padding = 1,
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
},
{
'fileformat',
color = { gui = 'italic' },
symbols = {
unix = 'Unix',
dos = 'Dos',
mac = 'Mac',
},
},
},
lualine_y = {
{
'diagnostics',
color = { gui = 'bold', bg = '#141617' },
sections = { 'error', 'warn', 'info', 'hint' },
symbols = { error = "", warn = "", info = "", hint = "󰌶 " },
padding = 1,
update_in_insert = true
},
{
'diff',
icon = { '', color = { bg = '#141617', gui = 'bold' } },
color = { gui = 'bold', bg = '#141617' },
padding = 1,
}
},
lualine_z = {
{
'location',
padding = 1,
},
}
},
}
end,
},
}

View file

@ -22,12 +22,13 @@ return {
path = "~/notes",
},
},
-- completion = {
-- -- Set to false to disable completion.
-- nvim_cmp = true,
-- -- Trigger completion at 2 chars.
-- min_chars = 1,
-- },
completion = {
-- Set to false to disable completion.
nvim_cmp = false,
blink = true,
-- Trigger completion at 2 chars.
min_chars = 1,
},
mappings = {
-- Overrides the 'gf' mapping to work on markdown/wiki links within your vault.