aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/pug.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/server_configurations/pug.lua')
-rw-r--r--lua/lspconfig/server_configurations/pug.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/pug.lua b/lua/lspconfig/server_configurations/pug.lua
new file mode 100644
index 00000000..28f7db61
--- /dev/null
+++ b/lua/lspconfig/server_configurations/pug.lua
@@ -0,0 +1,18 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'pug-lsp' },
+ filetypes = { 'pug' },
+ root_dir = util.find_package_json_ancestor,
+ },
+ docs = {
+ description = [[
+https://github.com/opa-oz/pug-lsp
+
+An implementation of the Language Protocol Server for [Pug.js](http://pugjs.org)
+
+PugLSP can be installed via `go get github.com/opa-oz/pug-lsp`, or manually downloaded from [releases page](https://github.com/opa-oz/pug-lsp/releases)
+ ]],
+ },
+}