Closed ZacharyRizer closed 1 year ago
The indentation is mostly created by your &indentexpr, not the language server
It could work with format on type feature, but only works when type trigger character, and you have to bind <cr>
to notify coc.nvim
When inside a .js, .ts, or jsx file indentation is as expected. When I type a set of brackets and press enter it will automatically indent the next line to be be placed in the block. Similaraly if I add a new line (
o
), it will place the cursor at the correct indentation for that block. For some reason with .tsx files the indentation is always the same as the line it is coming from (meaning it isn't indenting). I have checked what the filetype is (echo &filetype) and it istypescriptreact
(which is what the readme states it should be). All other language server aspects work perfectly.Here are my coc-settings.json