1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 02:20:04 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/server_configurations/beancount.lua

27 lines
726 B
Lua
Raw Normal View History

local util = require 'lspconfig.util'
2021-10-05 15:13:10 +08:00
return {
2021-10-05 15:13:10 +08:00
default_config = {
cmd = { 'beancount-langserver', '--stdio' },
2021-10-05 15:13:10 +08:00
filetypes = { 'beancount' },
root_dir = util.find_git_ancestor,
single_file_support = true,
2021-10-05 15:13:10 +08:00
init_options = {
-- this is the path to the beancout journal file
journalFile = '',
-- this is the path to the python binary with beancount installed
pythonPath = 'python3',
},
},
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("elm.json")]],
},
},
}