From eddba46c300c3d9a16d5d97707b364426f38365c Mon Sep 17 00:00:00 2001 From: hateonion Date: Tue, 17 May 2022 23:31:01 +0800 Subject: fix(beancount): fix beancount start command and filetype (#1879) * fix(beancount): fix beancount start command and config * fix: update beancount config * fix: add single_file_support back * fix: fix lint --- lua/lspconfig/server_configurations/beancount.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lua') 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")]], }, }, } -- cgit v1.2.3-70-g09d2