diff options
| author | jdhao <jdhao@hotmail.com> | 2022-09-10 23:55:22 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-09-10 23:55:22 +0800 |
| commit | aaeb6a813a9044892e5bb76ba4a3a61db08eae4d (patch) | |
| tree | 6a1dc5a4f79f08678bdb8903a7920e8545718fa7 /lua/config/indent-blankline.lua | |
| parent | 9ba728e201657892681cafc2c6fe8ad997873b49 (diff) | |
format with stylua
Diffstat (limited to 'lua/config/indent-blankline.lua')
| -rw-r--r-- | lua/config/indent-blankline.lua | 10 |
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, }) |
