set spaces for YAML files
This commit is contained in:
parent
5ca5f0a0f7
commit
722dbbbf40
1 changed files with 10 additions and 7 deletions
17
init.lua
17
init.lua
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue