-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Hashino/next
Next
- Loading branch information
Showing
8 changed files
with
170 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
local Config = {} | ||
|
||
---@class DoingOptions | ||
---@field ignored_buffers string[]|fun():string[] elements are checked against buffer filetype/filename/filepath | ||
---@field message_timeout integer how many millisecons messages will stay on status | ||
---@field doing_prefix string prefix to show before the task | ||
---@field winbar.enabled boolean if plugin should manage the winbar | ||
---@field store.file_name string name of the task file | ||
---@field store.auto_delete_file boolean auto delete tasks file | ||
---@field show_remaining boolean show "+n more" when there are more than 1 tasks | ||
---@field edit_win_config table<string, any> window configs of the floating editor | ||
|
||
Config.default_opts = { | ||
message_timeout = 2000, | ||
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 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 = { | ||
width = 50, | ||
height = 15, | ||
border = "rounded", | ||
}, | ||
|
||
-- if plugin should manage the winbar | ||
winbar = { enabled = true, }, | ||
|
||
store = { | ||
-- name of tasks file | ||
file_name = ".tasks", | ||
}, | ||
} | ||
|
||
Config.options = Config.default_opts | ||
|
||
return Config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.