23 lines
586 B
Lua
23 lines
586 B
Lua
return {
|
|
"stevearc/pair-ls.nvim",
|
|
-- Call the setup function
|
|
opts = {
|
|
-- The pair-ls command to run
|
|
cmd = { "pair-ls", "lsp", "-port", "8099" },
|
|
|
|
-- The function configures the root directory for the server
|
|
root_dir = function(fname, util)
|
|
return util.root_pattern(".git", ".hg")(fname) or vim.loop.cwd()
|
|
end,
|
|
|
|
-- Pass a function here to run custom logic on attach
|
|
on_attach = function(client, bufnr) end,
|
|
|
|
-- See :help vim.lsp.start_client
|
|
flags = {
|
|
allow_incremental_sync = true,
|
|
debounce_text_changes = nil,
|
|
},
|
|
}
|
|
}
|