52 lines
1.4 KiB
Lua
52 lines
1.4 KiB
Lua
-- [[
|
|
-- TreeSitter parsers do not match directly with the filename.
|
|
-- See: github/nvim-treesitter:lua/nvim-treesitter/parsers.lua
|
|
-- ]]
|
|
local M = {
|
|
-- <filetype> = { <treesitter>, <lsp>, <linter>, <formatter> }
|
|
-- note: lsp will match the `<path>/lsp/<file>.lua` file. The CMD the proper language-server.
|
|
markdown = { 'markdown', 'lua_ls', 'luacheck', 'stylua' },
|
|
javascript = { 'javascript', ' ts_ls', 'eslint', 'prettierd' },
|
|
typescript = { 'typescript', ' ts_ls', 'eslint', 'prettierd' },
|
|
javascriptreact = { '', ' ts_ls', 'eslint', 'prettierd' },
|
|
typescript = { 'typescript', ' ts_ls', 'eslint', 'prettierd' },
|
|
}
|
|
return {
|
|
opts = {
|
|
view = { signcolumn = 'no' },
|
|
renderer = {
|
|
root_folder_label = false,
|
|
indent_width = 2,
|
|
indent_markers = {
|
|
enable = true,
|
|
icons = { corner = '│', none = '│', bottom = '' },
|
|
},
|
|
icons = {
|
|
show = {
|
|
file = true,
|
|
folder = true,
|
|
folder_arrow = false, -- KEEP FALSE
|
|
git = false,
|
|
modified = false,
|
|
hidden = false,
|
|
diagnostics = false,
|
|
bookmarks = false,
|
|
},
|
|
glyphs = {
|
|
default = ' ',
|
|
folder = {
|
|
default = '○',
|
|
open = '●',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
hijack_cursor = true,
|
|
sync_root_with_cwd = true,
|
|
update_focused_file = {
|
|
enabled = true,
|
|
-- update_root = { enabled = true }
|
|
},
|
|
},
|
|
}
|