Aoi
Aoi
KPCKevin Powell - Community
Created by Aoi on 4/14/2024 in #os-and-tools
Indenting not working properly for jsx in NeoVim
My NeoVim config can be found on Github. Issue: When creating new line from the end of a JSX element (eg: <div>), there is no auto indentation in the new line. Current
return (
<div>
|
)
return (
<div>
|
)
Expected
return (
<div>
|
)
return (
<div>
|
)
where | is the location is cursor right after creating new line. This only happens for JSX components and it feels like it doesn't understand JSX, hence it returns the cursor to the last JS bracket.
5 replies