You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
I have checked the FAQ and it didn't resolve my problem.
Issues
I have checked existing issues and there are no issues with the same problem.
Neovim Version
0.9.1
Dev Version?
I am using a stable Neovim release version, or if I am using a dev version of Neovim I have confirmed that my issue is reproducible on a stable version.
Operating System
macOS
Minimal Config
-- this template is borrowed from nvim-lspconfiglocalon_windows=vim.loop.os_uname().version:match("Windows")
localfunctionjoin_paths(...)
localpath_sep=on_windowsand"\\" or"/"localresult=table.concat({ ... }, path_sep)
returnresultendvim.g.loaded_remote_plugins=""vim.cmd([[set runtimepath=$VIMRUNTIME]])
localtemp_dir=vim.loop.os_getenv("TEMP") or"/tmp"vim.cmd("set packpath=" ..join_paths(temp_dir, "nvim", "site"))
localpackage_root=join_paths(temp_dir, "nvim", "site", "pack")
localinstall_path=join_paths(package_root, "packer", "start", "packer.nvim")
localcompile_path=join_paths(install_path, "plugin", "packer_compiled.lua")
localnull_ls_config=function()
localnull_ls=require("null-ls")
-- add only what you need to reproduce your issuenull_ls.setup({
sources= {
null_ls.builtins.diagnostics.ltrs,
},
debug=true,
})
endlocalfunctionload_plugins()
-- only add other plugins if they are necessary to reproduce the issuerequire("packer").startup({
{
"wbthomason/packer.nvim",
{
"jose-elias-alvarez/null-ls.nvim",
requires= { "nvim-lua/plenary.nvim" },
config=null_ls_config,
},
},
config= {
package_root=package_root,
compile_path=compile_path,
},
})
endifvim.fn.isdirectory(install_path) ==0thenvim.fn.system({ "git", "clone", "https://github.com/wbthomason/packer.nvim", install_path })
load_plugins()
require("packer").sync()
elseload_plugins()
require("packer").sync()
end
Steps to Reproduce
Create a txt file with the following content:
UTF-8 characters (e.g. "§¢€£") cause problems: asdf
ltrs is configured and will report an error for the unknown word "asdf". The output of the ltrs command also contains the correct information about the position of the spelling error ("asdf" starts at offset 47). Unfortunately, some internals of null-ls or neovim do not seem to handle UTF-8 content correctly, because this is how the error is being highlighted in the editor:
The line under "asdf" starts 5 characters too early.
Does anyone know where the problem is coming from or how to solve this?
Reproducibility Check
I confirm that my minimal config is based on the minimal_init.lua template and that my issue is reproducible by running nvim --clean -u minimal_init.lua and following the steps above.
Expected Behavior
The erroneous letters ("asdf") should be underlined correctly.
FAQ
Issues
Neovim Version
0.9.1
Dev Version?
Operating System
macOS
Minimal Config
Steps to Reproduce
Create a
txt
file with the following content:ltrs
is configured and will report an error for the unknown word "asdf". The output of theltrs
command also contains the correct information about the position of the spelling error ("asdf" starts at offset 47). Unfortunately, some internals of null-ls or neovim do not seem to handle UTF-8 content correctly, because this is how the error is being highlighted in the editor:The line under "asdf" starts 5 characters too early.
Does anyone know where the problem is coming from or how to solve this?
Reproducibility Check
minimal_init.lua
template and that my issue is reproducible by runningnvim --clean -u minimal_init.lua
and following the steps above.Expected Behavior
The erroneous letters ("asdf") should be underlined correctly.
Actual Behavior
The error highlighting is shifted to the left.
Debug Log
Help
Yes, but I don't know how to start. I would need guidance
Implementation Help
No response
Requirements
The text was updated successfully, but these errors were encountered: