diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-07-17 22:31:48 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-07-17 22:31:48 +0200 |
commit | 260b128c3af345ea13410e31088be24ab165b4c1 (patch) | |
tree | d07066257ef7e1c6a6cbaf8a0fc80e24789e0338 /nvim | |
parent | 55577c7aa06b0d7e3e92d6a7c8f9de45557230e5 (diff) |
fixup! nvim: Add support for ledger and timetracking
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/nvim/lua/ledger.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nvim/nvim/lua/ledger.lua b/nvim/nvim/lua/ledger.lua index a6a5cd4..8baa221 100644 --- a/nvim/nvim/lua/ledger.lua +++ b/nvim/nvim/lua/ledger.lua @@ -12,9 +12,9 @@ function complete (arglead, cmdline, cursorpos) local found = {} for _,v in pairs(vim.api.nvim_buf_get_lines(0, 0, -1, false)) do - _, _, account = string.find(v, account_pattern) + account = string.match(v, account_pattern) if not account then - _, _, account = string.find(v, entry_pattern) + account = string.match(v, entry_pattern) end if account and string.sub(account, 1, #arglead) == arglead then if not found[account] then |