Skip to content

Commit

Permalink
Bump required version to 0.20.0-alpha.10
Browse files Browse the repository at this point in the history
  • Loading branch information
chipsenkbeil committed Jun 26, 2023
1 parent d78a92e commit 0eca7b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions lua/distant-core/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ function M:connect_lsp_clients(opts)
--- Performs actual process of attaching a client to a buffer using the `root_dir`.
--- @param root_dir string
local function do_connect_client(root_dir)
assert(type(root_dir) == 'string', ('Invalid root dir: %s'):format(vim.inspect(root_dir)))
log.fmt_trace('File %s is within %s of %s', path, root_dir, label)

-- Check if this lsp is filtered by filetype, and if so make sure that
Expand All @@ -199,16 +200,18 @@ function M:connect_lsp_clients(opts)
end

local cmd = self:wrap({ lsp = config.cmd, scheme = opts.scheme })
log.fmt_debug('Starting LSP %s: %s', label, cmd)

-- Start LSP server using the provided configuration, replacing the
-- command with the distant-wrapped verison and shadowing the
-- on_exit command if provided
local id = vim.lsp.start_client(vim.tbl_deep_extend('force', config, {
config = vim.tbl_deep_extend('force', config, {
cmd = cmd,
on_exit = on_exit,
root_dir = root_dir,
}))
})

-- Start LSP server using the provided configuration, replacing the
-- command with the distant-wrapped verison and shadowing the
-- on_exit command if provided
log.fmt_debug('Starting LSP %s: %s', label, config)
local id = vim.lsp.start_client(config)
self.__state.lsp.clients[label] = id
end

Expand Down
2 changes: 1 addition & 1 deletion lua/distant/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local Version = require('distant-core').Version
local DEFAULT = require('distant.default')

--- Represents the minimum version of the CLI supported by this plugin.
local MIN_VERSION = Version:parse('0.20.0-alpha.9')
local MIN_VERSION = Version:parse('0.20.0-alpha.10')

--- Represents the version of the plugin (not CLI).
local PLUGIN_VERSION = Version:parse('0.3.0')
Expand Down

0 comments on commit 0eca7b0

Please sign in to comment.