From bda740caf7643e57524ed9fe57331b1ee3baacb7 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Fri, 3 May 2024 07:51:28 +0100 Subject: [PATCH] fix(vim): disable hover in liquid files This is causing the same issues as the other file types, when there is an lsp attached but it dose not support hover for this filetype --- site-modules/core/files/vim/plugin/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-modules/core/files/vim/plugin/lsp.lua b/site-modules/core/files/vim/plugin/lsp.lua index 444c248..c07e9d4 100644 --- a/site-modules/core/files/vim/plugin/lsp.lua +++ b/site-modules/core/files/vim/plugin/lsp.lua @@ -66,7 +66,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" and file_type ~= "markdown" then + if file_type ~= "eruby" and file_type ~= "markdown" and file_type ~= "liquid" then vim.lsp.buf.document_highlight() end end,