feat(nvim): make jsx and tsx respect js indentation

This commit is contained in:
matt1432 2024-09-26 11:11:31 -04:00
parent ff174f96c7
commit f1ed9770ed
4 changed files with 95 additions and 1 deletions
common/home/neovim/langs

View file

@ -34,7 +34,7 @@ in
# lua
''
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'javascript', 'typescript', 'css', 'scss' },
pattern = { 'javascript', 'javascriptreact', 'javascript.jsx', 'typescript', 'typescriptreact', 'typescript.tsx', 'css', 'scss' },
command = 'setlocal ts=4 sw=4 sts=0 expandtab',
});