noice.nvim
noice.nvim copied to clipboard
bug: Html tags visible using hover with ansible-language-server
Did you check docs and existing issues?
- [X] I have read all the noice.nvim docs
- [X] I have searched the existing issues of noice.nvim
- [X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.9.5
Operating system/version
Archlinux
Describe the bug
The html tags are not interpreted but literally printed in the hover popup.
Steps To Reproduce
- Add the following config:
{
-- Install additional tools
{
"williamboman/mason.nvim",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"ansible-language-server",
"ansible-lint",
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
ansiblels = {},
},
},
},
}
- Open this file:
---
# vim: set ft=yaml.ansible :
- name: Test
tasks:
- ansible.builtin.get_url:
- Open hover on
get_url
Expected Behavior
Not seeing any html tags in the hover popup.
Repro
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",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
{
"folke/noice.nvim",
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
},
},
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig",
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
-- add anything else here
vim.opt.termguicolors = true
vim.cmd([[colorscheme tokyonight]])
require("noice").setup()
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed = { "ansiblels" },
})
require("lspconfig").ansiblels.setup({})
vim.keymap.set("n", "<space>", vim.lsp.buf.hover)