Typos integration with coc.nvim

Overview

coc-typos

Typos integration with coc.nvim.

It checks typos with opened buffer automatically.

Typos screen shot

Install

Install typos by:

cargo install typos-cli

Make sure typos in your $PATH.

Install this extension in your (neo)vim by:

:CocInstall coc-typos

Example configuration

Following example replaces default key-mappings of vim's builtin spellcheck.

" Move to next misspelled word after the cursor, 'wrapscan' applies.
nmap ]s <Plug>(coc-typos-next)

" Move to previous misspelled word after the cursor, 'wrapscan' applies.
nmap [s <Plug>(coc-typos-prev)

" Fix typo at cursor position
nmap z= <Plug>(coc-typos-fix)

File(s) specified by 'spellfile' option is loaded for known words when exists, use zg and zug to add and remove global known words. Or use _typos.toml

Commands

  • :CocCommand typos.reloadSpellfile force reload 'spellfile' for known words.
  • :CocList typos show list of typos in current cwd (or workspace folder).

Variable

  • b:coc_typos_count types count of current buffer.

Options

  • typos.command: Command used to invoke typos. default: "typos"
  • typos.disabledFiletypes: Filetypes that should by ignored by typos. default: []
  • typos.highlightGroup: Highlight group used for bad spelled text. default: "SpellBad"
  • typos.listTyposArguments: Additional arguments of typos command used for typos list. default: []

Troubleshooting

Use command :CocCommand workspace.showOutput typos to open output channel.

License

MIT


This extension is built with create-coc-extension

You might also like...

A Next.js 12 integration of GraphQL Server.

This is a Next.js 12 integration of GraphQL Server. It is early work and has not been extensively tested in production. It is based on samples provide

Dec 29, 2022

Example Serverless DynamoDB integration tests using Jest, TypeScript and the AWS CDK

Example Serverless DynamoDB integration tests using Jest, TypeScript and the AWS CDK

serverless dynamodb integration tests 🚀 Example Serverless DynamoDB integration tests using Jest, TypeScript and the AWS CDK Introduction How to inte

Nov 4, 2022

Integration of WebSlides and Markdown.

WebSlides.md 集成 WebSlides 和 Markdown。 这个项目做什么用? 简单来说当然是在线分享PPT(Slides)(手动狗头)。 具体来说就是你可以用任意一个简单的、在线能够运行 Web 代码的 Playground 环境来当做 PPT 制作工具来写你的 PPT,比如 Co

Oct 10, 2022

This plugin allows for basic integration with Raindrop.io, a bookmarking service and Obsidian.

This plugin allows for basic integration with Raindrop.io, a bookmarking service and Obsidian.

Obsidian Raindrop Plugin This plugin allows for basic integration with Raindrop.io, a bookmarking service and Obsidian. Current Features Create a code

Jan 7, 2023

Node.js TypeScript project demonstrating a Prisma integration with PostgreSQL

Prisma with PostgreSQL, TypeScript, Serverless and Parameter Store This project is the outcome of following the Prisma Getting Started guide. In addit

Aug 28, 2022

Hardhat plugin for integration with hethers.js

hardhat-hethers Hardhat plugin for integration with hethers.js. What This plugin brings to Hardhat the Hedera library hethers.js, which allows you to

Sep 21, 2022

Mi Band/Amazfit heart rate monitor with OSC integration for VRChat

Mi Band/Amazfit heart rate monitor with OSC integration for VRChat

Mi Band/Amazfit OSC heart rate monitor for VRChat By Vard Based on Jaapp-'s miband-5-heart-rate-monitor and gzalo's miband-6-heart-rate-monitor Thanks

Jan 1, 2023

A simple gpt-3 integration with Logseq

Readme Using GPT-3 in [[logseq]] is actually remarkably easy. The folks over at OpenAI have built a really powerful model with pretty good documentati

Jul 19, 2022

A clean integration between Cleave.js and Alpine. ✨

✨ Help support the maintenance of this package by sponsoring me. Alpine Mask This packages provide a custom x-mask directive and $mask magic variable,

Dec 26, 2022
Comments
  • How to specify options?

    How to specify options?

    Where does one add

    typos.command: Command used to invoke typos. default: "typos"
    

    ??

    I want to supply my own config for the typos configuration as putting it in ~/typos.toml doesn't seem to work by default.

    opened by mdeguzis 3
  • Feature Request: add support for handling `zg`/`zug`

    Feature Request: add support for handling `zg`/`zug`

    coc-typos does not update anything when using zg to add a good word in 'spellfile'.

    My current workaround is:

    1. manually run :CocCommand typos.reloadSpellfile command
    2. run e command to re-edit and refresh coc-typos in the current file

    Expected Solution: Provide a function or plugin-mapping to incrementally add/del good word in coc-typos and the 'spellfile' , rather than reloading entire 'spellfile'.

    question 
    opened by kevin61416 3
  • [coc.nvim] No typos exists

    [coc.nvim] No typos exists

    I used a line from the readme, and it's saying no typos exist:

    They are povied.
    

    vim:

     NORMAL  /tmp/a[+]                                                                                                                                                                                       utf-8[unix]  100% ㏑:1/1☰℅:16 
    [coc.nvim] No typos exists
    

    Versions:

    $ typos --version
    typos-cli 1.11.1
    
    $ vim --version | head -n 2
    VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jul 12 2022 21:26:30)
    Included patches: 1-5172
    

    vim:

    : CocList typos
    [coc.nvim] Task error: spawn typos ENOENT
    

    Troubleshooting Use command :CocCommand workspace.showOutput typos to open output channel.

      1 [Info - 14:43:37.923] 0 typos found for file:///tmp/a.                                                         |  1 They are povied.
      2 [Info - 14:43:38.723] 0 typos found for file:///tmp/a.                                                         |~                                                                                                                  
      3 [Info - 14:43:38.950] 0 typos found for file:///tmp/a.                                                         |~                                                                                                                  
      4 [Info - 14:43:39.936] 0 typos found for file:///tmp/a.                                                         |~                                                                                                                  
      5 [Info - 14:43:45.193] 0 typos found for file:///tmp/a.                                                         |~                                                                                                                  
      6                                                                                                                |~                                                                                                                  
    ~                                                                        
    
    opened by mdeguzis 1
  • Depfu Error: No dependency files found

    Depfu Error: No dependency files found

    Hello,

    We've tried to activate or update your repository on Depfu and couldn't find any supported dependency files. If we were to guess, we would say that this is not actually a project Depfu supports and has probably been activated by error.

    Monorepos

    Please note that Depfu currently only searches for your dependency files in the root folder. We do support monorepos and non-root files, but don't auto-detect them. If that's the case with this repo, please send us a quick email with the folder you want Depfu to work on and we'll set it up right away!

    How to deactivate the project

    • Go to the Settings page of either your own account or the organization you've used
    • Go to "Installed Integrations"
    • Click the "Configure" button on the Depfu integration
    • Remove this repo (neoclide/coc-typos) from the list of accessible repos.

    Please note that using the "All Repositories" setting doesn't make a lot of sense with Depfu.

    If you think that this is a mistake

    Please let us know by sending an email to [email protected].


    This is an automated issue by Depfu. You're getting it because someone configured Depfu to automatically update dependencies on this project.

    opened by depfu[bot] 0
Owner
Neoclide
IDE based on neovim
Neoclide
Vitest for coc.nvim

coc-vitest Vitest for coc.nvim Install vim-plug: Plug 'yaegassy/coc-vitest', {'do': 'yarn install --frozen-lockfile'} CocInstall: Not supported at thi

yaegassy 8 Sep 4, 2022
Solidity language server for coc.nvim

coc-solidity coc.nvim extension for solidity. Language server provided by solidity-ls. solidity-ls has no tolerance. Means that some features will onl

7c00 40 Dec 5, 2022
Intelligent Tailwind CSS tooling for coc.nvim

coc-tailwindcss3 fork from a vscode-tailwindcss Intelligent Tailwind CSS tooling for coc.nvim. Motivation There are two coc.nvim extensions to "tailwi

yaegassy 110 Jan 1, 2023
Marksman (Markdown LSP server) extension for coc.nvim

coc-marksman fork from a marksman-vscode Integrates Marksman language server into coc.nvim for delightful Markdown note taking experience. coc-marksma

yaegassy 17 Nov 18, 2022
Alpine.js Language Features (Volar) extension for coc.nvim

[Experimental] coc-volar-alpinejs fork from vscode-alpine-language-features Alpine Language Features extension for coc.nvim Note @volar/alpine-languag

yaegassy 6 Oct 12, 2022
Connect Web Integration illustrates the integration of Connect-Web in various JS frameworks and tooling

Connect Web Integration Connect Web Integration is a repository of example projects using Connect-Web with various JS frameworks and tooling. It provi

Buf 43 Dec 29, 2022
Example-browserstack-reporting - This repository contains an example of running Selenium tests and reporting BrowserStack test results, including full CI pipeline integration.

BrowserStack reporting and Selenium test result example This repository contains an example of running Selenium tests and reporting BrowserStack test

Testmo 1 Jan 1, 2022
Runs various integration tests for the composable picasso parachain.

Picasso Integration Tester Picasso Integration Tester is a collection of different implementation tests for the Picasso Polkadot Parachain. Installati

Dominik Roth 0 Jan 11, 2022
Playstation integration for Homebridge / HOOBS.

Homebridge Playstation Playstation integration for Homebridge / HOOBS. Hey Siri, turn on Playstation finally possible! This integration exposes a Swit

Flavio De Stefano 54 Jan 1, 2023
🔐 Lambda Authorizer ready for integration with Serverless Framework and Auth0.

Getting started 1. Clone the repository (or generate a serverless project) sls create --name auth-service --template-url https://github.com/GustavoNor

Gustavo Noronha 2 Feb 10, 2022