Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
docs(sublime-text): added sublime text integration (#1346)
ssahayam-zd5c1436361301
diff --git a/packages/web/src/routes/docs/contributors/architecture/+page.md b/packages/web/src/routes/docs/contributors/architecture/+page.mdindex edd7e0156..b477d7882 100644--- a/packages/web/src/routes/docs/contributors/architecture/+page.md+++ b/packages/web/src/routes/docs/contributors/architecture/+page.md@@ -39,7 +39,7 @@ In essence, it enables text editors and IDEs to access the capabilities of HarpeIf you aren't familiar with what a language server does, I would suggest reading [this](https://tamerlan.dev/an-introduction-to-the-language-server-protocol/) or the [official language server protocol documentation](https://microsoft.github.io/language-server-protocol/).-When Harper is used through Neovim, Visual Studio Code, Helix or Emacs, `harper-ls` is the interface.+When Harper is used through Neovim, Visual Studio Code, Helix, Emacs or Sublime Text, `harper-ls` is the interface.You can read more about it [here](../integrations/language-server).diff --git a/packages/web/src/routes/docs/faq/+page.md b/packages/web/src/routes/docs/faq/+page.mdindex 1926c19c3..ee1238549 100644--- a/packages/web/src/routes/docs/faq/+page.md+++ b/packages/web/src/routes/docs/faq/+page.md@@ -12,7 +12,7 @@ Do you want to use it within WordPress? We have a [WordPress plugin](/docs/integDo you want to use it within your Browser? We have a [Chrome extension](/docs/integrations/chrome-extension). (Firefox add-on coming soon.)-Do you want to use it within your code editor? We have documentation on how you can integrate with [Visual Studio Code and its forks](/docs/integrations/visual-studio-code), [Neovim](/docs/integrations/neovim), [Helix](/docs/integrations/helix), [Emacs](/docs/integrations/emacs), and [Zed](/docs/integrations/zed). If you're using a different code editor, then you can integrate directly with our language server, [`harper-ls`](/docs/integrations/language-server).+Do you want to use it within your code editor? We have documentation on how you can integrate with [Visual Studio Code and its forks](/docs/integrations/visual-studio-code), [Neovim](/docs/integrations/neovim), [Helix](/docs/integrations/helix), [Emacs](/docs/integrations/emacs), [Zed](/docs/integrations/zed) and [Sublime Text](/docs/integrations/sublime-text). If you're using a different code editor, then you can integrate directly with our language server, [`harper-ls`](/docs/integrations/language-server).Do you want to integrate it in your web app or your JavaScript/TypeScript codebase? You can use [`harper.js`](./harperjs/introduction).diff --git a/packages/web/src/routes/docs/integrations/sublime-text/+page.md b/packages/web/src/routes/docs/integrations/sublime-text/+page.mdnew file mode 100644index 000000000..27e377109--- /dev/null+++ b/packages/web/src/routes/docs/integrations/sublime-text/+page.md@@ -0,0 +1,60 @@+---+title: Sublime Text+---++Our [Sublime Text](https://www.sublimetext.com/) integration is powered by [`harper-ls`](./language-server).++## Required Setup++Make sure you have `harper-ls` installed and available on your global or Sublime Text's `PATH`. You can do this using the [supported installation methods](./language-server#Installation).++Ensure you have [LSP for Sublime Text](https://lsp.sublimetext.io/) installed.++## Optional Configuration++Open `Preferences > Package Settings > LSP > Settings` and add the `harper-ls` client configuration to the "clients" section:++```json title=LSP.sublime-settings+{+ "clients": {+ "harper-ls": {+ "enabled": true,+ "command": [+ "harper-ls",+ "--stdio"+ ],+ "selector": "source.markdown | text.html.markdown | text.plain",+ "settings": {+ "harper-ls": {+ "userDictPath": "",+ "fileDictPath": "",+ "linters": {+ "SpellCheck": true,+ "SpelledNumbers": false,+ "AnA": true,+ "SentenceCapitalization": true,+ "UnclosedQuotes": true,+ "WrongQuotes": false,+ "LongSentences": true,+ "RepeatedWords": true,+ "Spaces": true,+ "Matcher": true,+ "CorrectNumberSuffix": true+ },+ "codeActions": {+ "ForceStable": false+ },+ "markdown": {+ "IgnoreLinkTitle": false+ },+ "diagnosticSeverity": "hint",+ "isolateEnglish": false,+ "dialect": "American"+ }+ }+ }+ }+}+```++For more information on what each of these configs do, you can head over to the [configuration section](./language-server#Configuration) of our `harper-ls` documentation.diff --git a/packages/web/vite.config.ts b/packages/web/vite.config.tsindex 2e3da388b..403659d73 100644--- a/packages/web/vite.config.ts+++ b/packages/web/vite.config.ts@@ -95,6 +95,10 @@ export default defineConfig({title: 'Zed',to: '/docs/integrations/zed',},+ {+ title: 'Sublime Text',+ to: '/docs/integrations/sublime-text',+ },],},{