Update generated neovim config
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
charset = utf-8
|
||||
5
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
5
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Ask a question
|
||||
url: https://github.com/folke/todo-comments.nvim/discussions
|
||||
about: Use Github discussions instead
|
||||
16
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
16
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
## Description
|
||||
|
||||
<!-- Describe the big picture of your changes to communicate to the maintainers
|
||||
why we should accept this pull request. -->
|
||||
|
||||
## Related Issue(s)
|
||||
|
||||
<!--
|
||||
If this PR fixes any issues, please link to the issue here.
|
||||
- Fixes #<issue_number>
|
||||
-->
|
||||
|
||||
## Screenshots
|
||||
|
||||
<!-- Add screenshots of the changes if applicable. -->
|
||||
|
||||
6
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/dependabot.yml
vendored
Normal file
6
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
8
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/workflows/labeler.yml
vendored
Normal file
8
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/workflows/labeler.yml
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
name: "PR Labeler"
|
||||
on:
|
||||
- pull_request_target
|
||||
|
||||
jobs:
|
||||
labeler:
|
||||
uses: folke/github/.github/workflows/labeler.yml@main
|
||||
secrets: inherit
|
||||
18
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/workflows/pr.yml
vendored
Normal file
18
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/workflows/pr.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
name: PR Title
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
- synchronize
|
||||
- reopened
|
||||
- ready_for_review
|
||||
|
||||
permissions:
|
||||
pull-requests: read
|
||||
|
||||
jobs:
|
||||
pr-title:
|
||||
uses: folke/github/.github/workflows/pr.yml@main
|
||||
secrets: inherit
|
||||
11
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/workflows/stale.yml
vendored
Normal file
11
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/workflows/stale.yml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
name: Stale Issues & PRs
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "30 1 * * *"
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
if: contains(fromJSON('["folke", "LazyVim"]'), github.repository_owner)
|
||||
uses: folke/github/.github/workflows/stale.yml@main
|
||||
secrets: inherit
|
||||
13
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/workflows/update.yml
vendored
Normal file
13
config/neovim/store/lazy-plugins/todo-comments.nvim/.github/workflows/update.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
name: Update Repo
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
# Run every hour
|
||||
- cron: "0 * * * *"
|
||||
|
||||
jobs:
|
||||
update:
|
||||
if: contains(fromJSON('["folke", "LazyVim"]'), github.repository_owner)
|
||||
uses: folke/github/.github/workflows/update.yml@main
|
||||
secrets: inherit
|
||||
@ -0,0 +1,29 @@
|
||||
local Config = require("todo-comments.config")
|
||||
local Grep = require("fzf-lua.providers.grep")
|
||||
|
||||
local M = {}
|
||||
|
||||
---@param filter? string|string[]
|
||||
local function keywords_filter(filter)
|
||||
local all = vim.tbl_keys(Config.keywords)
|
||||
if not filter then
|
||||
return all
|
||||
end
|
||||
local filters = type(filter) == "string" and { filter } or filter
|
||||
return vim.tbl_filter(function(kw)
|
||||
return vim.tbl_contains(filters, kw)
|
||||
end, all)
|
||||
end
|
||||
|
||||
---@param opts? {keywords: string[]}
|
||||
function M.todo(opts)
|
||||
opts = vim.tbl_extend("force", {
|
||||
no_esc = true,
|
||||
multiline = true,
|
||||
}, opts or {})
|
||||
opts.no_esc = true
|
||||
opts.search = Config.search_regex(keywords_filter(opts.keywords))
|
||||
return Grep.grep(opts)
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user