Giter Site home page Giter Site logo

lsp-grammarly-un's Introduction

License: GPL v3 JCS-ELPA

lsp-grammarly-un

CI Activate

lsp-mode client leveraging unofficial-grammarly-language-server.

Table of Contents

💾 Quickstart

(use-package lsp-grammarly-un
  :ensure t
  :hook (text-mode . (lambda ()
                       (require 'lsp-grammarly-un)
                       (lsp))))  ; or lsp-deferred

📇 Commands

List of commands interact with language server and Grammarly.com.

Commands Description
lsp-grammarly-un-login Login to Grammarly.com
lsp-grammarly-un-logout Logout from Grammarly.com
lsp-grammarly-un-check-grammar Start grammarly check for currnet document (buffer)
lsp-grammarly-un-stop Stop grammarly checker from current document (buffer)
lsp-grammarly-un-stats Log out current document status, score, readability, words count, etc.

🔧 Configuration

lsp-grammarly-un supports following configuration. Each configuration is described in detail in Grammarly Settings.

  • grammarly.autoActivate via lsp-grammarly-un-auto-activate
  • grammarly.audience via lsp-grammarly-un-audience
  • grammarly.dialect via lsp-grammarly-un-dialect
  • grammarly.domain via lsp-grammarly-un-domain
  • grammarly.emotions via lsp-grammarly-un-emotions
  • grammarly.goals via lsp-grammarly-un-goals
  • grammarly.userWords via lsp-grammarly-un-user-words
  • grammarly.overrides via lsp-grammarly-un-override

📝 Roadmap

List of todos, but I have not got time to implement these features.

  • Create another package that displays information from Grammarly.com (To display useful information, score, readability, word counts, etc).
  • Implement command Ignore Grammarly Issue.
  • Implement diagnostics and severity for configuration.

💸 Using a Paid Grammarly Account

NOTE: To login, make sure you have package keytar set up properly. See keytar#installation for setup instruction.

You can either login with vscode-grammarly using VSCode or hit M-x lsp-grammarly-un-login. They both share the same credentials so you can login with either side.

🔍 Method 1: Login with VSCode (easier)

Install VSCode and install extension vscode-grammarly from the extension panel.

Then call command palette (default to Ctrl+Shift+p) and type to search grammarly login command.

You should see Grammarly Website and login with your Grammarly account.

🎉 Make sure you click on the button Open Visual Studio Code. Done! You can now close VSCode and go back to Emacs!

🔍 Method 2: Login with Emacs (a bit complicated)

Hit M-x lsp-grammarly-un-login and you should see the Grammarly's website pop out from your favorite browser. See below screenshot,

After login, click the button Open URL:vscode, If you have VSCode installed, then this button would be Open Visual Studio Code instead yet it doesn't matter.

Then click F12 to open the DevTool window. You should able to see an URI like the following

Copy and paste the URI back to Emacs and hit return.

🎉 Done! Now you should be loggin!

Authentication from Grammarly website

Login with your Grammarly account (This step does not require VSCode to be installed)!

🛠️ Contribute

PRs Welcome Elisp styleguide

If you would like to contribute to this project, you may either clone and make pull requests to this repository. Or you can clone the project and establish your own branch of this tool. Any methods are welcome!

🔬 Development

To run the test locally, you will need the following tools:

Install all dependencies and development dependencies:

$ eask install-deps --dev

To test the package's installation:

$ eask package
$ eask install

To test compilation:

$ eask compile

🪧 The following steps are optional, but we recommend you follow these lint results!

The built-in checkdoc linter:

$ eask lint checkdoc

The standard package linter:

$ eask lint package

📝 P.S. For more information, find the Eask manual at https://emacs-eask.github.io/.

⚜️ License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

See LICENSE for details.

lsp-grammarly-un's People

Contributors

jcs090218 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jcs-pr jxl-info

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.