diff --git a/lua/lspconfig/server_configurations/htmx.lua b/lua/lspconfig/server_configurations/htmx.lua index 4b1d3bbae7..d8bd64db68 100644 --- a/lua/lspconfig/server_configurations/htmx.lua +++ b/lua/lspconfig/server_configurations/htmx.lua @@ -1,14 +1,14 @@ 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" +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" }, - filetypes = { "html" }, + cmd = { cargo_home .. '/bin/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() + return util.find_git_ancestor(fname) or vim.fn.expand '%:p:h' or vim.loop.os_homedir() end, settings = {}, },