summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/cfg/lsp/emmet-ls.lua
blob: fcb7f62dc0d2b6f329647a59161999b0c56b082e (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'};
    root_dir = function()
      return vim.loop.cwd()
    end;
    settings = {};
  };
}

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