Compare commits
6 Commits
3ef2509830
...
7ebe0a5d4b
| Author | SHA1 | Date | |
|---|---|---|---|
| 7ebe0a5d4b | |||
| 5b9d76e08e | |||
| 9736d2fd6e | |||
| 17540f0b8b | |||
| cd5cd23e71 | |||
| 87935ca581 |
1
.config/.gitignore
vendored
Normal file
1
.config/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
greet.txt
|
||||
13
.config/aichat/config.yaml
Normal file
13
.config/aichat/config.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
# see https://github.com/sigoden/aichat/blob/main/config.example.yaml
|
||||
keybindings: vi
|
||||
editor: nvim
|
||||
model: local:Qwen3-Coder-30B-Instruct-IQ4_XS
|
||||
clients:
|
||||
- type: openai-compatible
|
||||
name: local
|
||||
api_base: http://192.168.0.204:11343/v1
|
||||
models:
|
||||
- name: Qwen3-Coder-30B-Instruct-IQ4_XS
|
||||
- name: Qwen3-Coder-30B-A3B-Instruct-UD-Q3_K_XL
|
||||
- name: llama-3.1-8b-instruct
|
||||
- name: GLM-4.7-Flash-UD-Q3_K_XL
|
||||
@@ -1,14 +1,3 @@
|
||||
# This file was created by fish when upgrading to version 4.3, to migrate
|
||||
# the 'fish_key_bindings' variable from its old default scope (universal)
|
||||
# to its new default scope (global). We recommend you delete this file
|
||||
# and configure key bindings in ~/.config/fish/config.fish if needed.
|
||||
|
||||
set --global fish_key_bindings fish_vi_key_bindings
|
||||
|
||||
# Prior to version 4.3, fish shipped an event handler that runs
|
||||
# `set --universal fish_key_bindings fish_default_key_bindings`
|
||||
# whenever the fish_key_bindings variable is erased.
|
||||
# This means that as long as any fish < 4.3 is still running on this system,
|
||||
# we cannot complete the migration.
|
||||
# As a workaround, erase the universal variable at every shell startup.
|
||||
set --erase --universal fish_key_bindings
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
# This file was created by fish when upgrading to version 4.3, to migrate
|
||||
# theme variables from universal to global scope.
|
||||
# Don't edit this file, as it will be written by the web-config tool (`fish_config`).
|
||||
# To customize your theme, delete this file and see
|
||||
# help interactive#syntax-highlighting
|
||||
# or
|
||||
# man fish-interactive | less +/^SYNTAX.HIGHLIGHTING
|
||||
# for appropriate commands to add to ~/.config/fish/config.fish instead.
|
||||
# See also the release notes for fish 4.3.0 (run `help relnotes`).
|
||||
|
||||
set --global fish_color_autosuggestion 4D5566
|
||||
set --global fish_color_cancel -r
|
||||
set --global fish_color_command 39BAE6
|
||||
|
||||
@@ -29,15 +29,12 @@ alias matrix="~/projects/random-clones/matrix/matrix"
|
||||
alias nmatrix="neo-matrix -DS 3"
|
||||
|
||||
# LLMs
|
||||
alias codellamasrv=" ~/projects/llama.cpp/build/bin/llama-server -m ~/projects/llama.cpp/models/codellama"
|
||||
alias llama3-web="~/projects/llama.cpp/build/bin/llama-server -m ~/projects/llama.cpp/models/llama3"
|
||||
alias llama3=" ~/projects/llama.cpp/build/bin/llama-cli -m ~/projects/llama.cpp/models/llama3"
|
||||
alias llama=" ~/projects/llama.cpp/build/bin/llama-run"
|
||||
alias llamasrv="~/projects/pkgs/llama.cpp/build/bin/llama-server"
|
||||
abbr llamastart "llamasrv --host 0.0.0.0 --port 11343 --models-max 3 --models-preset ~/Documents/models/config.ini"
|
||||
|
||||
# Shorts
|
||||
alias fzf="fzf --preview color='always {}'"
|
||||
alias grep="grep --color=auto"
|
||||
alias cat="bat -p"
|
||||
|
||||
# Git
|
||||
alias gs="git status"
|
||||
@@ -61,6 +58,7 @@ abbr dots "cdots && nvim"
|
||||
abbr pnotes "cpnotes && nvim"
|
||||
abbr todo "cpnotes && nvim ToDoNext.md"
|
||||
|
||||
abbr cat "bat -p"
|
||||
abbr copy "wl-copy"
|
||||
abbr img "kitten icat"
|
||||
abbr fm "yazi" ## file manager
|
||||
|
||||
7
.config/fish/fish-issue.md
Normal file
7
.config/fish/fish-issue.md
Normal file
@@ -0,0 +1,7 @@
|
||||
fish: upgraded to version 4.3:
|
||||
* Color variables are no longer set in universal scope by default.
|
||||
Migrated them to global variables set in ~/.config/fish/conf.d/fish_frozen_theme.fish
|
||||
To restore syntax highlighting in other fish sessions, please restart them.
|
||||
* The fish_key_bindings variable is no longer set in universal scope by default.
|
||||
Migrated it to a global variable set in ~/.config/fish/conf.d/fish_frozen_key_bindings.fish
|
||||
See also the release notes (type `help relnotes`).
|
||||
@@ -1,3 +1,3 @@
|
||||
function askllama --description 'answer from llama'
|
||||
~/projects/llama.cpp/build/bin/llama-run ~/projects/llama.cpp/models/llama3 $(string join '+' $argv[1..])
|
||||
~/projects/pkgs/llama.cpp/build/bin/llama-simple -m ~/Documents/models/Qwen3-4B-Instruct-2507.Q4_K_M.gguf $(string join '+' $argv[1..])
|
||||
end
|
||||
|
||||
@@ -4,25 +4,24 @@ require "nvchad.mappings"
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
map("n", ";", ":", { desc = "CMD enter command mode" })
|
||||
map("n", "gd", vim.lsp.buf.definition, { desc = "Go to definition" })
|
||||
-- map("n", ";", ":", { desc = "cmd enter command mode" })
|
||||
|
||||
local builtin = require "telescope.builtin"
|
||||
|
||||
map("n", "gD", builtin.lsp_definitions, { desc = "Go to definitions" })
|
||||
map("n", "gd", vim.lsp.buf.definition, { desc = "Go to definition" })
|
||||
map("n", "gD", builtin.lsp_definitions, { desc = "Go to Definitions" })
|
||||
map("n", "grr", builtin.lsp_references, { desc = "Go to references" })
|
||||
map("n", "<leader>dh", ":lua vim.diagnostic.open_float()<cr>", { desc = "Show diagnostics" })
|
||||
map("n", "<leader>dj", ":lua vim.diagnostic.goto_next()<cr>", { desc = "Go to next" })
|
||||
map("n", "<leader>dk", ":lua vim.diagnostic.goto_prev()<cr>", { desc = "Go to previous" })
|
||||
map("n", "<leader>da", ":lua vim.lsp.buf.code_action()<cr>", { desc = "Code actions", noremap = true, silent = true })
|
||||
-- Telescope
|
||||
map("n", "<leader>fr", ":Telescope resume<CR>", { desc = "Resume last search" })
|
||||
map("n", "<leader>fs", ":Telescope grep_string<CR>", { desc = "Find selected string" })
|
||||
map("n", "<leader>fk", ":Telescope keymaps<CR>", { desc = "Find keymaps" })
|
||||
map("n", "<leader>fd", ":Telescope diagnostics<CR>", { desc = "Diagnostics" })
|
||||
|
||||
map({ "n", "v" }, "<leader>ge", ":Gen<CR>")
|
||||
|
||||
map("n", "<leader>gl", "<cmd>lua vim.lsp.buf.code_action()<CR>", { noremap = true, silent = true })
|
||||
|
||||
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|
||||
-- Diagnostics
|
||||
|
||||
map("n", "<leader>da", ":lua vim.lsp.buf.code_action()<CR>", { desc = "Code actions" })
|
||||
map("n", "<leader>dh", ":lua vim.diagnostic.open_float()<CR>", { desc = "Show diagnostics" })
|
||||
map("n", "<leader>dj", ":lua vim.diagnostic.goto_next()<CR>", { desc = "Go to next" })
|
||||
map("n", "<leader>dk", ":lua vim.diagnostic.goto_prev()<CR>", { desc = "Go to previous" })
|
||||
map({ "n", "v" }, "<leader>ge", "<cmd>:Gen<cr>", { desc = "Gen.nvim" })
|
||||
|
||||
-- P paste with
|
||||
-- global marks
|
||||
|
||||
Reference in New Issue
Block a user