-- 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" }, }