Skip to content

Commit

Permalink
feat: add support for Helix using svelte LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
phildenhoff committed Feb 9, 2024
1 parent 0a3957a commit 4bef13c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ To run the backend in server mode for production, run
/Applications/Citadel.app/Contents/MacOS/Citadel --server --calibre-library=/path/to/calibre/library
```

### Setting up Svelte Intellisense

If you want to use an LSP with your editor that is _not_ VS Code (e.g. Helix),
you'll need to globally install
[svelte-language-server](https://github.com/sveltejs/language-tools/tree/master/packages/language-server).

Using Bun, that looks like `bun add -g svelte-language-server`. With that, the
project should be ready to go.

## Building

To create a production version of Citadel, you'll need the development prereqs. Then:
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
"postcss-load-config": "^5.0.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"svelte-language-server": "^0.16.3",
"tailwindcss": "^3.3.6",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"typescript-svelte-plugin": "^0.3.37",
"unplugin-icons": "^0.18.2",
"vite": "^5.0.3",
"vitest": "^1.0.0"
Expand Down
9 changes: 7 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"moduleResolution": "bundler"
"moduleResolution": "bundler",
"plugins": [
{
"name": "typescript-svelte-plugin"
}
]
}
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
// from the referenced tsconfig.json - TypeScript does not merge them in
}
}

0 comments on commit 4bef13c

Please sign in to comment.