summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/cfg/lsp/emmet-ls.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/cfg/lsp/emmet-ls.lua')
-rw-r--r--.config/nvim/lua/cfg/lsp/emmet-ls.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/.config/nvim/lua/cfg/lsp/emmet-ls.lua b/.config/nvim/lua/cfg/lsp/emmet-ls.lua
new file mode 100644
index 0000000..fcb7f62
--- /dev/null
+++ b/.config/nvim/lua/cfg/lsp/emmet-ls.lua
@@ -0,0 +1,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;
+}