diff options
| author | hateonion <ouyang_yingjie@outlook.com> | 2022-05-17 23:31:01 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-17 17:31:01 +0200 |
| commit | eddba46c300c3d9a16d5d97707b364426f38365c (patch) | |
| tree | cd89133dd2f423dc4541dc5e77f000f0d418fb8a /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-eddba46c300c3d9a16d5d97707b364426f38365c.tar nvim-lspconfig-eddba46c300c3d9a16d5d97707b364426f38365c.tar.gz nvim-lspconfig-eddba46c300c3d9a16d5d97707b364426f38365c.tar.bz2 nvim-lspconfig-eddba46c300c3d9a16d5d97707b364426f38365c.tar.lz nvim-lspconfig-eddba46c300c3d9a16d5d97707b364426f38365c.tar.xz nvim-lspconfig-eddba46c300c3d9a16d5d97707b364426f38365c.tar.zst nvim-lspconfig-eddba46c300c3d9a16d5d97707b364426f38365c.zip | |
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
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/beancount.lua | 8 |
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")]], }, }, } |
