From 2ebcd0db035e91d06d536070fce14ea0ad2e45c6 Mon Sep 17 00:00:00 2001 From: OZoneGuy Date: Sun, 15 Oct 2023 01:02:23 -0400 Subject: [PATCH] fix: calling the binary without the path Assuming the binary is in the user's path --- lua/lspconfig/server_configurations/htmx.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/lspconfig/server_configurations/htmx.lua b/lua/lspconfig/server_configurations/htmx.lua index d8bd64db68..b08e6e3cfa 100644 --- a/lua/lspconfig/server_configurations/htmx.lua +++ b/lua/lspconfig/server_configurations/htmx.lua @@ -1,11 +1,8 @@ local util = require 'lspconfig.util' --- NOTE: the binary can be installed in custom a location. The user should --- change the cmd to match the installation path -local cargo_home = os.getenv 'CARGO_INSTALL_ROOT' or os.getenv 'CARGO_HOME' or os.getenv 'HOME' .. '/.cargo' return { default_config = { - cmd = { cargo_home .. '/bin/htmx-lsp' }, + cmd = { 'htmx-lsp' }, filetypes = { 'html' }, root_dir = function(fname) return util.find_git_ancestor(fname) or vim.fn.expand '%:p:h' or vim.loop.os_homedir()