1.0.8 • Published 5 months ago

cspell-lsp-wrapper v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

cspell LSP wrapper

To use with neovim

  1. Install using
npm i -g cspell-lsp-wrapper
  1. Add this to setup the client for neovim
vim.api.nvim_create_autocmd('FileType', {
    pattern = {
        "markdown", "text", "plaintext", "md", "html", "xml", "json", "yaml", "toml", "javascript", "typescript",
        "javascriptreact", "typescriptreact", "css", "scss", "less", "vue", "svelte", "go", "python", "lua",
        "c", "cpp", "java", "php", "ruby", "rust", "bash", "sh", "dockerfile", "sql"
    },
    callback = function()
        vim.lsp.start({
            name = "cspell",
            cmd = { "cspell-lsp-wrapper", "--stdio" },
            root_dir = vim.fn.getcwd(),
            init_options = {
                home = vim.fn.stdpath('config')
            },
        })
    end,
})

Build from source

git clone https://github.com/salihdhaifullah/cspell-lsp.git
cd ./cspell-lsp
pnpm i
pnpm run build
sudo npm link 
1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago