From 8d041082520eb179ecc50af5a5e929b72c9a70f7 Mon Sep 17 00:00:00 2001 From: Hashino Date: Sun, 5 Jan 2025 12:39:33 -0300 Subject: [PATCH] fix: invalid example config missed a comma -_- --- README.md | 2 +- lua/doing/state.lua | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4b93049..712bef2 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ lazy.nvim: width = 50, height = 15, border = "rounded", - } + }, -- if plugin should manage the winbar winbar = { enabled = true, }, diff --git a/lua/doing/state.lua b/lua/doing/state.lua index 5c50033..3d7751b 100644 --- a/lua/doing/state.lua +++ b/lua/doing/state.lua @@ -1,5 +1,5 @@ local dir_separator = "/" -if vim.loop.os_uname().sysname:find("Windows") then +if vim.loop.os_uname().sysname:find("Windows") then dir_separator = "\\" end @@ -20,10 +20,13 @@ State.default_opts = { doing_prefix = "Doing: ", -- doesn"t display on buffers that match filetype/filename/filepath to - -- entries can be either a string array or a function that returns a - -- string array filepath can be relative or absolute + -- entries. can be either a string array or a function that returns a + -- string array. filepath can be relative to cwd or absolute ignored_buffers = { "NvimTree", }, + -- if should append "+n more" to the status when there's tasks remaining + show_remaining = true, + -- window configs of the floating tasks editor -- see :h nvim_open_win() for available options edit_win_config = { @@ -32,11 +35,8 @@ State.default_opts = { border = "rounded", }, - -- if should append "+n more" to the status when there are tasks remaining - show_remaining = true, - -- if plugin should manage the winbar - winbar = { enabled = false, }, + winbar = { enabled = true, }, store = { -- name of tasks file @@ -86,7 +86,8 @@ end -- finds tasks file in cwd function State:import_file() - local file = vim.fn.findfile(vim.fn.getcwd() .. dir_separator .. State.options.store.file_name, ".;") + local file = vim.fn.findfile(vim.fn.getcwd() .. dir_separator .. State.options.store.file_name, + ".;") if file == "" then self.file = nil