You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
949 B
33 lines
949 B
1 year ago
|
-- local lspconfig = require 'lspconfig'
|
||
|
-- local configs = require 'lspconfig.configs'
|
||
|
-- local util = require 'lspconfig.util'
|
||
|
-- local function getPath(str)
|
||
|
-- return str:match("(.*[/\\])")
|
||
|
-- end
|
||
|
--
|
||
|
-- if not configs.flux then
|
||
|
-- configs.flux = {
|
||
|
-- default_config = {
|
||
|
-- cmd = { "/home/nige/.cargo/bin/flux-lsp" },
|
||
|
-- filetypes = { 'flux' },
|
||
|
-- root_dir = function(fname)
|
||
|
-- local root = getPath(fname)
|
||
|
-- if root then
|
||
|
-- return root
|
||
|
-- end
|
||
|
-- end,
|
||
|
-- single_file_support = true,
|
||
|
-- settings = {},
|
||
|
-- },
|
||
|
-- docs = {
|
||
|
-- description = "Language server for Influxdb flux query language"
|
||
|
-- }
|
||
|
-- }
|
||
|
-- end
|
||
|
--
|
||
|
-- lspconfig.flux.setup {
|
||
|
-- }
|
||
|
require 'lspconfig'.flux_lsp.setup {
|
||
|
cmd = { "/home/nige/.cargo/bin/flux-lsp", "-l", "/tmp/fluxlsp" },
|
||
|
}
|