changed toml indent to 2
This commit is contained in:
parent
88581414e3
commit
7fa1839df6
1 changed files with 12 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue