diff options
Diffstat (limited to 'mac/.config')
| -rw-r--r-- | mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua | 47 | ||||
| -rw-r--r-- | mac/.config/git/attributes | 186 | ||||
| -rw-r--r-- | mac/.config/kitty/kitty.conf | 10 |
3 files changed, 145 insertions, 98 deletions
diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua index 6ff4ac6..52ceb01 100644 --- a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua +++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua @@ -260,6 +260,53 @@ return { }, }, { + "NickvanDyke/opencode.nvim", + dependencies = { + -- Recommended for `ask()` and `select()`. + -- Required for `snacks` provider. + ---@module 'snacks' <- Loads `snacks.nvim` types for configuration intellisense. + { "folke/snacks.nvim", opts = { input = {}, picker = {}, terminal = {} } }, + }, + config = function() + ---@type opencode.Opts + vim.g.opencode_opts = { + -- Your configuration, if any — see `lua/opencode/config.lua`, or "goto definition". + } + + -- Required for `opts.events.reload`. + vim.o.autoread = true + + -- Recommended/example keymaps. + vim.keymap.set({ "n", "x" }, "<C-a>", function() + require("opencode").ask("@this: ", { submit = true }) + end, { desc = "Ask opencode" }) + vim.keymap.set({ "n", "x" }, "<C-x>", function() + require("opencode").select() + end, { desc = "Execute opencode action…" }) + vim.keymap.set({ "n", "t" }, "<C-.>", function() + require("opencode").toggle() + end, { desc = "Toggle opencode" }) + + vim.keymap.set({ "n", "x" }, "go", function() + return require("opencode").operator("@this ") + end, { expr = true, desc = "Add range to opencode" }) + vim.keymap.set("n", "goo", function() + return require("opencode").operator("@this ") .. "_" + end, { expr = true, desc = "Add line to opencode" }) + + vim.keymap.set("n", "<S-C-u>", function() + require("opencode").command("session.half.page.up") + end, { desc = "opencode half page up" }) + vim.keymap.set("n", "<S-C-d>", function() + require("opencode").command("session.half.page.down") + end, { desc = "opencode half page down" }) + + -- You may want these if you stick with the opinionated "<C-a>" and "<C-x>" above — otherwise consider "<leader>o". + vim.keymap.set("n", "+", "<C-a>", { desc = "Increment", noremap = true }) + vim.keymap.set("n", "-", "<C-x>", { desc = "Decrement", noremap = true }) + end, + }, + { "kkrampis/codex.nvim", lazy = true, cmd = { "Codex", "CodexToggle" }, -- Optional: Load only on command execution diff --git a/mac/.config/git/attributes b/mac/.config/git/attributes index 70700a1..03b6667 100644 --- a/mac/.config/git/attributes +++ b/mac/.config/git/attributes @@ -1,95 +1,95 @@ -# Common settings that generally should always be used with your language specific settings - -# Auto detect text files and perform LF normalization -* text=auto eol=lf - +# # Common settings that generally should always be used with your language specific settings # -# The above will handle all files NOT found below +# # Auto detect text files and perform LF normalization +# * text=auto eol=lf # - -# Documents -*.bibtex text diff=bibtex -*.doc diff=astextplain -*.DOC diff=astextplain -*.docx diff=astextplain -*.DOCX diff=astextplain -*.dot diff=astextplain -*.DOT diff=astextplain -*.pdf diff=astextplain -*.PDF diff=astextplain -*.rtf diff=astextplain -*.RTF diff=astextplain -*.md text diff=markdown -*.mdx text diff=markdown -*.tex text diff=tex -*.adoc text -*.textile text -*.mustache text -*.csv text eol=crlf -*.tab text -*.tsv text -*.txt text -*.sql text eol=lf -*.epub diff=astextplain - -# Graphics -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.tif binary -*.tiff binary -*.ico binary -# SVG treated as text by default. -# *.svg text -# If you want to treat it as binary, -# use the following line instead. -*.svg binary -*.eps binary - -# Scripts -*.bash text eol=lf -*.fish text eol=lf -*.ksh text eol=lf -*.sh text eol=lf -*.zsh text eol=lf -# These are explicitly windows files and should use crlf -# *.bat text eol=crlf -# *.cmd text eol=crlf -# *.ps1 text eol=crlf - -# Serialisation -*.json text -*.toml text -*.xml text -*.yaml text -*.yml text - -# Archives -*.7z binary -*.bz binary -*.bz2 binary -*.bzip2 binary -*.gz binary -*.lz binary -*.lzma binary -*.rar binary -*.tar binary -*.taz binary -*.tbz binary -*.tbz2 binary -*.tgz binary -*.tlz binary -*.txz binary -*.xz binary -*.Z binary -*.zip binary -*.zst binary - -# Text files where line endings should be preserved -*.patch -text - -# Exclude files from exporting -.gitattributes export-ignore -.gitignore export-ignore -.gitkeep export-ignore +# # +# # The above will handle all files NOT found below +# # +# +# # Documents +# *.bibtex text diff=bibtex +# *.doc diff=astextplain +# *.DOC diff=astextplain +# *.docx diff=astextplain +# *.DOCX diff=astextplain +# *.dot diff=astextplain +# *.DOT diff=astextplain +# *.pdf diff=astextplain +# *.PDF diff=astextplain +# *.rtf diff=astextplain +# *.RTF diff=astextplain +# *.md text diff=markdown +# *.mdx text diff=markdown +# *.tex text diff=tex +# *.adoc text +# *.textile text +# *.mustache text +# *.csv text eol=crlf +# *.tab text +# *.tsv text +# *.txt text +# *.sql text eol=lf +# *.epub diff=astextplain +# +# # Graphics +# *.png binary +# *.jpg binary +# *.jpeg binary +# *.gif binary +# *.tif binary +# *.tiff binary +# *.ico binary +# # SVG treated as text by default. +# # *.svg text +# # If you want to treat it as binary, +# # use the following line instead. +# *.svg binary +# *.eps binary +# +# # Scripts +# *.bash text eol=lf +# *.fish text eol=lf +# *.ksh text eol=lf +# *.sh text eol=lf +# *.zsh text eol=lf +# # These are explicitly windows files and should use crlf +# # *.bat text eol=crlf +# # *.cmd text eol=crlf +# # *.ps1 text eol=crlf +# +# # Serialisation +# *.json text +# *.toml text +# *.xml text +# *.yaml text +# *.yml text +# +# # Archives +# *.7z binary +# *.bz binary +# *.bz2 binary +# *.bzip2 binary +# *.gz binary +# *.lz binary +# *.lzma binary +# *.rar binary +# *.tar binary +# *.taz binary +# *.tbz binary +# *.tbz2 binary +# *.tgz binary +# *.tlz binary +# *.txz binary +# *.xz binary +# *.Z binary +# *.zip binary +# *.zst binary +# +# # Text files where line endings should be preserved +# *.patch -text +# +# # Exclude files from exporting +# .gitattributes export-ignore +# .gitignore export-ignore +# .gitkeep export-ignore diff --git a/mac/.config/kitty/kitty.conf b/mac/.config/kitty/kitty.conf index 1be69e0..bcbba11 100644 --- a/mac/.config/kitty/kitty.conf +++ b/mac/.config/kitty/kitty.conf @@ -1171,7 +1171,7 @@ background_image_layout cscaled #: When background image is scaled, whether linear interpolation #: should be used. -# dynamic_background_opacity no +dynamic_background_opacity yes #: Allow changing of the background_opacity dynamically, using either #: keyboard shortcuts (increase_background_opacity and @@ -2299,19 +2299,19 @@ map cmd+w no_op #: Increase background opacity -# map kitty_mod+a>m set_background_opacity +0.1 +map kitty_mod+a>m set_background_opacity +0.05 #: Decrease background opacity -# map kitty_mod+a>l set_background_opacity -0.1 +map kitty_mod+a>l set_background_opacity -0.05 #: Make background fully opaque -# map kitty_mod+a>1 set_background_opacity 1 +map kitty_mod+a>1 set_background_opacity 1 #: Reset background opacity -# map kitty_mod+a>d set_background_opacity default +map kitty_mod+a>d set_background_opacity default #: Reset the terminal |
