Update misc-utils.lua
Not DRY or elegant, but allows for file specific tabbing. Python uses 4 by std while the JS/TS ecosystem uses 2.
This commit is contained in:
parent
a54352ec1a
commit
1508fd8fb3
@ -40,5 +40,7 @@ function M.has_width_gt(cols)
|
||||
-- Check if the windows width is greater than a given number of columns
|
||||
return vim.fn.winwidth(0) / 2 > cols
|
||||
end
|
||||
|
||||
-- file extension specific tabbing
|
||||
vim.cmd([[autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]])
|
||||
vim.cmd([[autocmd Filetype bash setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]])
|
||||
return M
|
||||
|
Loading…
Reference in New Issue
Block a user