aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/flux-lsp.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/lua/lspconfig/flux-lsp.lua b/lua/lspconfig/flux-lsp.lua
new file mode 100644
index 00000000..719c42d1
--- /dev/null
+++ b/lua/lspconfig/flux-lsp.lua
@@ -0,0 +1,27 @@
+local configs = require 'lspconfig/configs'
+local util = require 'lspconfig/util'
+
+local server_name = 'flux-lsp'
+local bin_name = 'flux-lsp'
+
+configs[server_name] = {
+ default_config = {
+ cmd = { bin_name },
+ filetypes = { 'flux' },
+ root_dir = util.root_pattern '.git',
+ },
+ docs = {
+ description = [[
+https://github.com/influxdata/flux-lsp
+`flux-lsp` can be installed via `cargo`:
+```sh
+cargo install --git https://github.com/influxdata/flux-lsp
+```
+]],
+ default_config = {
+ root_dir = [[root_pattern(".git")]],
+ },
+ },
+}
+
+-- vim:et ts=2 sw=2