diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-10-22 01:25:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-22 01:25:57 -0700 |
| commit | 1218c6b59af654fd053dc6984dc497155b131763 (patch) | |
| tree | 229e28926ff82d9c4c13a7243d5b2222b63f6015 /lua | |
| parent | docs: update CONFIG.md (diff) | |
| download | nvim-lspconfig-1218c6b59af654fd053dc6984dc497155b131763.tar nvim-lspconfig-1218c6b59af654fd053dc6984dc497155b131763.tar.gz nvim-lspconfig-1218c6b59af654fd053dc6984dc497155b131763.tar.bz2 nvim-lspconfig-1218c6b59af654fd053dc6984dc497155b131763.tar.lz nvim-lspconfig-1218c6b59af654fd053dc6984dc497155b131763.tar.xz nvim-lspconfig-1218c6b59af654fd053dc6984dc497155b131763.tar.zst nvim-lspconfig-1218c6b59af654fd053dc6984dc497155b131763.zip | |
feat: add flux-lsp configuration (#1335)
Co-authored-by: Nathaniel Cook <nvcook42@gmail.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/flux-lsp.lua | 27 |
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 |
