neovim: add leadmultispace to listchars

This commit is contained in:
2023-10-22 12:32:00 +03:00
parent 6bae7385cd
commit 49f361a6ae
3 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
local M = {}
function M.adjust_leadmultispace()
local lead = ""
for _ = 1, vim.bo.shiftwidth - 1 do
lead = lead .. " "
end
vim.opt_local.listchars:append({ leadmultispace = lead })
end
return M