Compare commits

..

No commits in common. "5c7b8ed564edb215479b16f822a13da7683e0bfa" and "6106cfcbdee569fa0e4d6214d0f9f3440a161f2d" have entirely different histories.

6 changed files with 35 additions and 85 deletions

View file

@ -3,7 +3,6 @@
"FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" },
"Navigator.nvim": { "branch": "master", "commit": "91d86506ac2a039504d5205d32a1d4bc7aa57072" },
"bats.vim": { "branch": "master", "commit": "6a5d2ef22b0ede503d867770afd02ebb1f97b709" },
"blink-copilot": { "branch": "main", "commit": "41e91a659bd9b8cba9ba2ea68a69b52ba5a9ebd8" },
"blink.cmp": { "branch": "main", "commit": "9bcb14b43852a6f2bfd5ac9ef29cb5cf09b1b39b" },
"blink.compat": { "branch": "main", "commit": "2ed6d9a28b07fa6f3bface818470605f8896408c" },
"cmp-calc": { "branch": "main", "commit": "5947b412da67306c5b68698a02a846760059be2e" },

View file

@ -2,79 +2,22 @@ return {
{
-- NOTE: Requires manual auth with ':Copilot auth' or 'GH_COPILOT_TOKEN' set as envvar
"zbirenbaum/copilot.lua",
dependencies = {
"AndreM222/copilot-lualine",
{ -- show completions in blink
"saghen/blink.cmp",
optional = true,
dependencies = {
{
"fang2hou/blink-copilot",
opts = {
auto_refresh = {
backward = false,
forward = false,
},
},
},
},
opts = {
sources = {
default = { "copilot" },
providers = {
copilot = {
name = "copilot",
module = "blink-copilot",
score_offset = 100,
async = true,
},
},
},
},
},
},
dependencies = { "AndreM222/copilot-lualine" },
cmd = "Copilot",
event = { "InsertEnter", "VeryLazy" },
event = "InsertEnter",
opts = {
panel = { layout = { position = "bottom" } },
suggestion = { keymap = { accept = "<M-p>" } },
logger = { print_log_level = vim.log.levels.ERROR },
},
config = function(_, opts)
require("copilot").setup(opts)
-- TODO: See also https://github.com/zbirenbaum/copilot.lua/issues/302 for potential
-- better solutions.
-- TODO: also Find way of having a 'toggle' for mapping below.
-- Current copilot.lua exposed 'toggle' command does NOT do the same.
require("copilot.command").disable()
end,
keys = {
{
"<leader>aC",
function()
require("copilot.panel").setup()
require("copilot.panel").open({})
require("copilot.panel").refresh()
end,
desc = "Open copilot panel",
silent = true,
mode = { "n" },
},
{
"<leader>ap",
function()
require("copilot.command").enable()
-- FIXME: If opening before lazy-loaded, errors
require("copilot.panel").open({})
require("copilot.panel").refresh()
end,
desc = "Enable copilot",
silent = true,
mode = { "n" },
},
{
"<leader>aP",
function()
require("copilot.command").disable()
end,
desc = "Disable copilot",
desc = "Refresh Copilot Panel",
silent = true,
mode = { "n" },
},

View file

@ -90,8 +90,6 @@ l = :view<Enter>
<space>w = :filter tag:wait<Enter>
<space>l = :filter tag:delegated<Enter>
<space>k = :terminal ikhal<Enter>
d = :move Trash<Enter>
D = :choose -o y 'Really delete this message' :delete<Enter>
a = :archive flat<Enter> # archive message
@ -211,8 +209,7 @@ x = :encrypt<Enter> # Toggle encryption to all recipients
v = :preview<Enter> # Preview message
p = :postpone<Enter> # Postpone
q = :choose -o d discard abort -o p postpone postpone<Enter> # Abort or postpone
e = :edit -e<Enter> # Edit, headers in-message
E = :edit -E<Enter> # Edit, body and headers separate
e = :edit<Enter> # Edit (body and headers)
a = :attach -m<Enter> # Add attachment
d = :detach<space> # Remove attachment

View file

@ -0,0 +1,27 @@
#!/usr/bin/env sh
#
# Wraps around the calcurse invocation and syncs calendar data
# to local vdir - given by default below.
#
# For now ONLY PROVIDES ONE-WAY Synchronization, see below.
# The path in which *the calendars* reside (i.e. toplevel with access to all paths)
CAL_PATH="$HOME/documents/calendars"
calcurse() {
find "$CAL_PATH" -maxdepth 1 -type d -exec calcurse-vdir import {} \;
}
# Enable two-way sync. One issue is that calcurse would sync everything
# into the top-level path (or the selected calendar path) since it makes
# not the same differentiation as the vdir between calendars.
# FIXME Not sure how to resolve currently.
#
# The below works as a simple two-way synchronization on exiting calcurse.
# To function the invocation has to be turned from a function above to an
# executable shell-script file instead.
# trap 'calcurse_export' 0
#
# calcurse_export() {
# calcurse-vdir export "$CAL_PATH"
# }

View file

@ -1,3 +0,0 @@
# yaml-language-server: $schema=https://carapace.sh/schemas/command.json
name: cat
run: "[bat]"

View file

@ -52,19 +52,6 @@ local keys = {
mods = "LEADER|CTRL",
action = act.PaneSelect({ mode = "MoveToNewTab" }),
},
{
key = "R",
mods = "LEADER",
action = act.PromptInputLine({
description = "Enter new name for tab",
action = wezterm.action_callback(function(win, _, line)
if line then
win:active_tab():set_title(line)
end
end),
}),
},
{ key = "c", mods = "LEADER", action = act.SpawnTab("CurrentPaneDomain") },
{ key = ",", mods = "LEADER", action = act.ActivateTabRelative(-1) },
{ key = ".", mods = "LEADER", action = act.ActivateTabRelative(1) }, -- workspace selection
@ -75,7 +62,6 @@ local keys = {
mods = "LEADER",
action = act.ShowLauncherArgs({ flags = "FUZZY|WORKSPACES" }),
},
{ key = "t", mods = "LEADER", action = act.EmitEvent("toggle-tabbar") },
{ key = "T", mods = "LEADER", action = act.ShowTabNavigator },
{ key = "[", mods = "LEADER", action = act.ActivateCopyMode },
{
@ -119,6 +105,7 @@ local keys = {
},
{ key = "e", mods = "LEADER", action = act.EmitEvent("edit-scrollback") },
{ key = "a", mods = "CTRL|ALT", action = act.EmitEvent("toggle-leader") },
{ key = "t", mods = "LEADER", action = act.EmitEvent("toggle-tabbar") },
{
key = ":",
mods = "LEADER|SHIFT",