feat(vim): have a play with marksman the markdown lsp

This commit is contained in:
Ade Attwood 2023-11-24 07:54:33 +00:00
parent 47688aa2b0
commit 0fa7e58c98

View file

@ -10,6 +10,7 @@ local servers = {
tsserver = {},
html = {},
cssls = {},
marksman = {},
clojure_lsp = {},
emmet_ls = {
filetypes = { "html", "typescriptreact", "javascriptreact", "css", "scss", "eruby" },
@ -59,7 +60,7 @@ local on_attach = function(_, bufnr)
-- Highlight document symbles for every file type other erb files because
-- solargraph only supports textDocument/documentHighlight in rb files.
local file_type = vim.api.nvim_buf_get_option(0, "filetype")
if file_type ~= "eruby" then
if file_type ~= "eruby" and file_type ~= "markdown" then
vim.lsp.buf.document_highlight()
end
end,