add toml to expandtab

This commit is contained in:
Michael Peters 2024-10-10 15:25:59 -07:00
parent dccfb055e1
commit 79a2d63604

View File

@ -35,11 +35,11 @@ set.expandtab = false
set.shiftwidth = 4
set.tabstop = 4
-- enable expandtab for python and sent files
-- enable expandtab for certain file types files
vim.api.nvim_create_augroup('setExpandTabPython', { clear = true })
vim.api.nvim_create_autocmd('Filetype', {
group = 'setExpandTabPython',
pattern = { 'python', 'sent' },
pattern = { 'python', 'sent', 'toml' },
command = 'setlocal expandtab tabstop=4 shiftwidth=4',
})