Skip to content

Commit

Permalink
fix: invalid example config
Browse files Browse the repository at this point in the history
missed a comma -_-
  • Loading branch information
Hashino committed Jan 5, 2025
1 parent 752d5d4 commit 8d04108
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ lazy.nvim:
width = 50,
height = 15,
border = "rounded",
}
},

-- if plugin should manage the winbar
winbar = { enabled = true, },
Expand Down
17 changes: 9 additions & 8 deletions lua/doing/state.lua
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 = {
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8d04108

Please sign in to comment.