aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorJaehwang Jung <tomtomjhj@gmail.com>2022-03-29 01:16:11 +0900
committerGitHub <noreply@github.com>2022-03-28 09:16:11 -0700
commit4d3acd6bebbdffa3fefc4e102d9ff36845c7a18f (patch)
treed8f3cc7cdf140b46bc391929b826c7b6bf63af02 /runtime/lua/vim/lsp/util.lua
parente55ba16a0e3a1a363deb16d1da7b4d80db37a494 (diff)
downloadrneovim-4d3acd6bebbdffa3fefc4e102d9ff36845c7a18f.tar.gz
rneovim-4d3acd6bebbdffa3fefc4e102d9ff36845c7a18f.tar.bz2
rneovim-4d3acd6bebbdffa3fefc4e102d9ff36845c7a18f.zip
fix(lsp): use "text" filetype for plaintext (#17898)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index cec3891418..991c4be950 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1138,7 +1138,7 @@ function M.stylize_markdown(bufnr, contents, opts)
block = {nil, "```+([a-zA-Z0-9_]*)", "```+"},
pre = {"", "<pre>", "</pre>"},
code = {"", "<code>", "</code>"},
- text = {"plaintex", "<text>", "</text>"},
+ text = {"text", "<text>", "</text>"},
}
local match_begin = function(line)