- Clone https://github.com/streetsidesoftware/vscode-spell-checker locally and compile it with
npm i && npm run build-production. You can put js build to nvim config dir, so if you are store config in git .js will be always available on all machines. - Create file
lua/cspell-lsp/init.lua. Putmain.cjstolua/cspell-lsp.
local util = require 'lspconfig.util'
-- Function to decode a URI to a file path
local function decode_uri(uri)
return string.gsub(uri, 'file://', '')
end