Skip to content

Instantly share code, notes, and snippets.

@HoneyBearCodes
Created May 31, 2022 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HoneyBearCodes/c934c9e0ac4b8167ca0c0ce2cc4500ab to your computer and use it in GitHub Desktop.
Save HoneyBearCodes/c934c9e0ac4b8167ca0c0ce2cc4500ab to your computer and use it in GitHub Desktop.
Sample Temp Gist to share LVim Config
-- Additional Plugins
lvim.plugins = {
{ "lukas-reineke/indent-blankline.nvim" },
}
-- plugins conf
local status_ok, indent_blankline = pcall(require, "indent_blankline")
if not status_ok then
return
end
vim.g.indent_blankline_buftype_exclude = { "terminal", "nofile" }
vim.g.indent_blankline_filetype_exclude = {
"help",
"startify",
"dashboard",
"packer",
"neogitstatus",
"NvimTree",
"Trouble",
}
vim.g.indentLine_enabled = 1
vim.g.indent_blankline_char = "▏"
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_show_current_context = true
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",
}
-- HACK: work-around for https://github.com/lukas-reineke/indent-blankline.nvim/issues/59
vim.wo.colorcolumn = "99999"
vim.cmd([[highlight IndentBlanklineIndent1 guifg=#bd93f9 gui=nocombine]])
vim.cmd([[highlight IndentBlanklineIndent2 guifg=#ffb86c gui=nocombine]])
vim.cmd([[highlight IndentBlanklineIndent3 guifg=#50fa7b gui=nocombine]])
vim.cmd([[highlight IndentBlanklineIndent4 guifg=#f1fa8c gui=nocombine]])
vim.cmd([[highlight IndentBlanklineIndent5 guifg=#8be9fd gui=nocombine]])
vim.cmd([[highlight IndentBlanklineIndent6 guifg=#f8f8f2 gui=nocombine]])
vim.cmd([[highlight IndentBlanklineContextChar guifg=#ff79c6 gui=nocombine]])
vim.cmd([[highlight NvimTreeIndentMarker guifg=#ff79c6 gui=nocombine]])
vim.opt.list = true
indent_blankline.setup({
show_current_context = true,
char_highlight_list = {
"IndentBlanklineIndent1",
"IndentBlanklineIndent2",
"IndentBlanklineIndent3",
"IndentBlanklineIndent4",
"IndentBlanklineIndent5",
"IndentBlanklineIndent6",
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment