mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 21:35:37 +00:00
33 lines
787 B
Lua
33 lines
787 B
Lua
-- ===========================================================================
|
|
-- Settings
|
|
-- ===========================================================================
|
|
|
|
vim.filetype.add({
|
|
pattern = {
|
|
[".*%.tfvars"] = "terraform",
|
|
[".*%.tf"] = "terraform",
|
|
[".*%.rasi"] = "rasi",
|
|
},
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = "mail",
|
|
callback = function()
|
|
vim.o.wrapmargin = 79 -- Wrap text automatically
|
|
end,
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = "markdown",
|
|
callback = function()
|
|
vim.o.formatoptions = vim.o.formatopions + "a"
|
|
end,
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = "terraform",
|
|
callback = function()
|
|
vim.bo.commentstring = "# %s"
|
|
end,
|
|
})
|