Change Lua indentation to 3

This commit is contained in:
Sam A. 2023-05-12 20:06:47 +02:00
parent f5dd78b550
commit 9bb19ce86a
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -43,12 +43,19 @@ vim.cmd.colorscheme('onedark')
-- settings for specific filetypes
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'html', 'css', 'scss', 'lua', 'json', 'yaml', 'yaml.*' },
pattern = { 'html', 'css', 'scss', 'json', 'yaml', 'yaml.*' },
callback = function()
vim.opt_local.tabstop = 2
vim.opt_local.shiftwidth = 2
end
})
vim.api.nvim_create_autocmd('FileType', {
pattern = 'lua',
callback = function()
vim.opt_local.tabstop = 3
vim.opt_local.shiftwidth = 3
end
})
vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, {
pattern = { 'zsh*', '.zsh*', '*.zsh' },
callback = function()