Skip to content

Commit

Permalink
fix: update languagid correctly as lsp expects
Browse files Browse the repository at this point in the history
  • Loading branch information
EliSauder committed Jul 23, 2024
1 parent 9139a13 commit 491c844
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/lspconfig/server_configurations/superhtml.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
local util = require 'lspconfig.util'

local language_id_of = {
shtml = 'suprehtml'
}

return {
default_config = {
cmd = { 'superhtml', 'lsp' },
filetypes = { 'shtml' },
root_dir = util.root_pattern '.git',
single_file_support = true,
get_language_id = function(_, ftype)
return language_id_of[ftype]
end,

},
docs = {
description = [[
Expand Down

0 comments on commit 491c844

Please sign in to comment.