2023-04-10 19:25:46 +00:00
|
|
|
-- ===========================================================================
|
|
|
|
-- Settings
|
|
|
|
-- ===========================================================================
|
|
|
|
|
|
|
|
vim.filetype.add({
|
|
|
|
pattern = {
|
2023-07-06 18:07:29 +00:00
|
|
|
[".*%.tfvars"] = "terraform",
|
|
|
|
[".*%.tf"] = "terraform",
|
2023-07-09 23:22:41 +00:00
|
|
|
[".*%.rasi"] = "rasi",
|
2023-04-10 19:25:46 +00:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
2024-05-28 15:08:22 +00:00
|
|
|
pattern = "mail",
|
2023-04-10 19:25:46 +00:00
|
|
|
callback = function()
|
|
|
|
vim.o.wrapmargin = 79 -- Wrap text automatically
|
|
|
|
end,
|
|
|
|
})
|
2024-05-28 15:08:22 +00:00
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
|
|
pattern = "markdown",
|
2024-06-06 21:08:40 +00:00
|
|
|
command = "TableModeEnable",
|
2024-05-28 15:08:22 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
|
|
pattern = "terraform",
|
|
|
|
callback = function()
|
|
|
|
vim.bo.commentstring = "# %s"
|
|
|
|
end,
|
|
|
|
})
|