aboutsummaryrefslogtreecommitdiff
path: root/lua/config/indent-blankline.lua
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-09-10 23:56:04 +0800
committerGitHub <noreply@github.com>2022-09-10 23:56:04 +0800
commit89effe8b172ef871ca38a90ff77003f5a796e521 (patch)
tree6a1dc5a4f79f08678bdb8903a7920e8545718fa7 /lua/config/indent-blankline.lua
parent9ba728e201657892681cafc2c6fe8ad997873b49 (diff)
parentaaeb6a813a9044892e5bb76ba4a3a61db08eae4d (diff)
Merge pull request #103 from jdhao/format
format with stylua
Diffstat (limited to 'lua/config/indent-blankline.lua')
-rw-r--r--lua/config/indent-blankline.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/config/indent-blankline.lua b/lua/config/indent-blankline.lua
index 597b508..3c4a33d 100644
--- a/lua/config/indent-blankline.lua
+++ b/lua/config/indent-blankline.lua
@@ -1,7 +1,7 @@
local api = vim.api
local exclude_ft = { "help", "git", "markdown", "snippets", "text", "gitconfig", "alpha" }
-require("indent_blankline").setup({
+require("indent_blankline").setup {
-- U+2502 may also be a good choice, it will be on the middle of cursor.
-- U+250A is also a good choice
char = "▏",
@@ -9,13 +9,13 @@ require("indent_blankline").setup({
disable_with_nolist = true,
buftype_exclude = { "terminal" },
filetype_exclude = exclude_ft,
-})
+}
local gid = api.nvim_create_augroup("indent_blankline", { clear = true })
api.nvim_create_autocmd("InsertEnter", {
pattern = "*",
group = gid,
- command = "IndentBlanklineDisable"
+ command = "IndentBlanklineDisable",
})
api.nvim_create_autocmd("InsertLeave", {
@@ -23,7 +23,7 @@ api.nvim_create_autocmd("InsertLeave", {
group = gid,
callback = function()
if not vim.tbl_contains(exclude_ft, vim.bo.filetype) then
- vim.cmd [[IndentBlanklineEnable]]
+ vim.cmd([[IndentBlanklineEnable]])
end
- end
+ end,
})