1
Fork 0
dots/nvim/lua/filetypes.lua
2023-08-31 05:37:44 +05:00

22 lines
542 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" },
command = 'setlocal tabstop=2 softtabstop=2 shiftwidth=2'
})