From 58ceb817bb6ba195d1189160878f318f3bcda0ef Mon Sep 17 00:00:00 2001 From: triethyl Date: Sat, 16 Aug 2025 20:20:21 -0400 Subject: neovim: restarted config --- .../config/lua/plugins/dropbar.lua | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/old-custom-neovim/config/lua/plugins/dropbar.lua (limited to 'pkgs/old-custom-neovim/config/lua/plugins/dropbar.lua') diff --git a/pkgs/old-custom-neovim/config/lua/plugins/dropbar.lua b/pkgs/old-custom-neovim/config/lua/plugins/dropbar.lua new file mode 100644 index 0000000..5d4bb43 --- /dev/null +++ b/pkgs/old-custom-neovim/config/lua/plugins/dropbar.lua @@ -0,0 +1,43 @@ +local dropbar = require('dropbar') +local sources = require('dropbar.sources') +local utils = require('dropbar.utils') + +Utils.link_highlight("DropBarFileName", "MiniFilesTitleFocused") + +local custom_path = { + get_symbols = function(buff, win, cursor) + local symbols = sources.path.get_symbols(buff, win, cursor) + symbols[#symbols].name_hl = 'DropBarFileName' + if vim.bo[buff].modified then + symbols[#symbols].name = symbols[#symbols].name .. ' [+]' + symbols[#symbols].name_hl = 'DropBarFileName' + symbols[#symbols].truncate = false + end + return symbols + end, +} + +dropbar.setup({ + bar = { + sources = function(buf, _) + if vim.bo[buf].ft == 'markdown' then + return { + custom_path, + sources.markdown, + } + end + -- if vim.bo[buf].buftype == 'terminal' then + -- return { + -- sources.terminal, + -- } + -- end + return { + custom_path, + utils.source.fallback { + sources.lsp, + sources.treesitter, + }, + } + end, + }, +}) -- cgit v1.2.3