refractor

This commit is contained in:
js0ny 2025-10-29 23:27:12 +00:00
parent fbe299a28c
commit 4842ca3540
23 changed files with 92 additions and 70 deletions

View file

@ -0,0 +1,3 @@
#!/bin/sh
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

View file

@ -0,0 +1,5 @@
#!/bin/sh
curl -fsSL https://install.determinate.systems/nix | sh -s -- install
sudo nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/.dotfiles/nixcfgs

View file

@ -37,5 +37,5 @@ return {
-- "Neogit",
-- },
-- },
{ import = "plugins.mod.neo-tree" },
-- { import = "plugins.mod.neo-tree" },
}

View file

@ -4,7 +4,7 @@ return {
{ import = "plugins.mod.toggleterm" },
{ import = "plugins.mod.which-keys-nvim" },
-- { import = "plugins.mod.copilot-lua" },
-- { import = "plugins.mod.avante-nvim" },
{ import = "plugins.mod.avante-nvim" },
{
"kawre/leetcode.nvim",
build = ":TSUpdate html", -- if you have `nvim-treesitter` installed

View file

@ -6,14 +6,11 @@ return {
opts = {
-- add any opts here
-- for example
provider = "openai",
openai = {
endpoint = "https://aihubmix.com/v1",
model = "claude-3-7-sonnet-20250219", -- your desired model (or use gpt-4o, etc.)
timeout = 30000, -- timeout in milliseconds
temperature = 0, -- adjust if needed
max_tokens = 4096,
-- reasoning_effort = "high" -- only supported for "o" models
providers = {
openai = {
endpoint = "https://openrouter.ai/v1",
model = "x-ai/grok-code-fast-1",
},
},
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
@ -27,9 +24,9 @@ return {
--- The below dependencies are optional,
-- "nvim-telescope/telescope.nvim", -- for file_selector provider telescope
"ibhagwan/fzf-lua",
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
"zbirenbaum/copilot.lua", -- for providers='copilot'
"zbirenbaum/copilot.lua", -- for providers='copilot'
"HakonHarnes/img-clip.nvim",
},
}

View file

@ -14,7 +14,7 @@ Remote | Git Branch | Diagnostics | Command | | MID | | Line:Column | Indent | E
local config = {
options = {
disabled_filetypes = {
statusline = { "NvimTree", "alpha", "grug-far", "snacks_dashboard" },
statusline = { "NvimTree", "alpha", "grug-far", "snacks_dashboard", "Avante", "AvanteInput" },
},
-- Disable sections and component separators
component_separators = { left = "", right = "" },

View file

@ -71,14 +71,15 @@ return {
},
},
-- stylua: ignore end
-- explorer = {
-- },
explorer = {
enabled = true,
},
indent = { enabled = true },
input = { enabled = true },
notifier = { enabled = true },
quickfile = { enabled = true },
scope = { enabled = true },
scroll = { enabled = true },
scroll = { enabled = false },
statuscolumn = { enabled = true },
-- words = { enabled = true },
image = {
@ -88,12 +89,12 @@ return {
},
},
keys = {
-- {
-- "<leader>ft",
-- function()
-- require("snacks").explorer()
-- end,
-- desc = "Toggle File Explorer",
-- },
{
"<leader>ft",
function()
require("snacks").explorer()
end,
desc = "Toggle File Explorer",
},
},
}

View file

@ -21,50 +21,58 @@
];
casks = [
"visual-studio-code"
"kitty"
"vivaldi"
"neovide"
"clash-verge-rev"
# Productivity
"obsidian"
"alacritty"
"alt-tab"
"apparency"
"betterdisplay"
"raycast"
"TickTick"
# Networking
"wireshark-app"
"clash-verge-rev"
# Editor
"visual-studio-code"
# Browsers
"firefox"
# Terminal Emulator
"ghostty"
"kitty"
# Fonts
"font-maple-mono-nf-cn"
# Misc
"telegram-desktop"
"cherry-studio" # LLM Client
"steam"
"discord"
"dotnet-sdk"
"iina"
"iterm2"
"karabiner-elements"
"keka"
"orbstack" # Docker runtime
# System Enhancement
"alt-tab" # Turn cmd-tab to windows behaviour
"karabiner-elements" # Keymapping
"localsend"
"ltspice"
"orbstack"
"squirrel" # Input Method
"rustdesk" # Remote Desktop
"iina" # MPV Frontend
# TODO: I think karabiner is the superset
"scroll-reverser" # Natural scrolling for trackpad only
"sioyek" # Keyboard-driven PDF Reader
"skim" # PDF Reader
"keka" # GUI Unarchiver
"betterdisplay"
# Quicklook addons
"apparency"
"qlcolorcode"
# "qlimagesize" discontinued.
"qlmarkdown"
"qlstephen"
"qlvideo"
"qspace-pro"
"quicklook-json"
"quicklookase"
"raycast"
"rider"
"rustdesk"
"scroll-reverser"
"sioyek"
"skim"
"squirrel"
"steam"
"telegram-desktop"
"Filen"
"TickTick"
"cherry-studio"
"firefox"
"wireshark-app"
"LibreWolf"
"brave-browser"
"font-maple-mono-nf-cn"
];
};
}

View file

@ -15,4 +15,5 @@
enable = true;
enable32Bit = true;
};
services.ollama.acceleration = "cuda";
}

View file

@ -54,6 +54,7 @@
lutris
vivaldi
rustdesk
kdePackages.krdc
# Email
protonmail-bridge

View file

@ -0,0 +1,5 @@
{...}: {
services.ollama = {
enable = true;
};
}

View file

@ -16,6 +16,7 @@ in {
enableCompletion = true;
dotDir = "${config.xdg.configHome}/zsh";
shellAliases = aliases;
defaultKeymap = "emacs";
syntaxHighlighting = {
enable = true;
patterns = {
@ -29,18 +30,18 @@ in {
];
};
initContent = ''
# Emacs Hybrid
bindkey '^A' beginning-of-line
bindkey '^E' end-of-line
bindkey '^F' forward-char
bindkey '^B' backward-char
bindkey '^P' up-line-or-history
bindkey '^N' down-line-or-history
# bindkey '^R' history-incremental-search-backward # Use fzf
bindkey '^K' kill-line
bindkey -M viins '^?' backward-delete-char
bindkey -M viins '^H' backward-kill-word
# # Emacs Hybrid
# bindkey '^A' beginning-of-line
# bindkey '^E' end-of-line
# bindkey '^F' forward-char
# bindkey '^B' backward-char
# bindkey '^P' up-line-or-history
# bindkey '^N' down-line-or-history
# # bindkey '^R' history-incremental-search-backward # Use fzf
# bindkey '^K' kill-line
#
# bindkey -M viins '^?' backward-delete-char
# bindkey -M viins '^H' backward-kill-word
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
'';
};

View file

@ -32,7 +32,7 @@
./programs/fzf.nix
./programs/libreoffice.nix
./programs/nvim.nix
./programs/ollama.nix
# Desktop Linux
./programs/plasma.nix