From 42cef6e0c44fb31380e7ec9f292c0595f1046977 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Fri, 22 Nov 2024 12:02:10 -0500 Subject: [PATCH] feat: Adds more todo keymaps. --- nvim/m-housh/init.lua | 6 ++-- .../m-housh/lua/user/plugin/todo-comments.lua | 29 ++++++++++-------- nvim/m-housh/spell/en.utf-8.add | 3 ++ nvim/m-housh/spell/en.utf-8.add.spl | Bin 197 -> 246 bytes 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/nvim/m-housh/init.lua b/nvim/m-housh/init.lua index f155935..94c6497 100755 --- a/nvim/m-housh/init.lua +++ b/nvim/m-housh/init.lua @@ -2,6 +2,9 @@ vim.g.mapleader = " " vim.g.maplocalleader = " " +-- Common settings +require("user.settings") + -- Auto commands require("user.autocmd") @@ -13,6 +16,3 @@ require("user.keymaps") -- Theme (must stay after plugins are loaded) require("user.theme") - --- Common settings -require("user.settings") diff --git a/nvim/m-housh/lua/user/plugin/todo-comments.lua b/nvim/m-housh/lua/user/plugin/todo-comments.lua index b333c9a..f64812f 100644 --- a/nvim/m-housh/lua/user/plugin/todo-comments.lua +++ b/nvim/m-housh/lua/user/plugin/todo-comments.lua @@ -1,15 +1,20 @@ return { - "folke/todo-comments.nvim", - dependencies = { "nvim-lua/plenary.nvim" }, - opts = { }, - config = function() - require('todo-comments').setup({}) + "folke/todo-comments.nvim", + dependencies = { "nvim-lua/plenary.nvim" }, + opts = {}, + config = function() + local todos = require("todo-comments") - vim.keymap.set('n', 'tq', 'TodoQuickFix', - { desc = "[T]odo [Q]uick fix list." } - ) - vim.keymap.set('n', 't', 'TodoTelescope', - { desc = "[T]odo [Q]uick fix list." } - ) - end, + todos.setup({}) + + vim.keymap.set("n", "tq", "TodoQuickFix", { desc = "[T]odo [Q]uick fix list." }) + vim.keymap.set("n", "t", "TodoTelescope", { desc = "[T]odo telescope list." }) + vim.keymap.set("n", "tl", "TodoLocList", { desc = "[T]odo [L]ocation list." }) + vim.keymap.set("n", "]t", function() + todos.jump_next() + end, { desc = "Next [T]odo" }) + vim.keymap.set("n", "[t", function() + todos.jump_prev() + end, { desc = "Previous [T]odo" }) + end, } diff --git a/nvim/m-housh/spell/en.utf-8.add b/nvim/m-housh/spell/en.utf-8.add index 42cf876..fe8a2c3 100755 --- a/nvim/m-housh/spell/en.utf-8.add +++ b/nvim/m-housh/spell/en.utf-8.add @@ -10,3 +10,6 @@ Hydronic subpar quo IAQ +wc +HVAC +dehumidification diff --git a/nvim/m-housh/spell/en.utf-8.add.spl b/nvim/m-housh/spell/en.utf-8.add.spl index 3294b3e3dcd5c1ff1e120668596f7478d209e59a..104e17c4c4f8e00c6af5e9339b7d54a865620c67 100755 GIT binary patch literal 246 zcmY+9I}XAy5JWwOj)sDYW1t)$1r0?C8v5XDlzu`To-1IgoGt~wex0Y< zJMn(^HpaYGxhtx=X+uBWQQ-o+LJ;QQZXHr4Ws$o~yr{cZnyAjH)Nw6~0?c=H`N`kX>9fO0mssF|%LxheW O*&_Q}ar~_y!17m$$fV4wX?C!bGknOz9S zmx!coX9qt{F%=BBK{vPpBD+!J11suP6&GYgOz@R87Tw2_;HV01nJRI5Slppct~JEg nzIOx>qHd)-V4-WNz&P}3XR=t=CVXQ}=3fW2f8pjAPRM!#iL4{y