2023-06-19 15:59:04 +08:00
|
|
|
local util = require 'lspconfig.util'
|
|
|
|
|
2024-05-21 12:31:14 +08:00
|
|
|
local default_capabilities = vim.lsp.protocol.make_client_capabilities()
|
|
|
|
default_capabilities.offsetEncoding = { 'utf-8', 'utf-16' }
|
|
|
|
|
2023-06-19 15:59:04 +08:00
|
|
|
return {
|
|
|
|
default_config = {
|
|
|
|
cmd = { 'fennel-ls' },
|
|
|
|
filetypes = { 'fennel' },
|
|
|
|
root_dir = function(dir)
|
|
|
|
return util.find_git_ancestor(dir)
|
|
|
|
end,
|
|
|
|
settings = {},
|
2024-05-21 12:31:14 +08:00
|
|
|
capabilities = default_capabilities,
|
2023-06-19 15:59:04 +08:00
|
|
|
},
|
|
|
|
docs = {
|
|
|
|
description = [[
|
|
|
|
https://sr.ht/~xerool/fennel-ls/
|
|
|
|
|
|
|
|
A language server for fennel.
|
|
|
|
]],
|
|
|
|
},
|
|
|
|
}
|