dotfiles/modules/common/neovim/lua/settings.lua

31 lines
730 B
Lua
Raw Normal View History

-- ===========================================================================
-- Settings
-- ===========================================================================
vim.filetype.add({
pattern = {
[".*%.tfvars"] = "terraform",
[".*%.tf"] = "terraform",
2023-07-09 23:22:41 +00:00
[".*%.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",
2024-06-06 21:08:40 +00:00
command = "TableModeEnable",
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "terraform",
callback = function()
vim.bo.commentstring = "# %s"
end,
})