feat: Add custom opts to neo-tree.nvim

This commit is contained in:
punkfairie 2025-01-04 21:55:20 -08:00
parent c574208de4
commit 90706b4932
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -61,13 +61,10 @@ return {
local events = require('neo-tree.events')
for _, type in ipairs({ 'Error', 'Warn', 'Info', 'Hint' }) do
vim.fn.sign_define(
'DiagnosticSign' .. type,
{
text = icons.diagnostics[type] .. ' ',
texthl = 'DiagnosticSign' .. type,
}
)
vim.fn.sign_define('DiagnosticSign' .. type, {
text = icons.diagnostics[type] .. ' ',
texthl = 'DiagnosticSign' .. type,
})
end
local function on_move(data)
@ -92,10 +89,13 @@ return {
filtered_items = {
visible = true,
hide_dotfiles = false,
hide_gitignored = false,
hide_hidden = false,
},
},
window = {
width = 30,
mappings = {
['l'] = 'open',
['h'] = 'close_node',