Skip to content

Commit

Permalink
fix: Rework indent-blankline config for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Oct 2, 2023
1 parent ea33de2 commit 237b289
Showing 1 changed file with 31 additions and 43 deletions.
74 changes: 31 additions & 43 deletions lua/core/plugins/indent-blankline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,38 @@ local M = {
scope = {
enabled = vim.g.config.plugins.indent_blankline.enable_scope,
},
indentLine_enabled = 1,
char = "",
filetype_exclude = {
"startify",
"dashboard",
"dotooagenda",
"log",
"fugitive",
"gitcommit",
"packer",
"vimwiki",
"markdown",
"json",
"txt",
"vista",
"help",
"todoist",
"NvimTree",
"neo-tree",
"peekaboo",
"git",
"TelescopePrompt",
"undotree",
"flutterToolsOutline",
"", -- for all buffers without a file type
indent = {
char = { "|", "¦", "", "" },
},
buftype_exclude = { "terminal", "nofile" },
show_trailing_blankline_indent = false,
show_first_indent_level = true,
show_current_context = true,
char_list = { "|", "¦", "", "" },
space_char = " ",
context_patterns = {
"class",
"function",
"method",
"block",
"list_literal",
"selector",
"^if",
"^table",
"if_statement",
"while",
"for",
exclude = {
filetypes = {
"startify",
"dashboard",
"dotooagenda",
"log",
"fugitive",
"gitcommit",
"packer",
"vimwiki",
"markdown",
"json",
"txt",
"vista",
"help",
"todoist",
"NvimTree",
"neo-tree",
"peekaboo",
"git",
"TelescopePrompt",
"undotree",
"flutterToolsOutline",
"", -- for all buffers without a file type
},
buftypes = {
"terminal",
"nofile",
},
},
},
config = function(_, opts)
Expand Down

0 comments on commit 237b289

Please sign in to comment.