Minimal setup for testing astro lsp.
Currently when using [anything].astro routes I am having formatting issues.
git clone https://github.com/aaronjconway/astro_config
Later we will run astro files using the test config
NVIM_APPNAME=ASTRO_CONFIG NEOVIM
npm create astro@latest
Empty: yes
Typescript: yes - strict
npm i -D prettier prettier-plugin-astro
https://github.com/withastro/prettier-plugin-astro
// .prettierrc.mjs
/** @type {import("prettier").Config} */
export default {
plugins: ['prettier-plugin-astro'],
overrides: [
{
files: '*.astro',
options: {
parser: 'astro',
},
},
],
}
test lsp in new astro file and no lsp