Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Shows   instead of actual space in markdown #447

Closed
3 tasks done
Jomik opened this issue May 1, 2023 · 1 comment · Fixed by #448, #451 or #639
Closed
3 tasks done

bug: Shows   instead of actual space in markdown #447

Jomik opened this issue May 1, 2023 · 1 comment · Fixed by #448, #451 or #639

Comments

@Jomik
Copy link
Contributor

Jomik commented May 1, 2023

Did you check docs and existing issues?

  • I have read all the LazyVim docs
  • I have searched the existing issues of LazyVim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.9.0

Operating system/version

macOS 13.1

Describe the bug

yamlls hover is filled with  , which shouldn't be there.
image
Issue happens for me when overriding lsp stylize_markdown with noice implementation.

Similar issue has been fixed in neovim/neovim#22757
Related issue #424

Steps To Reproduce

  1. Install the repro.lua given.
  2. Create .gitlab-ci.yaml with content
stages:
  - hello
  1. Run nvim -u repro.lua .gitlab-ci.yaml, wait for mason to install yamlls.
  2. Quit and reopen file.
  3. Hover (K) on hello, observe above issue.

Expected Behavior

I would expect not to see   as it should be fixed in neovim 0.9.
We still need redhat-developer/yaml-language-server#863 to get rid of the additional  .

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
	vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
	vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
	"folke/tokyonight.nvim",
	"LazyVim/LazyVim",
	-- add any other plugins here
	{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
	{
		"neovim/nvim-lspconfig",
		opts = {
			servers = {
				yamlls = {
					settings = {
						yaml = {
							schemas = {
								["https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json"] = ".gitlab-ci.y*l",
							},
							hover = true,
						},
					},
				},
			},
		},
	},
}
require("lazy").setup(plugins, {
	root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@folke
Copy link
Owner

folke commented May 1, 2023

Feel free to submit a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants