changed toml indent to 2

This commit is contained in:
foxora 2026-05-05 19:47:49 +01:00
parent 88581414e3
commit 7fa1839df6

View file

@ -6,6 +6,7 @@ vim.api.nvim_create_autocmd("FileType", {
"css",
"json",
"haskell",
"toml",
},
callback = function()
vim.opt_local.shiftwidth = 2
@ -29,14 +30,17 @@ vim.api.nvim_create_autocmd("User", {
pattern = "TelescopePreviewerLoaded",
callback = function(args)
local ft = args.data.filetype
if vim.tbl_contains({
"lua",
"nix",
"gleam",
"css",
"json",
"haskell",
}, ft) then
if
vim.tbl_contains({
"lua",
"nix",
"gleam",
"css",
"json",
"haskell",
"toml",
}, ft)
then
vim.bo.shiftwidth = 2
vim.bo.tabstop = 2
vim.bo.expandtab = true