diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-09-18 23:13:11 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-09-18 23:13:11 +0200 |
| commit | af18201866ea29d179fd61bacd36b849a7d86a7d (patch) | |
| tree | f91a593c1eac7e5cee50ed470fde903e0ae7ad17 /lua/alpha/lsp/servers/html.lua | |
| parent | f64a1630423087bb020c2c0ea341136abd725c38 (diff) | |
| download | nvim-conf-af18201866ea29d179fd61bacd36b849a7d86a7d.tar.gz nvim-conf-af18201866ea29d179fd61bacd36b849a7d86a7d.zip | |
refactor lsp configurations
Diffstat (limited to 'lua/alpha/lsp/servers/html.lua')
| -rw-r--r-- | lua/alpha/lsp/servers/html.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/alpha/lsp/servers/html.lua b/lua/alpha/lsp/servers/html.lua new file mode 100644 index 0000000..7b8ef54 --- /dev/null +++ b/lua/alpha/lsp/servers/html.lua @@ -0,0 +1,14 @@ +local lsp_attach = require "alpha.lsp.attach" +local lsp_flags = require "alpha.lsp.flags" + +return function(ops) + local config = { + on_attach = lsp_attach, + flags = lsp_flags, + } + if vim.fn.executable "html-languageserver" == 1 then + config.cmd = { "html-languageserver", "--stdio" } + end + + return vim.tbl_extend("force", config, ops) +end |