1
Fork 0
dots/nvim/lua/filetypes.lua
2024-04-19 19:17:03 +05:00

22 lines
617 B
Lua

vim.filetype.add({
filename = {
["user-dirs.dirs"] = "conf",
["gruvbox.conf"] = "kitty",
["keys.conf"] = "kitty",
["kitty.conf"] = "kitty",
["ssh.conf"] = "kitty",
["dot-zshenv"] = "zsh",
["dot-zshrc"] = "zsh"
},
pattern = {
[".*/git/config"] = "gitconfig"
}
})
vim.api.nvim_create_autocmd('Filetype', {
group = vim.api.nvim_create_augroup('setIndent', { clear = true }),
pattern = { "lua", "html", "css", "javascript", "javascriptreact", "typescript", "typescriptreact" },
command = 'setlocal tabstop=2 softtabstop=2 shiftwidth=2'
})