dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

beancount.lua (437B)


      1 return {
      2   cmd = { "beancount-language-server", "--stdio" },
      3   init_options = {
      4     journal_file = (function()
      5       -- Search upwards for main.beancount starting from the current working directory
      6       local file = vim.fn.findfile('main.beancount', '.;')
      7       if file ~= '' then
      8         -- Expand the relative result into a full absolute path
      9         return vim.fn.fnamemodify(file, ':p')
     10       end
     11       return ""
     12     end)(),
     13   },
     14 }