show git files, better indent-blankline

This commit is contained in:
Michael Peters 2022-09-26 17:47:23 -07:00
parent 0c2c81dcea
commit becfa7961f
3 changed files with 10 additions and 47 deletions

View File

@ -6,52 +6,15 @@ function M.config()
return
end
vim.g.indentLine_enabled = 1
vim.g.indent_blankline_show_trailing_blankline_indent = false
vim.g.indent_blankline_show_first_indent_level = true
vim.g.indent_blankline_use_treesitter = true
vim.g.indent_blankline_char = ""
vim.g.indent_blankline_buftype_exclude = {
"nofile",
"terminal",
"lsp-installer",
"lspinfo",
}
vim.g.indent_blankline_filetype_exclude = {
"help",
"startify",
"dashboard",
"packer",
"neogitstatus",
"NvimTree",
"Trouble",
}
vim.g.indent_blankline_context_patterns = {
"class",
"return",
"function",
"method",
"^if",
"^while",
"jsx_element",
"^for",
"^object",
"^table",
"block",
"arguments",
"if_statement",
"else_clause",
"jsx_element",
"jsx_self_closing_element",
"try_statement",
"catch_clause",
"import_statement",
"operation_type",
}
-- vim.opt.list = true
-- vim.opt.listchars:append "space:⋅"
-- vim.opt.listchars:append "eol:↴"
indent_blankline.setup {
show_current_context = false,
show_current_context_start = false,
-- show_end_of_line = true,
-- space_char_blankline = " ",
}
end

View File

@ -18,11 +18,11 @@ function M.config()
debug = false,
sources = {
-- Set a formatter
formatting.prettierd,
--formatting.prettierd,
--TODO: formatting.black,
-- Set a linter
diagnostics.eslint_d,
--diagnostics.eslint_d,
--TODO: pylint
},
-- Format before save

View File

@ -10,9 +10,9 @@ function M.config()
filters = {
dotfiles = false,
custom = {
".git",
"node_modules",
".cache",
".git/",
"node_modules/",
".cache/",
},
},
view = {