From 69347ce034f8966579e72dc969ec808363fdfaeb Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Mon, 19 Apr 2021 21:45:03 +0200 Subject: Add missing files of nvim conf --- .config/nvim/lua/lsp/emmet-ls.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .config/nvim/lua/lsp/emmet-ls.lua (limited to '.config/nvim/lua/lsp/emmet-ls.lua') diff --git a/.config/nvim/lua/lsp/emmet-ls.lua b/.config/nvim/lua/lsp/emmet-ls.lua new file mode 100644 index 0000000..6531ccf --- /dev/null +++ b/.config/nvim/lua/lsp/emmet-ls.lua @@ -0,0 +1,19 @@ +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'}; + root_dir = function() + return vim.loop.cwd() + end; + settings = {}; + }; +} + +nvim_lsp.emmet_ls.setup{ + -- on_attach = on_attach; +} -- cgit v1.2.3-70-g09d2