mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 05:20:38 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue