safety commit
This commit is contained in:
parent
de7a95c890
commit
60b2622659
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
local/
|
local/
|
||||||
|
.aider*
|
||||||
|
|||||||
@ -94,11 +94,10 @@ set -g @tpm_plugins ' \
|
|||||||
set-option -g set-clipboard on
|
set-option -g set-clipboard on
|
||||||
# bind C-c run "tmux save-buffer - | xclip -selection clipboard"
|
# bind C-c run "tmux save-buffer - | xclip -selection clipboard"
|
||||||
#
|
#
|
||||||
bind-key v capture-pane -S -1000 \; save-buffer /tmp/tmux-buffer \; new-window -n '[scrollback]' 'n /tmp/tmux-buffer; rm /tmp/tmux-buffer; tmux kill-window'
|
# bind-key v capture-pane -S -1000 \; save-buffer /tmp/tmux-buffer \; new-window -n '[scrollback]' 'n /tmp/tmux-buffer; rm /tmp/tmux-buffer; tmux kill-window'
|
||||||
|
|
||||||
# bind-key v capture-pane -S -1000 \; save-buffer /tmp/tmux-buffer \; split-window -h "nvim /tmp/tmux-buffer"
|
# bind-key v capture-pane -S -1000 \; save-buffer /tmp/tmux-buffer \; split-window -h "nvim /tmp/tmux-buffer"
|
||||||
#
|
#
|
||||||
|
|
||||||
bind C-c copy-mode
|
bind C-c copy-mode
|
||||||
bind C-v run "tmux set-buffer \"$(xclip -selection clipboard -o)\"; tmux paste-buffer"
|
bind C-v run "tmux set-buffer \"$(xclip -selection clipboard -o)\"; tmux paste-buffer"
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extras": [
|
"extras": [
|
||||||
|
|
||||||
],
|
],
|
||||||
"install_version": 7,
|
"install_version": 7,
|
||||||
"news": {
|
"news": {
|
||||||
|
|||||||
@ -25,3 +25,10 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
-- END TODO APP MAPPINGS
|
-- END TODO APP MAPPINGS
|
||||||
|
--
|
||||||
|
-- vim.api.nvim_create_autocmd("User", {
|
||||||
|
-- pattern = "BlinkCmpMenuOpen",
|
||||||
|
-- callback = function()
|
||||||
|
-- vim.b.copilot_suggestion_hidden = false
|
||||||
|
-- end,
|
||||||
|
-- })
|
||||||
|
|||||||
@ -108,6 +108,7 @@ map("n", "<leader>agr", "<cmd>GpChatRespond<cr>", { desc = "gp chat respond" })
|
|||||||
|
|
||||||
-- JSON FORMAT
|
-- JSON FORMAT
|
||||||
map("n", "<leader>cjf", "<cmd>%!jq .<cr>", { desc = "Json Format" })
|
map("n", "<leader>cjf", "<cmd>%!jq .<cr>", { desc = "Json Format" })
|
||||||
|
vim.keymap.set("n", "s", "<Plug>(leap-anywhere)")
|
||||||
|
|
||||||
local function jump_to_file_line()
|
local function jump_to_file_line()
|
||||||
local line = vim.api.nvim_get_current_line()
|
local line = vim.api.nvim_get_current_line()
|
||||||
@ -241,3 +242,14 @@ function choose_timer()
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Remap arrow keys to hjkl in Normal and Visual modes
|
||||||
|
vim.keymap.set({ "n", "v" }, "<Up>", "k", { noremap = true, silent = true })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<Down>", "j", { noremap = true, silent = true })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<Left>", "h", { noremap = true, silent = true })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<Right>", "l", { noremap = true, silent = true })
|
||||||
|
|
||||||
|
vim.keymap.set({ "n", "v" }, "<C-Up>", "k", { noremap = true, silent = true })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<C-Down>", "j", { noremap = true, silent = true })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<C-Left>", "h", { noremap = true, silent = true })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<C-Right>", "l", { noremap = true, silent = true })
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"olimorris/codecompanion.nvim",
|
"olimorris/codecompanion.nvim",
|
||||||
|
enabled = vim.loop.os_uname().sysname == "Darwin",
|
||||||
opts = {},
|
opts = {},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
@ -8,6 +9,7 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"zbirenbaum/copilot.lua",
|
"zbirenbaum/copilot.lua",
|
||||||
|
enabled = vim.loop.os_uname().sysname == "Darwin",
|
||||||
optional = false,
|
optional = false,
|
||||||
opts = function()
|
opts = function()
|
||||||
require("copilot.api").status = require("copilot.status")
|
require("copilot.api").status = require("copilot.status")
|
||||||
|
|||||||
@ -6,6 +6,20 @@ local function masterBranch(dep)
|
|||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
-- {
|
||||||
|
-- "folke/flash.nvim",
|
||||||
|
-- event = "VeryLazy",
|
||||||
|
-- ---@type Flash.Config
|
||||||
|
-- opts = {},
|
||||||
|
-- -- stylua: ignore
|
||||||
|
-- keys = {
|
||||||
|
-- { "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
|
||||||
|
-- { "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
|
||||||
|
-- { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
|
||||||
|
-- { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
|
||||||
|
-- { "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
opts = {
|
opts = {
|
||||||
@ -253,11 +267,11 @@ return {
|
|||||||
ollama = {
|
ollama = {
|
||||||
endpoint = "http://localhost:11434/v1/chat/completions",
|
endpoint = "http://localhost:11434/v1/chat/completions",
|
||||||
},
|
},
|
||||||
openai = {
|
openrouter = {
|
||||||
endpoint = "https://api.openai.com/v1/chat/completions",
|
endpoint = "https://openrouter.ai/api/v1",
|
||||||
secret = {
|
secret = {
|
||||||
"echo ",
|
"echo ",
|
||||||
"$OPENAI_API_KEY",
|
"$OPENROUTER_API_KEY",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -16,10 +16,10 @@ return {
|
|||||||
{
|
{
|
||||||
"rebelot/kanagawa.nvim",
|
"rebelot/kanagawa.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
theme = "lotus",
|
theme = "wave",
|
||||||
background = {
|
background = {
|
||||||
dark = "lotus",
|
dark = "wave",
|
||||||
light = "lotus",
|
light = "wave",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user