aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/beancount.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/lua/lspconfig/server_configurations/beancount.lua b/lua/lspconfig/server_configurations/beancount.lua
index 1d86d34b..5258456c 100644
--- a/lua/lspconfig/server_configurations/beancount.lua
+++ b/lua/lspconfig/server_configurations/beancount.lua
@@ -2,15 +2,13 @@ local util = require 'lspconfig.util'
return {
default_config = {
- cmd = { 'beancount-langserver', '--stdio' },
- filetypes = { 'beancount' },
+ cmd = { 'beancount-language-server', '--stdio' },
+ filetypes = { 'beancount', 'bean' },
root_dir = util.find_git_ancestor,
single_file_support = true,
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 = {
@@ -20,7 +18,7 @@ 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")]],
+ root_dir = [[root_pattern(".git")]],
},
},
}