diff options
| author | Nathaniel Cook <nvcook42@gmail.com> | 2021-12-17 11:27:03 -0700 |
|---|---|---|
| committer | Nathaniel Cook <nvcook42@gmail.com> | 2021-12-17 11:27:03 -0700 |
| commit | abdb9f3acdc869a62e7964d6ac7fc4cdc5502388 (patch) | |
| tree | 64cde3b402e06b9fdd88827bd3bd2aa3c0ff012b /lua/lspconfig/server_configurations/flux_lsp.lua | |
| parent | fix: remove dependency on deprecated close_preview_autocommand (#1575) (diff) | |
| download | nvim-lspconfig-abdb9f3acdc869a62e7964d6ac7fc4cdc5502388.tar nvim-lspconfig-abdb9f3acdc869a62e7964d6ac7fc4cdc5502388.tar.gz nvim-lspconfig-abdb9f3acdc869a62e7964d6ac7fc4cdc5502388.tar.bz2 nvim-lspconfig-abdb9f3acdc869a62e7964d6ac7fc4cdc5502388.tar.lz nvim-lspconfig-abdb9f3acdc869a62e7964d6ac7fc4cdc5502388.tar.xz nvim-lspconfig-abdb9f3acdc869a62e7964d6ac7fc4cdc5502388.tar.zst nvim-lspconfig-abdb9f3acdc869a62e7964d6ac7fc4cdc5502388.zip | |
fix: rename flux-lsp to flux_lsp
Using flux-lsp as the name of the config made it more difficult than
needed to install the config as you needed to escape the dash. All other
configs are named with underscores so this brings the config inline.
Diffstat (limited to 'lua/lspconfig/server_configurations/flux_lsp.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/flux_lsp.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/flux_lsp.lua b/lua/lspconfig/server_configurations/flux_lsp.lua new file mode 100644 index 00000000..5dd6c32a --- /dev/null +++ b/lua/lspconfig/server_configurations/flux_lsp.lua @@ -0,0 +1,21 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'flux-lsp' }, + filetypes = { 'flux' }, + root_dir = util.find_git_ancestor, + }, + 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 = [[util.find_git_ancestor]], + }, + }, +} |
