Skip to content

Commit

Permalink
fix: calling the binary without the path
Browse files Browse the repository at this point in the history
Assuming the binary is in the user's path
  • Loading branch information
OZoneGuy committed Oct 15, 2023
1 parent b3dc391 commit 2ebcd0d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/lspconfig/server_configurations/htmx.lua
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 2ebcd0d

Please sign in to comment.