2023-06-19 15:59:04 +08:00
|
|
|
local util = require 'lspconfig.util'
|
|
|
|
|
|
|
|
return {
|
|
|
|
default_config = {
|
|
|
|
cmd = { 'beancount-language-server', '--stdio' },
|
|
|
|
filetypes = { 'beancount', 'bean' },
|
|
|
|
root_dir = util.find_git_ancestor,
|
|
|
|
single_file_support = true,
|
2024-05-21 12:31:14 +08:00
|
|
|
init_options = {},
|
2023-06-19 15:59:04 +08:00
|
|
|
},
|
|
|
|
docs = {
|
|
|
|
description = [[
|
|
|
|
https://github.com/polarmutex/beancount-language-server#installation
|
|
|
|
|
|
|
|
See https://github.com/polarmutex/beancount-language-server#configuration for configuration options
|
|
|
|
]],
|
|
|
|
default_config = {
|
|
|
|
root_dir = [[root_pattern(".git")]],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|