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",
|
"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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue