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