Skip to content
Snippets Groups Projects
Unverified Commit feb832a2 authored by amtoine's avatar amtoine
Browse files

set list and listchars using Lua

parent 2089e1c5
Branches
No related tags found
No related merge requests found
......@@ -16,15 +16,6 @@ vim.api.nvim_create_autocmd("TermOpen", {
vim.cmd.colorscheme("nightshade")
vim.cmd([[
" Tell Vim which characters to show for expanded TABs,
" trailing whitespace, and end-of-lines. VERY useful!
set listchars=tab:>\·,trail:\ ,extends:>,precedes:<,nbsp:+
" Show problematic characters.
set list
]])
vim.api.nvim_create_autocmd({ "BufEnter", "WinEnter" }, {
pattern = "*",
callback = function ()
......
......@@ -35,3 +35,8 @@ vim.opt.shell = "/bin/bash"
vim.opt.foldenable = false
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.list = true
vim.opt.listchars = {
tab = '» ', trail = '·', extends = '>', precedes = '<', nbsp = '␣'
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment