feat: Add custom opts to neo-tree.nvim
This commit is contained in:
parent
c574208de4
commit
90706b4932
1 changed files with 7 additions and 7 deletions
|
@ -61,13 +61,10 @@ return {
|
||||||
local events = require('neo-tree.events')
|
local events = require('neo-tree.events')
|
||||||
|
|
||||||
for _, type in ipairs({ 'Error', 'Warn', 'Info', 'Hint' }) do
|
for _, type in ipairs({ 'Error', 'Warn', 'Info', 'Hint' }) do
|
||||||
vim.fn.sign_define(
|
vim.fn.sign_define('DiagnosticSign' .. type, {
|
||||||
'DiagnosticSign' .. type,
|
|
||||||
{
|
|
||||||
text = icons.diagnostics[type] .. ' ',
|
text = icons.diagnostics[type] .. ' ',
|
||||||
texthl = 'DiagnosticSign' .. type,
|
texthl = 'DiagnosticSign' .. type,
|
||||||
}
|
})
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function on_move(data)
|
local function on_move(data)
|
||||||
|
@ -92,10 +89,13 @@ return {
|
||||||
filtered_items = {
|
filtered_items = {
|
||||||
visible = true,
|
visible = true,
|
||||||
hide_dotfiles = false,
|
hide_dotfiles = false,
|
||||||
|
hide_gitignored = false,
|
||||||
|
hide_hidden = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
window = {
|
window = {
|
||||||
|
width = 30,
|
||||||
mappings = {
|
mappings = {
|
||||||
['l'] = 'open',
|
['l'] = 'open',
|
||||||
['h'] = 'close_node',
|
['h'] = 'close_node',
|
||||||
|
|
Loading…
Reference in a new issue