nvim: add todo-comments
This commit is contained in:
parent
e2c2f825f0
commit
e7fd1c8714
|
@ -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')
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user