Files
lua-nvim/lua/cargdev/plugins/colorful-winsep.lua
Carlos Gutierrez dc86d0eafc Move NvimTree file explorer to left side
- Change side from 'right' to 'left' in nvim-tree.lua
  - Update edgy.nvim config to place NvimTree in left panel
2026-02-01 15:47:39 -05:00

44 lines
1.2 KiB
Lua

return {
"nvim-zh/colorful-winsep.nvim",
event = { "WinLeave" },
config = function()
require("colorful-winsep").setup({
hi = {
bg = "",
fg = "#806d9c",
},
no_exec_files = {
"NvimTree",
"neo-tree",
"packer",
"TelescopePrompt",
"mason",
"lazy",
"CompetiTest",
"fugitive",
},
smooth = true,
exponential_smoothing = true,
anchor = {
left = { height = 1, x = -1, y = -1 },
right = { height = 1, x = -1, y = 0 },
up = { width = 0, x = -1, y = 0 },
bottom = { width = 0, x = 1, y = 0 },
},
symbols = { "", "", "", "", "", "" },
only_line_seq = true,
create_event = function()
local win_n = require("colorful-winsep.utils").calculate_number_windows()
if win_n == 2 then
local win_id = vim.fn.win_getid(vim.fn.winnr("h"))
local filetype = vim.api.nvim_buf_get_option(vim.api.nvim_win_get_buf(win_id), "filetype")
if filetype == "NvimTree" or filetype == "neo-tree" then
require("colorful-winsep").NvsepRealClose()
end
end
end,
close_event = function() end,
})
end,
}