mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-04-02 21:19:49 +00:00
Replace neo-tree.nvim with snacks.nvim for file explorer functionality and remove several other plugins including: - mini-animate - mini-starter - indent-blankline The snacks.nvim plugin provides better file explorer, dashboard, indentation guides, and other UI improvements in a more cohesive package. Also removed the large file autocommand as snacks.nvim handles this with its bigfile module.
40 lines
818 B
Lua
40 lines
818 B
Lua
local bufferline = require("bufferline")
|
|
|
|
local function is_buffer_loaded(name)
|
|
local bufs = vim.api.nvim_list_bufs()
|
|
|
|
for _, buffer in pairs(bufs) do
|
|
if vim.fn.getbufvar(buffer, "&filetype") == name then
|
|
return true
|
|
end
|
|
end
|
|
|
|
return false
|
|
end
|
|
|
|
bufferline.setup({
|
|
options = {
|
|
close_command = "Bdelete! %d",
|
|
right_mouse_command = "Bdelete! %d",
|
|
offsets = {
|
|
{ filetype = "snacks_picker_list", text = "", padding = 1 },
|
|
{ filetype = "dapui_scopes", text = "", padding = 1 },
|
|
},
|
|
indicator = {
|
|
style = "underline",
|
|
},
|
|
hover = {
|
|
enabled = false,
|
|
},
|
|
separator_style = "slant",
|
|
|
|
custom_areas = {
|
|
left = function()
|
|
local text = " " .. string.gsub(vim.loop.cwd(), "^" .. os.getenv("HOME"), "~") .. " "
|
|
|
|
return { { text = text, fg = "#adbac7" } }
|
|
end,
|
|
},
|
|
},
|
|
})
|