nvim: add todo-comments

This commit is contained in:
tastytea 2022-08-24 02:19:41 +02:00
parent e2c2f825f0
commit e7fd1c8714
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,7 @@ require('my/plugins')
require 'nvim-treesitter.configs'.setup {
ensure_installed = 'all',
ignore_install = { 'comment' },
sync_install = true,
highlight = {
enable = true,
@ -38,3 +39,14 @@ vim.api.nvim_create_autocmd({ 'BufEnter' }, {
pattern = { '*.m3u8', '*.m3u' },
command = [[set textwidth=0]]
})
require("todo-comments").setup({
highlight = {
keyword = 'bg',
after = ''
}
})
local map = require('my.functions').map
map('n', '<Leader>tt',
require("telescope._extensions.todo-comments").exports.todo,
'Display TODO comments in project')

View File

@ -34,6 +34,10 @@ require('packer').startup(function(use)
requires = 'https://github.com/nvim-treesitter/nvim-treesitter'
}
use { 'https://github.com/gentoo/gentoo-syntax' }
use {
'https://github.com/folke/todo-comments.nvim',
requires = { 'https://github.com/nvim-lua/plenary.nvim' }
}
-- completion
use {