2023-08-31 00:37:44 +00:00
|
|
|
vim.filetype.add({
|
|
|
|
filename = {
|
|
|
|
["user-dirs.dirs"] = "conf",
|
|
|
|
|
|
|
|
["gruvbox.conf"] = "kitty",
|
|
|
|
["keys.conf"] = "kitty",
|
|
|
|
["kitty.conf"] = "kitty",
|
2024-04-19 14:17:03 +00:00
|
|
|
["ssh.conf"] = "kitty",
|
2023-08-31 00:37:44 +00:00
|
|
|
|
|
|
|
["dot-zshenv"] = "zsh",
|
|
|
|
["dot-zshrc"] = "zsh"
|
|
|
|
},
|
2024-04-26 22:04:56 +00:00
|
|
|
|
2023-08-31 00:37:44 +00:00
|
|
|
pattern = {
|
2024-04-26 22:04:56 +00:00
|
|
|
[".*/git/config"] = "gitconfig"
|
2023-08-31 00:37:44 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2024-04-26 22:04:56 +00:00
|
|
|
vim.api.nvim_create_autocmd("Filetype", {
|
|
|
|
group = vim.api.nvim_create_augroup("setIndent", {}),
|
|
|
|
pattern = { "lua" },
|
|
|
|
command = "setlocal tabstop=2 softtabstop=2 shiftwidth=2"
|
|
|
|
})
|
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd("Filetype", {
|
|
|
|
group = vim.api.nvim_create_augroup("webDev", {}),
|
2024-05-05 00:57:59 +00:00
|
|
|
pattern = { "html", "css", "javascript", "javascriptreact", "json" },
|
2024-04-26 22:04:56 +00:00
|
|
|
callback = function()
|
|
|
|
vim.cmd [[setlocal tabstop=2 softtabstop=2 shiftwidth=2]]
|
2024-05-05 00:57:59 +00:00
|
|
|
vim.bo.formatprg = "prettier --stdin-filepath " .. vim.fn.expand("%:p")
|
2024-12-07 09:51:15 +00:00
|
|
|
require("minimal-format").enable_autocmd(0)
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd("Filetype", {
|
|
|
|
group = vim.api.nvim_create_augroup("zola", {}),
|
|
|
|
pattern = { "htmldjango" },
|
|
|
|
callback = function()
|
|
|
|
vim.cmd [[setlocal tabstop=2 softtabstop=2 shiftwidth=2]]
|
|
|
|
vim.bo.formatprg = "djhtml -; echo"
|
|
|
|
require("minimal-format").enable_autocmd(0)
|
2024-04-26 22:04:56 +00:00
|
|
|
end
|
2023-08-31 00:37:44 +00:00
|
|
|
})
|