Open JonoLF opened 2 months ago
Confirming here that I am experiencing this problem with several other file types. Seems like every file I have tested since updating yesterday. Lua, JavaScript and TypeScript is what I primarily use and indentations are all broke.
Here is a short repro video just to confirm / show with Lua files (since title of the issue is specific to JS).
https://github.com/user-attachments/assets/70b6649b-85f9-4675-a8ed-509e2a585859
Describe the bug
While using the indentation module, to fix the comment indentation problem mentioned in #3830, other indentation then breaks. I've seen a few other similar issue, but haven't found any that match my problem exactly. Disabling the indentation module makes it work as expected. I have tested this with other file types and it seems to only be a JS problem (not sure if effects JSX, TS, or TSX, I don't have files to test with)
To Reproduce
o
in normal mode orenter
in insert mode places the cursor as so:=
also applies no changefor
,while
,if
, etc)Expected behavior
Normal indentation is expected:
with whatever tabstop is defined
Output of
:checkhealth nvim-treesitter
Output of
nvim --version
Additional context
I have tested the behaviour with both
smartindent
andautoindent
off and on, no change.nvim-treesitter
has been updated to the latest version. List of additional plugins in case of a clash between them:plenary.nvim
nvim-web-devicons
telescope-nvim
telescope-file-browser.nvim
catpuccin/nvim
trouble.nvim
harpoon
refactoring.nvim
undotree
nvim-treesitter-context
nvim-lspconfig
mason.nvim
mason-lspconfig.nvim
nvim-cmp
cmp-nvim-lsp
LuaSnip
cmp-buffer
cmp-path
cmp-nvim-lua
lsp-zero.nvim
zen-mode.nvim
vim-repeat
nvim-surround
telescope-fzf-native.nvim
diffview.nvim
nvim-autopairs
which-key.nvim
git-blame.nvim
Let me know if any other context is needed, or even if it would just make life easier but isn't strictly needed