Change Lua indentation to 3
This commit is contained in:
parent
f5dd78b550
commit
9bb19ce86a
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue