Refresh generated neovim config
This commit is contained in:
@ -6,7 +6,10 @@ body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
**Before** reporting an issue, make sure to read the [documentation](https://github.com/folke/todo-comments.nvim) and search [existing issues](https://github.com/folke/todo-comments.nvim/issues). Usage questions such as ***"How do I...?"*** belong in [Discussions](https://github.com/folke/todo-comments.nvim/discussions) and will be closed.
|
||||
**Before** reporting an issue, make sure to read the [documentation](https://github.com/folke/todo-comments.nvim)
|
||||
and search [existing issues](https://github.com/folke/todo-comments.nvim/issues).
|
||||
|
||||
Usage questions such as ***"How do I...?"*** belong in [Discussions](https://github.com/folke/todo-comments.nvim/discussions) and will be closed.
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Did you check docs and existing issues?
|
||||
@ -14,6 +17,8 @@ body:
|
||||
options:
|
||||
- label: I have read all the todo-comments.nvim docs
|
||||
required: true
|
||||
- label: I have updated the plugin to the latest version before submitting this issue
|
||||
required: true
|
||||
- label: I have searched the existing issues of todo-comments.nvim
|
||||
required: true
|
||||
- label: I have searched the existing issues of plugins related to this issue
|
||||
@ -57,33 +62,15 @@ body:
|
||||
label: Repro
|
||||
description: Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua`
|
||||
value: |
|
||||
-- DO NOT change the paths and don't remove the colorscheme
|
||||
local root = vim.fn.fnamemodify("./.repro", ":p")
|
||||
vim.env.LAZY_STDPATH = ".repro"
|
||||
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
|
||||
|
||||
-- set stdpaths to use .repro
|
||||
for _, name in ipairs({ "config", "data", "state", "cache" }) do
|
||||
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
|
||||
end
|
||||
|
||||
-- bootstrap lazy
|
||||
local lazypath = root .. "/plugins/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
|
||||
end
|
||||
vim.opt.runtimepath:prepend(lazypath)
|
||||
|
||||
-- install plugins
|
||||
local plugins = {
|
||||
"folke/tokyonight.nvim",
|
||||
"folke/todo-comments.nvim",
|
||||
-- add any other plugins here
|
||||
}
|
||||
require("lazy").setup(plugins, {
|
||||
root = root .. "/plugins",
|
||||
require("lazy.minit").repro({
|
||||
spec = {
|
||||
{ "folke/todo-comments.nvim", opts = {} },
|
||||
-- add any other plugins here
|
||||
},
|
||||
})
|
||||
|
||||
vim.cmd.colorscheme("tokyonight")
|
||||
-- add anything else here
|
||||
render: Lua
|
||||
render: lua
|
||||
validations:
|
||||
required: false
|
||||
|
||||
@ -1,72 +1,14 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
strategy:
|
||||
matrix:
|
||||
# os: [ubuntu-latest, windows-latest]
|
||||
os: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Neovim
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p /tmp/nvim
|
||||
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
|
||||
cd /tmp/nvim
|
||||
chmod a+x ./nvim.appimage
|
||||
./nvim.appimage --appimage-extract
|
||||
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
|
||||
- name: Run Tests
|
||||
run: |
|
||||
nvim --version
|
||||
[ ! -d tests ] && exit 0
|
||||
nvim --headless -u tests/init.lua -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/init.lua', sequential = true}"
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: tests
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: panvimdoc
|
||||
uses: kdheepak/panvimdoc@main
|
||||
with:
|
||||
vimdoc: todo-comments.nvim
|
||||
version: "Neovim >= 0.8.0"
|
||||
demojify: true
|
||||
treesitter: true
|
||||
- name: Push changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "chore(build): auto-generate vimdoc"
|
||||
commit_user_name: "github-actions[bot]"
|
||||
commit_user_email: "github-actions[bot]@users.noreply.github.com"
|
||||
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
|
||||
release:
|
||||
name: release
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
needs:
|
||||
- docs
|
||||
- tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: google-github-actions/release-please-action@v3
|
||||
id: release
|
||||
with:
|
||||
release-type: simple
|
||||
package-name: todo-comments.nvim
|
||||
- uses: actions/checkout@v3
|
||||
- name: tag stable versions
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
run: |
|
||||
git config user.name github-actions[bot]
|
||||
git config user.email github-actions[bot]@users.noreply.github.com
|
||||
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
|
||||
git tag -d stable || true
|
||||
git push origin :stable || true
|
||||
git tag -a stable -m "Last Stable Release"
|
||||
git push origin stable
|
||||
ci:
|
||||
uses: folke/github/.github/workflows/ci.yml@main
|
||||
secrets: inherit
|
||||
with:
|
||||
plugin: todo-comments.nvim
|
||||
repo: folke/todo-comments.nvim
|
||||
|
||||
@ -1,8 +1,9 @@
|
||||
tt.*
|
||||
.tests
|
||||
doc/tags
|
||||
debug
|
||||
.repro
|
||||
foo.*
|
||||
*.log
|
||||
data
|
||||
/.repro
|
||||
/.tests
|
||||
/build
|
||||
/debug
|
||||
/doc/tags
|
||||
foo.*
|
||||
node_modules
|
||||
tt.*
|
||||
|
||||
@ -1,5 +1,30 @@
|
||||
# Changelog
|
||||
|
||||
## [1.3.0](https://github.com/folke/todo-comments.nvim/compare/v1.2.0...v1.3.0) (2024-07-07)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* added support for fzf-lua ([fe5a7c6](https://github.com/folke/todo-comments.nvim/commit/fe5a7c66d77bcb3895acda55b9fa4519110eb154))
|
||||
* **fzf:** multiline by default ([8fdea2a](https://github.com/folke/todo-comments.nvim/commit/8fdea2acf78aa16b3881aa801853fa86b02c2fd8))
|
||||
* **highlight:** allow extended highlighting patterns ([#185](https://github.com/folke/todo-comments.nvim/issues/185)) ([#255](https://github.com/folke/todo-comments.nvim/issues/255)) ([76c8fee](https://github.com/folke/todo-comments.nvim/commit/76c8feeda805db77b6ffb222a79661236d7a2aba))
|
||||
* **highlight:** allow highlighting the full pattern ([#180](https://github.com/folke/todo-comments.nvim/issues/180)) ([ad775a7](https://github.com/folke/todo-comments.nvim/commit/ad775a7ed187761c56d14421cecab44a0656028d))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* don't use tbl_flatten. Fixes [#272](https://github.com/folke/todo-comments.nvim/issues/272) ([9c104cf](https://github.com/folke/todo-comments.nvim/commit/9c104cf7868f1c739b43a07e5593666cc9de2d67))
|
||||
* **extension:** provide default icon ([#274](https://github.com/folke/todo-comments.nvim/issues/274)) ([7de4e85](https://github.com/folke/todo-comments.nvim/commit/7de4e85211e3301572393f4b4957bff463f188fc)), closes [#202](https://github.com/folke/todo-comments.nvim/issues/202)
|
||||
* **highlight:** match to the end of length `#matched` ([#288](https://github.com/folke/todo-comments.nvim/issues/288)) ([a40fa7e](https://github.com/folke/todo-comments.nvim/commit/a40fa7e421a0c363f65db204f5f0ac075d3a8967))
|
||||
* **telecope:** icons highlight. ([#279](https://github.com/folke/todo-comments.nvim/issues/279)) ([4573f4f](https://github.com/folke/todo-comments.nvim/commit/4573f4f1f167a2f928a46043c7fea6d1cf333fb9))
|
||||
* ternary evaluation in setlist for opts.open ([#252](https://github.com/folke/todo-comments.nvim/issues/252)) ([c7a6a02](https://github.com/folke/todo-comments.nvim/commit/c7a6a02823ca4cbecfee3c2a32d8674573308014))
|
||||
* **trouble:** compatibility with Trouble v3 ([#286](https://github.com/folke/todo-comments.nvim/issues/286)) ([01b4599](https://github.com/folke/todo-comments.nvim/commit/01b4599b36ea873305a993c93cb6186cb03a51e7))
|
||||
|
||||
|
||||
### Reverts
|
||||
|
||||
* feat(highlight): allow highlighting the full pattern ([#180](https://github.com/folke/todo-comments.nvim/issues/180)) ([996d1a7](https://github.com/folke/todo-comments.nvim/commit/996d1a71d634bfc934d52021a0db99ee99add7c2))
|
||||
|
||||
## [1.2.0](https://github.com/folke/todo-comments.nvim/compare/v1.1.0...v1.2.0) (2024-03-27)
|
||||
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*todo-comments.nvim.txt* For Neovim >= 0.8.0 Last change: 2024 June 12
|
||||
*todo-comments.nvim.txt* For Neovim Last change: 2024 July 22
|
||||
|
||||
==============================================================================
|
||||
Table of Contents *todo-comments.nvim-table-of-contents*
|
||||
|
||||
@ -4,10 +4,10 @@ if not has_telescope then
|
||||
error("This plugins requires nvim-telescope/telescope.nvim")
|
||||
end
|
||||
|
||||
local pickers = require("telescope.builtin")
|
||||
local Config = require("todo-comments.config")
|
||||
local Highlight = require("todo-comments.highlight")
|
||||
local make_entry = require("telescope.make_entry")
|
||||
local pickers = require("telescope.builtin")
|
||||
|
||||
local function keywords_filter(opts_keywords)
|
||||
assert(not opts_keywords or type(opts_keywords) == "string", "'keywords' must be a comma separated string or nil")
|
||||
@ -41,9 +41,9 @@ local function todo(opts)
|
||||
|
||||
if start then
|
||||
kw = Config.keywords[kw] or kw
|
||||
local icon = Config.options.keywords[kw].icon or ' '
|
||||
local icon = Config.options.keywords[kw].icon or " "
|
||||
display = icon .. " " .. display
|
||||
table.insert(hl, { { 1, #icon + 1 }, "TodoFg" .. kw })
|
||||
table.insert(hl, { { 0, #icon + 1 }, "TodoFg" .. kw })
|
||||
text = vim.trim(text:sub(start))
|
||||
|
||||
table.insert(hl, {
|
||||
|
||||
@ -46,9 +46,10 @@ function M.match(str, patterns)
|
||||
for _, pattern in pairs(patterns) do
|
||||
local m = vim.fn.matchlist(str, [[\v\C]] .. pattern)
|
||||
if #m > 1 and m[2] then
|
||||
local kw = m[2]
|
||||
local start = str:find(kw)
|
||||
return start, start + #kw, kw
|
||||
local match = m[2]
|
||||
local kw = m[3] ~= "" and m[3] or m[2]
|
||||
local start = str:find(match, 1, true)
|
||||
return start, start + #match, kw
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -387,7 +388,6 @@ function M.start()
|
||||
[[augroup Todo
|
||||
autocmd!
|
||||
autocmd BufWinEnter,WinNew * lua require("todo-comments.highlight").attach()
|
||||
autocmd BufWritePost * silent! lua require'trouble'.refresh({auto = true, provider = "todo"})
|
||||
autocmd WinScrolled * lua require("todo-comments.highlight").highlight_win()
|
||||
autocmd ColorScheme * lua vim.defer_fn(require("todo-comments.config").colors, 10)
|
||||
augroup end]],
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
local highlight = require("todo-comments.highlight")
|
||||
local config = require("todo-comments.config")
|
||||
local highlight = require("todo-comments.highlight")
|
||||
local util = require("todo-comments.util")
|
||||
|
||||
local M = {}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
local Config = require("todo-comments.config")
|
||||
local Search = require("todo-comments.search")
|
||||
local util = require("trouble.util")
|
||||
local Config = require("todo-comments.config")
|
||||
|
||||
local function todo(_win, _buf, cb, opts)
|
||||
Search.search(function(results)
|
||||
|
||||
@ -1 +1,4 @@
|
||||
std="vim"
|
||||
|
||||
[lints]
|
||||
mixed_table="allow"
|
||||
|
||||
@ -8,42 +8,14 @@ any = true
|
||||
[jit]
|
||||
any = true
|
||||
|
||||
[[describe.args]]
|
||||
type = "string"
|
||||
[[describe.args]]
|
||||
type = "function"
|
||||
|
||||
[[it.args]]
|
||||
type = "string"
|
||||
[[it.args]]
|
||||
type = "function"
|
||||
|
||||
[[before_each.args]]
|
||||
type = "function"
|
||||
[[after_each.args]]
|
||||
type = "function"
|
||||
|
||||
[assert.is_not]
|
||||
[assert]
|
||||
any = true
|
||||
|
||||
[[assert.equals.args]]
|
||||
type = "any"
|
||||
[[assert.equals.args]]
|
||||
type = "any"
|
||||
[[assert.equals.args]]
|
||||
type = "any"
|
||||
required = false
|
||||
[describe]
|
||||
any = true
|
||||
|
||||
[[assert.same.args]]
|
||||
type = "any"
|
||||
[[assert.same.args]]
|
||||
type = "any"
|
||||
[it]
|
||||
any = true
|
||||
|
||||
[[assert.truthy.args]]
|
||||
type = "any"
|
||||
|
||||
[[assert.spy.args]]
|
||||
type = "any"
|
||||
|
||||
[[assert.stub.args]]
|
||||
type = "any"
|
||||
[before_each.args]
|
||||
any = true
|
||||
|
||||
Reference in New Issue
Block a user