Skip to content

Commit

Permalink
lint: Fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
OZoneGuy committed Oct 15, 2023
1 parent f2e0ef9 commit e8d471b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/lspconfig/server_configurations/htmx.lua
Original file line number Diff line number Diff line change
@@ -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 = {},
},
Expand Down

0 comments on commit e8d471b

Please sign in to comment.