Nvim: updated indent-blankline and changed tabs to spaces
This commit is contained in:
parent
5a050da61d
commit
4656e8e3dc
2 changed files with 19 additions and 11 deletions
|
@ -16,10 +16,10 @@ vim.opt.completeopt = 'menu,menuone,noselect'
|
||||||
vim.opt.list = true
|
vim.opt.list = true
|
||||||
|
|
||||||
-- correct tabbing
|
-- correct tabbing
|
||||||
vim.opt.tabstop = 2
|
vim.opt.tabstop = 4
|
||||||
vim.opt.softtabstop = 2
|
vim.opt.softtabstop = 4
|
||||||
vim.opt.shiftwidth = 2
|
vim.opt.shiftwidth = 4
|
||||||
vim.opt.expandtab = false
|
vim.opt.expandtab = true
|
||||||
|
|
||||||
-- enable foldcolumn
|
-- enable foldcolumn
|
||||||
vim.wo.foldcolumn = "2"
|
vim.wo.foldcolumn = "2"
|
||||||
|
|
|
@ -3,12 +3,20 @@ return {
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
-- event = "BufReadPre",
|
-- event = "BufReadPre",
|
||||||
main = 'ibl',
|
main = 'ibl',
|
||||||
opts = {
|
config = function()
|
||||||
-- char = "│",
|
require("ibl").setup({
|
||||||
filetype_exclude = { "help", "lazy" },
|
enabled = true,
|
||||||
show_trailing_blankline_indent = true,
|
indent = {
|
||||||
show_current_context = true,
|
char = "│",
|
||||||
show_current_context_start = true,
|
smart_indent_cap = true
|
||||||
},
|
},
|
||||||
|
scope = {
|
||||||
|
exclude = {
|
||||||
|
language = { "help", "lazy" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
opts = {},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue