-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_config.lua
More file actions
26 lines (23 loc) · 1005 Bytes
/
test_config.lua
File metadata and controls
26 lines (23 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- Minimal test configuration for frontline.nvim
-- Run with: nvim -u test_config.lua test.md
-- Add the plugin to the runtime path
vim.opt.runtimepath:prepend(vim.fn.getcwd())
-- Setup the plugin with configuration
require('frontline').setup({
newlines_after_tasks = 2, -- Number of blank lines after task list (default: 2)
mappings = {
toggle_done = "<leader>td", -- Toggle task done/undone
toggle_started = "<leader>ts", -- Toggle task started/unstarted
modify_task = "<leader>tm", -- Modify task properties
add_annotation = "<leader>ta", -- Add task annotation
edit_task = "<leader>te", -- Edit task in Taskwarrior editor
},
})
-- Optional: Show a message when loaded
vim.api.nvim_create_autocmd("VimEnter", {
callback = function()
print("Frontline plugin loaded!")
print("Create a markdown file with '# Tasks | status:pending' to test.")
print("Use <leader>td, <leader>ts, <leader>tm, <leader>ta, <leader>te on task lines.")
end,
})