Compare commits

..

No commits in common. "v2.0.0" and "v1.0.0" have entirely different histories.

3 changed files with 30 additions and 54 deletions

View file

@ -1,15 +0,0 @@
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Create Release
uses: https://git.kjan.de/actions/semantic-release@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}

View file

@ -1,6 +1,7 @@
--- JQuote: A Neovim plugin for cycling through quote characters
--- @module jquote
--- @author Jan
--- @author Author Name
--- @version 1.0.0
--- @license MIT
local M = {}
@ -23,6 +24,7 @@ M.options = vim.deepcopy(DEFAULT_OPTIONS)
--- Plugin metadata
--- @type table
M._version = "1.0.0"
M._name = "jquote"
--- Validates if a character is one of the configured quote characters
@ -63,7 +65,7 @@ local function find_quoted_string_at_cursor(line, cursor_col)
if is_defined_quote_char(char) then
table.insert(quote_positions, {
char = char,
index = i - 1 -- Convert to 0-based indexing
index = i - 1 -- Convert to 0-based indexing
})
end
end
@ -76,7 +78,7 @@ local function find_quoted_string_at_cursor(line, cursor_col)
-- Match opening and closing quotes of same type
if start_quote.char == end_quote.char then
if (cursor_col >= start_quote.index and cursor_col <= end_quote.index) or (cursor_col <= start_quote.index and cursor_col <= end_quote.index) then
if cursor_col >= start_quote.index and cursor_col <= end_quote.index then
return start_quote.index, end_quote.index, start_quote.char
end
@ -246,6 +248,7 @@ end
--- @return table health_info Plugin health information
function M.health()
local health_info = {
version = M._version,
options = M.options,
quote_chars_count = M.options.quote_chars and #M.options.quote_chars or 0,
hotkey_configured = M.options.hotkey ~= nil,

View file

@ -1,12 +0,0 @@
module.exports = {
branches: ['main'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
["@saithodev/semantic-release-gitea", {
"giteaUrl": "https://git.kjan.de"
}],
],
};