summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/emmet-ls.lua
blob: e38747ac9866a329536e5e4a5819c0e4f3dcc3cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- if not package.loaded['lspconfig'] then
--   return
-- end

local nvim_lsp = require "lspconfig"
local configs = require "lspconfig/configs"
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true

configs.emmet_ls = {
  default_config = {
    cmd = { "emmet-ls", "--stdio" },
    filetypes = { "html", "css", "javascript", "typescript", "vue" },
    root_dir = function()
      return vim.loop.cwd()
    end,
    settings = {},
  },
}

nvim_lsp.emmet_ls.setup {
  -- on_attach = on_attach;
}