beancount-language-server icon indicating copy to clipboard operation
beancount-language-server copied to clipboard

Documentation: how to operate on current file?

Open HappyEinara opened this issue 4 years ago • 1 comments

The documentation (with its link to your dotfiles) appears to suggest that the file to be linted has to be hardcoded in init.vim as:

 init_options = {
        journalFile = "~/repos/beancount/journal.beancount",
}

Is there no way for the language server to operate on the current buffer, or (in the case of an included file) the master file of the current buffer?

HappyEinara avatar Sep 26 '21 08:09 HappyEinara

the file linked is the root file to find account declarations, etc. the language server processes the current buffer but uses that file to determine other needed info for completions (for now). I could make this option optional but some completions might not show up

polarmutex avatar Sep 27 '21 04:09 polarmutex