- Clone https://github.com/streetsidesoftware/vscode-spell-checker locally and compile it with
npm i && npm run build-production
- Create file
lua/cspell-lsp/init.lua
. Don't forget to change path atcmd
.
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