astro-nvim-v3 - distant api

This commit is contained in:
huyjaky
2024-07-31 14:54:26 +07:00
parent 814a789a01
commit e981a24069
6 changed files with 140 additions and 30 deletions

View File

@@ -31,31 +31,31 @@ return {
end,
},
-- File tagging and navigation
{
"cbochs/grapple.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
{
"AstroNvim/astrocore",
opts = function(_, opts)
opts.mappings.n["<Leader><Leader>"] = { desc = require("astroui").get_icon("Grapple", 1, true) .. "Grapple" }
end,
},
},
opts = {
scope = "git_branch",
},
cmd = { "Grapple" },
keys = {
{ "<Leader><Leader>a", "<Cmd>Grapple tag<CR>", desc = "Add tag to file" },
{ "<Leader><Leader>d", "<Cmd>Grapple untag<CR>", desc = "Delete tag from file" },
{ "<Leader><Leader>e", "<Cmd>Grapple toggle_tags<CR>", desc = "Select from tags" },
{ "<Leader><Leader>s", "<Cmd>Grapple toggle_scopes<CR>", desc = "Select a project scope" },
{ "<Leader><Leader>x", "<Cmd>Grapple reset<CR>", desc = "Clear tags" },
{ "<C-e>", "<Cmd>Grapple cycle forward<CR>", desc = "Select next tag" },
{ "<C-p>", "<Cmd>Grapple cycle backward<CR>", desc = "Select previous tag" },
},
},
-- {
-- "cbochs/grapple.nvim",
-- dependencies = {
-- "nvim-lua/plenary.nvim",
-- {
-- "AstroNvim/astrocore",
-- opts = function(_, opts)
-- opts.mappings.n["<Leader><Leader>"] = { desc = require("astroui").get_icon("Grapple", 1, true) .. "Grapple" }
-- end,
-- },
-- },
-- opts = {
-- scope = "git_branch",
-- },
-- cmd = { "Grapple" },
-- keys = {
-- { "<Leader><Leader>a", "<Cmd>Grapple tag<CR>", desc = "Add tag to file" },
-- { "<Leader><Leader>d", "<Cmd>Grapple untag<CR>", desc = "Delete tag from file" },
-- { "<Leader><Leader>e", "<Cmd>Grapple toggle_tags<CR>", desc = "Select from tags" },
-- { "<Leader><Leader>s", "<Cmd>Grapple toggle_scopes<CR>", desc = "Select a project scope" },
-- { "<Leader><Leader>x", "<Cmd>Grapple reset<CR>", desc = "Clear tags" },
-- { "<C-e>", "<Cmd>Grapple cycle forward<CR>", desc = "Select next tag" },
-- { "<C-p>", "<Cmd>Grapple cycle backward<CR>", desc = "Select previous tag" },
-- },
-- },
-- Better escape support
-- {
-- "max397574/better-escape.nvim",
@@ -84,14 +84,14 @@ return {
delay = 25,
},
indent = {
enable = true,
enable = false,
use_treesitter = true,
chars = {
"",
},
},
blank = {
enable = true,
enable = false,
chars = {
" ",
},