1
0
Fork 0

set spaces for YAML files

This commit is contained in:
Felipe 2023-06-25 21:54:28 -04:00
parent 5ca5f0a0f7
commit 722dbbbf40
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -33,13 +33,6 @@ vim.api.nvim_create_autocmd({ "TermOpen" }, {
end
end,
})
---- Folding ----
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = "yaml",
callback = function()
vim.opt_local.foldmethod = "indent"
end,
})
---- Theming ----
opt.termguicolors = true
@ -112,7 +105,17 @@ ts.setup({
})
---- Filetypes ---
-- KDL --
vim.filetype.add({ extension = { kdl = "kdl" } })
-- YAML --
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = "yaml",
callback = function()
vim.opt_local.expandtab = true
vim.opt_local.foldmethod = "indent"
end,
})
---- formatter.nvim ----
local formatter = require("formatter")
formatter.setup({