From 265d2491188afb7ea6a2470c4c74dc3c13dc11e4 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 16 Jun 2023 11:04:01 -0600 Subject: [PATCH] configs/neovim: add todo-comments --- configs/neovim.lua | 7 +++++-- configs/neovim.nix | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configs/neovim.lua b/configs/neovim.lua index ccf826e..50b3e1d 100644 --- a/configs/neovim.lua +++ b/configs/neovim.lua @@ -47,7 +47,7 @@ require("nvim-tree").setup({ }, }) -require("obsidian").setup({ +require('obsidian').setup({ dir = "~/Brain", daily_notes = { folder = "Daily", @@ -60,10 +60,12 @@ require("obsidian").setup({ require 'nvim-treesitter.configs'.setup({}) require('neogen').setup({}) +require('todo-comments').setup {}; + cmd [[highlight NvimTreeOpenedFolderName guifg=default]] cmd [[highlight NvimTreeFolderName guifg=default]] -local lspc = require("lspconfig") +local lspc = require('lspconfig') lspc.elmls.setup {}; lspc.gopls.setup {}; lspc.hls.setup {}; @@ -86,6 +88,7 @@ map('n', 'mo', ':MindOpenMain', {}) map('n', 'mp', ':MindOpenProject', {}) map('n', 'ot', ':ObsidianToday', {}) map('n', 'tb', ':TagbarToggle', {}) +map('n', 't', ':TodoQuickFix', {}) map('n', 'g', ':GitGutterToggle', { noremap = true }) map('n', '2', ':set list!', { noremap = true }) diff --git a/configs/neovim.nix b/configs/neovim.nix index d279c02..d226da8 100644 --- a/configs/neovim.nix +++ b/configs/neovim.nix @@ -126,6 +126,7 @@ let telescope-fzf-native-nvim telescope-manix telescope-nvim + todo-comments-nvim vimagit vim-gitgutter vim-go