From 89ed1b189ec5d1a05615564c5f1941a726c861a3 Mon Sep 17 00:00:00 2001 From: Daniel Heras Quesada Date: Sat, 25 Jul 2026 10:34:02 +0200 Subject: [PATCH] feat: some qol changes --- lua/plugins/context.lua | 4 +++- lua/plugins/opts/aerialview.lua | 11 +---------- lua/plugins/opts/bufferline.lua | 2 +- lua/plugins/opts/lualine.lua | 4 ++-- lua/plugins/opts/treesitterContext.lua | 8 ++++---- 5 files changed, 11 insertions(+), 18 deletions(-) diff --git a/lua/plugins/context.lua b/lua/plugins/context.lua index 3fb1260..debbaca 100644 --- a/lua/plugins/context.lua +++ b/lua/plugins/context.lua @@ -53,7 +53,9 @@ return { { "stevearc/aerial.nvim", - opts = {}, + opts = function() + return require("plugins.opts.aerialview") + end, dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons", diff --git a/lua/plugins/opts/aerialview.lua b/lua/plugins/opts/aerialview.lua index d0fff89..b036b30 100644 --- a/lua/plugins/opts/aerialview.lua +++ b/lua/plugins/opts/aerialview.lua @@ -95,16 +95,7 @@ local config = { -- A list of all symbols to display. Set to false to display all symbols. -- This can be a filetype map (see :help aerial-filetype-map) -- To see all available values, see :help SymbolKind - filter_kind = { - "Class", - "Constructor", - "Enum", - "Function", - "Interface", - "Module", - "Method", - "Struct", - }, + filter_kind = false, -- Determines line highlighting mode when multiple splits are visible. -- split_width Each open window will have its cursor location marked in the diff --git a/lua/plugins/opts/bufferline.lua b/lua/plugins/opts/bufferline.lua index 54f1af4..6143856 100644 --- a/lua/plugins/opts/bufferline.lua +++ b/lua/plugins/opts/bufferline.lua @@ -12,7 +12,7 @@ local config = { options = { themeable = true, numbers = "none", - diagnostics = "nvim_lsp", -- or "coc" + diagnostics = false, -- or "nvim_lsp", "coc" max_prefix_length = 8, close_command = "b# | bd#", right_mouse_command = "b# | bd#", diff --git a/lua/plugins/opts/lualine.lua b/lua/plugins/opts/lualine.lua index bbec906..14213e1 100644 --- a/lua/plugins/opts/lualine.lua +++ b/lua/plugins/opts/lualine.lua @@ -34,8 +34,8 @@ local options = { sections = { lualine_a = { "mode" }, lualine_b = { "branch", "diff" }, - lualine_c = { "filename" }, - lualine_x = { "diagnostics", "filetype", "encoding", "fileformat" }, + lualine_c = { "filename", "diagnostics" }, + lualine_x = { "searchcount", "filetype", "encoding", "fileformat" }, lualine_y = { "progress" }, lualine_z = { "location" }, }, diff --git a/lua/plugins/opts/treesitterContext.lua b/lua/plugins/opts/treesitterContext.lua index 8e4b873..8f4130c 100644 --- a/lua/plugins/opts/treesitterContext.lua +++ b/lua/plugins/opts/treesitterContext.lua @@ -1,14 +1,14 @@ local options = { - enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) - max_lines = 1, -- How many lines the window should span. Values <= 0 mean no limit. + enable = false, -- Enable this plugin (Can be enabled/disabled later via commands) + max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit. line_numbers = true, multiline_threshold = 20, -- Maximum number of lines to show for a single context trim_scope = "outer", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' - mode = "cursor", -- Line used to calculate context. Choices: 'cursor', 'topline' + mode = "topline", -- Line used to calculate context. Choices: 'cursor', 'topline' -- Separator between context and content. Should be a single character string, like '-'. -- When separator is set, the context will only show up when there are at least 2 lines above cursorline. - separator = nil, + separator = "─", zindex = 20, -- The Z-index of the context window on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching }