feat(filetype): Make tabs two spaces wide for lua files

This commit is contained in:
kalmenn 2024-09-12 22:06:44 +02:00
parent f073cca3b6
commit 0777b097c0
Signed by: kalmenn
GPG key ID: F500055C44BC3834

View file

@ -1,5 +1,9 @@
vim.filetype.add({ vim.filetype.add({
extension = { extension = {
lua = function(_, bufnr)
vim.bo[bufnr].shiftwidth = 2
vim.bo[bufnr].tabstop = 2
end,
typ = function(_, bufnr) typ = function(_, bufnr)
vim.bo[bufnr].shiftwidth = 2 vim.bo[bufnr].shiftwidth = 2
vim.bo[bufnr].tabstop = 2 vim.bo[bufnr].tabstop = 2