This commit is contained in:
MysterieDev 2024-04-19 10:16:45 +02:00
parent 5ca867e7e5
commit b2223d2aa4
4 changed files with 83 additions and 18 deletions

View file

@ -0,0 +1,20 @@
return {
'dense-analysis/ale',
config = function()
-- Configuration goes here.
local g = vim.g
g.ale_fixers = {
typescript = { 'prettier_d' },
html = { 'prettier_d' },
javascript = { 'prettier_d' },
typescriptreact = { 'prettier_d' },
}
g.ale_linters = {
lua = { 'lua_language_server' },
javascript = { 'eslint' },
typescript = { 'eslint' },
typescriptreact = { 'eslint' },
html = {},
}
end,
}

View file

@ -13,7 +13,37 @@ return {
end,
config = function()
require('neo-tree').setup {
default_component_configs = {
indent = {
indent_size = 1,
padding = 1, -- extra padding on left hand side
-- indent guides
with_markers = true,
indent_marker = '',
last_indent_marker = '',
highlight = 'NeoTreeIndentMarker',
-- expander config, needed for nesting files
with_expanders = nil, -- if nil and file nesting is enabled, will enable expanders
expander_collapsed = '',
expander_expanded = '',
expander_highlight = 'NeoTreeExpander',
},
icon = {
folder_closed = '',
folder_open = '',
folder_empty = '󰜌',
-- The next two settings are only a fallback, if you use nvim-web-devicons and configure default icons there
-- then these will never be used.
default = '*',
highlight = 'NeoTreeFileIcon',
},
},
window = {
position = 'left',
width = 30,
},
filesystem = {
hide_dotfiles = false,
follow_current_file = {
enabled = true, -- This will find and focus the file in the active buffer every time
-- -- the current file is changed while the tree is open.