From 0777b097c086aa41b21e80a004c2d1b650cd259b Mon Sep 17 00:00:00 2001 From: kalmenn Date: Thu, 12 Sep 2024 22:06:44 +0200 Subject: [PATCH] feat(filetype): Make tabs two spaces wide for lua files --- lua/filetypes.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/filetypes.lua b/lua/filetypes.lua index 88c5172..d86482e 100644 --- a/lua/filetypes.lua +++ b/lua/filetypes.lua @@ -1,5 +1,9 @@ vim.filetype.add({ extension = { + lua = function(_, bufnr) + vim.bo[bufnr].shiftwidth = 2 + vim.bo[bufnr].tabstop = 2 + end, typ = function(_, bufnr) vim.bo[bufnr].shiftwidth = 2 vim.bo[bufnr].tabstop = 2