summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2025-10-05 19:17:34 +0300
committer2025-10-05 19:17:34 +0300
commit87f61d4d95330768ea4dcec002c12b324d86b581 (patch)
treeedfdbb01ddb7be0d4239b13446c8f54537ad0ca6
parentЧт 19 июн 2025 11:18:03 MSK (diff)
downloaddotfiles-87f61d4d95330768ea4dcec002c12b324d86b581.tar.gz
dotfiles-87f61d4d95330768ea4dcec002c12b324d86b581.tar.bz2
dotfiles-87f61d4d95330768ea4dcec002c12b324d86b581.tar.xz
dotfiles-87f61d4d95330768ea4dcec002c12b324d86b581.zip
sync
Diffstat (limited to '')
-rw-r--r--config/hypr/hypridle.conf4
-rw-r--r--config/hypr/hyprland.conf23
-rw-r--r--config/hypr/hyprlock.conf4
-rw-r--r--config/hypr/hyprpaper.conf4
-rw-r--r--config/hypr/wp.jpgbin9414283 -> 0 bytes
-rw-r--r--config/hypr/wp.png (renamed from config/hypr/lock.png)bin17008897 -> 17008897 bytes
-rw-r--r--config/kitty/kitty.conf2
-rw-r--r--config/nvim/init.lua2
-rw-r--r--config/nvim/lazy-lock.json50
-rw-r--r--config/nvim/lua/commands.lua7
-rw-r--r--config/nvim/lua/lsp.lua6
-rw-r--r--config/nvim/lua/options.lua2
-rw-r--r--config/nvim/lua/plugins.lua14
-rw-r--r--config/nvim/lua/plugins/cmp.lua10
-rw-r--r--config/nvim/lua/plugins/codecompanion.lua82
-rw-r--r--config/nvim/lua/plugins/dap_go.lua5
-rw-r--r--config/nvim/lua/plugins/todo.lua69
-rw-r--r--config/nvim/lua/plugins/zk.lua26
-rw-r--r--config/waybar/config.jsonc10
-rw-r--r--config/waybar/style.css2
-rw-r--r--git/.gitconfig4
-rw-r--r--zsh/.config/zsh/comp/devpod.zsh-completion212
-rw-r--r--zsh/.config/zsh/theme/internal/parser.zsh.zwcbin17504 -> 17496 bytes
-rw-r--r--zsh/.zshrc79
24 files changed, 351 insertions, 266 deletions
diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf
index 8809a22..3affb7e 100644
--- a/config/hypr/hypridle.conf
+++ b/config/hypr/hypridle.conf
@@ -21,13 +21,13 @@ listener {
# Screen_off
listener {
- timeout = 780
+ timeout = 1800
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
# Suspend
listener {
- timeout = 1200
+ timeout = 2400
on-timeout = $suspend_cmd
}
diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf
index 6d07adb..ca0ac77 100644
--- a/config/hypr/hyprland.conf
+++ b/config/hypr/hyprland.conf
@@ -5,6 +5,7 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,prefered,auto,auto
monitor = desc:HKC OVERSEAS LIMITED 0x2160 0x00000001,1920x1080,auto,auto
+monitor = eDP-1,prefered, auto, 1.5
###################
### MY PROGRAMS ###
###################
@@ -47,10 +48,10 @@ env = HYPRCURSOR_SIZE,24
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
- gaps_in = 4
- gaps_out = 8
+ gaps_in = 2
+ gaps_out = 4
- border_size = 2
+ border_size = 1
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
@@ -73,10 +74,10 @@ decoration {
active_opacity = 1.0
inactive_opacity = 1.0
- drop_shadow = true
- shadow_range = 4
- shadow_render_power = 3
- col.shadow = rgba(1a1a1aee)
+ #drop_shadow = true
+ #shadow_range = 4
+ #shadow_render_power = 3
+ #col.shadow = rgba(1a1a1aee)
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
@@ -164,15 +165,15 @@ device {
# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier
$shiftMod = SUPER_SHIFT
-
+$superEnter = SUPER_ENTER
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
-bind = $mainMod, Q, exec, $terminal
-bind = $mainMod, C, killactive,
+bind = $mainMod, 36, exec, $terminal
+bind = $mainMod, Q, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, L, exec, hyprlock
bind = $mainMod, V, togglefloating,
-bind = $mainMod, R, exec, $menu
+bind = $mainMod, F2, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf
index 94920bf..1ef93f5 100644
--- a/config/hypr/hyprlock.conf
+++ b/config/hypr/hyprlock.conf
@@ -1,7 +1,7 @@
background {
monitor =
- path = $HOME/.config/hypr/lock.png # only *.png supported for now
- color = rgba(25, 20, 20, 1.0)
+ path = $HOME/.config/hypr/wp.png # only *.png supported for now
+ color = rgba(20, 20, 20, 1.0)
blur_passes = 4 # 0 disables blurring
blur_size = 2
noise = 0.0117
diff --git a/config/hypr/hyprpaper.conf b/config/hypr/hyprpaper.conf
index 4d21b18..926a763 100644
--- a/config/hypr/hyprpaper.conf
+++ b/config/hypr/hyprpaper.conf
@@ -1,3 +1,3 @@
-preload = ~/.config/hypr/wp.jpg
-wallpaper = , ~/.config/hypr/wp.jpg
+preload = ~/.config/hypr/wp.png
+wallpaper = , ~/.config/hypr/wp.png
splash = true
diff --git a/config/hypr/wp.jpg b/config/hypr/wp.jpg
deleted file mode 100644
index 2047b40..0000000
--- a/config/hypr/wp.jpg
+++ /dev/null
Binary files differ
diff --git a/config/hypr/lock.png b/config/hypr/wp.png
index 5a85e8e..5a85e8e 100644
--- a/config/hypr/lock.png
+++ b/config/hypr/wp.png
Binary files differ
diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf
index 4ef1dc9..f239799 100644
--- a/config/kitty/kitty.conf
+++ b/config/kitty/kitty.conf
@@ -1,6 +1,6 @@
font_size 10.0
background_opacity 1
-background #0e0e20
+background #030320
cursor_shape beam
window_margin_width 4
confirm_os_window_close 0
diff --git a/config/nvim/init.lua b/config/nvim/init.lua
index f6fd4ab..87ac2a9 100644
--- a/config/nvim/init.lua
+++ b/config/nvim/init.lua
@@ -35,4 +35,4 @@ require("autocommands")
require("lsp")
require("syntax")
-- require("dap")
-vim.cmd [[colorscheme nightfly]]
+ vim.cmd [[colorscheme sonokai]]
diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json
index f17796d..ce08936 100644
--- a/config/nvim/lazy-lock.json
+++ b/config/nvim/lazy-lock.json
@@ -1,37 +1,35 @@
{
- "LuaSnip": { "branch": "master", "commit": "fb525166ccc30296fb3457441eb979113de46b00" },
- "apidocs.nvim": { "branch": "main", "commit": "d6a5c8436d183ab85d8cf8e365ebc79920caf506" },
+ "LuaSnip": { "branch": "master", "commit": "458560534a73f7f8d7a11a146c801db00b081df0" },
+ "apidocs.nvim": { "branch": "main", "commit": "6f34023f9a14dda5fa1f06d8ffe53e689324d2d2" },
"auto-save.nvim": { "branch": "main", "commit": "37c82fd548e3f5ffc2d9d020a65dac1044584f44" },
- "blink.cmp": { "branch": "main", "commit": "9bcb14b43852a6f2bfd5ac9ef29cb5cf09b1b39b" },
- "codecompanion.nvim": { "branch": "main", "commit": "9edf22cb71711cd7fab7671a25ed5424011a379d" },
- "conform.nvim": { "branch": "master", "commit": "8132ec733eed3bf415b97b76797ca41b59f51d7d" },
+ "blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
+ "conform.nvim": { "branch": "master", "commit": "9d859cbfbde7a1bd1770e7c97aef30ec5a237a71" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
- "go.nvim": { "branch": "master", "commit": "a3455f48cff718a86275115523dcc735535a13aa" },
+ "go.nvim": { "branch": "master", "commit": "db20146ef63322949af69b0955f80ee7d98145bd" },
"goerr-nvim": { "branch": "main", "commit": "d30ba1cab652e78dbf6a644eb4823be57e9af203" },
"goimpl.nvim": { "branch": "main", "commit": "2548d42c4db0645dea14f27e67c4b19b7030f1cf" },
- "guihua.lua": { "branch": "master", "commit": "87bea7b98429405caf2a0ce4d029b027bb017c70" },
+ "guihua.lua": { "branch": "master", "commit": "c49a0fb7346586a1b1431d7e407f943c4164d8cb" },
"headlines.nvim": { "branch": "master", "commit": "bf17c96a836ea27c0a7a2650ba385a7783ed322e" },
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
- "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
- "lsp_signature.nvim": { "branch": "master", "commit": "d50e40b3bf9324128e71b0b7e589765ce89466d2" },
- "lspsaga.nvim": { "branch": "main", "commit": "920b1253e1a26732e53fac78412f6da7f674671d" },
- "lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
- "nightfly": { "branch": "master", "commit": "8c55003e89f321a48a8cd4bb426dd3e7c58f0646" },
- "nvim-dap": { "branch": "master", "commit": "40a8189b8a57664a1850b0823fdcb3ac95b9f635" },
- "nvim-dap-go": { "branch": "main", "commit": "8763ced35b19c8dc526e04a70ab07c34e11ad064" },
- "nvim-dap-ui": { "branch": "master", "commit": "73a26abf4941aa27da59820fd6b028ebcdbcf932" },
- "nvim-lspconfig": { "branch": "master", "commit": "7ad4a11cc5742774877c529fcfb2702f7caf75e4" },
+ "lazy.nvim": { "branch": "main", "commit": "59334064f8604ca073791c25dcc5c9698865406e" },
+ "lsp_signature.nvim": { "branch": "master", "commit": "62cadce83aaceed677ffe7a2d6a57141af7131ea" },
+ "lspsaga.nvim": { "branch": "main", "commit": "8efe00d6aed9db6449969f889170f1a7e43101a1" },
+ "lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" },
+ "nightfly": { "branch": "master", "commit": "5f88609dd9c3883b50a2728537c55afd5544f466" },
+ "nvim-dap": { "branch": "master", "commit": "48570d8372f63c9e9ba399a16606f9553034a9b2" },
+ "nvim-dap-go": { "branch": "main", "commit": "b4421153ead5d726603b02743ea40cf26a51ed5f" },
+ "nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
+ "nvim-lspconfig": { "branch": "master", "commit": "e688b486fe9291f151eae7e5c0b5a5c4ef980847" },
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
- "nvim-tree.lua": { "branch": "master", "commit": "d87b41ca537e2131622d48a6c25ccf2fbe0e5d62" },
+ "nvim-tree.lua": { "branch": "master", "commit": "87d096a39cb2d5d43e6771563575ff042a79f48b" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
- "nvim-treesitter-context": { "branch": "master", "commit": "1a1a7c5d6d75cb49bf64049dafab15ebe294a79f" },
- "nvim-treesitter-textobjects": { "branch": "master", "commit": "89ebe73cd2836db80a22d9748999ace0241917a5" },
- "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
- "nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" },
- "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
+ "nvim-treesitter-context": { "branch": "master", "commit": "41847d3dafb5004464708a3db06b14f12bde548a" },
+ "nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },
+ "nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
+ "nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" },
+ "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
- "smartcolumn.nvim": { "branch": "main", "commit": "92f3773af80d674f1eb61e112dca79e2fa449fd1" },
- "telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
- "todotxt.nvim": { "branch": "main", "commit": "225ac77fea10a9ad9a48d0247a8d3c23f33cb2ba" },
- "zk-nvim": { "branch": "main", "commit": "8fdd7032633045ece559273370fc0ec75ee8ffce" }
+ "smartcolumn.nvim": { "branch": "main", "commit": "b9cdbdf42f7ac5a659204cd5926017c7ff724a19" },
+ "sonokai": { "branch": "master", "commit": "cf50520d1cddf7a4e7bccae650cdf0a6dd362a10" },
+ "telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" }
}
diff --git a/config/nvim/lua/commands.lua b/config/nvim/lua/commands.lua
index 8a987b0..abba436 100644
--- a/config/nvim/lua/commands.lua
+++ b/config/nvim/lua/commands.lua
@@ -4,3 +4,10 @@ end, { force = true })
vim.api.nvim_create_user_command("Upper", function()
vim.cmd([[normal! gUaw]])
end, { force = true })
+vim.api.nvim_create_user_command("GoTestDebug", function()
+ require('dap-go').debug_test()
+end, { force = true })
+vim.api.nvim_create_user_command("GoTestDebugLast", function()
+ require('dap-go').debug_last_test()
+end, { force = true })
+
diff --git a/config/nvim/lua/lsp.lua b/config/nvim/lua/lsp.lua
index 3ffa507..1031287 100644
--- a/config/nvim/lua/lsp.lua
+++ b/config/nvim/lua/lsp.lua
@@ -41,3 +41,9 @@ lspconfig.templ.setup(config({
filetypes = { "templ" },
root_markers = { "go.work", "go.mod", ".git" },
}))
+
+lspconfig.v_analyzer.setup(config({
+ cmd = { "v-analyzer" },
+ filetypes = { "v", "vv", "vsh" },
+ root_markers = { "v.mod", ".git" },
+}))
diff --git a/config/nvim/lua/options.lua b/config/nvim/lua/options.lua
index d80d242..8c1366a 100644
--- a/config/nvim/lua/options.lua
+++ b/config/nvim/lua/options.lua
@@ -61,4 +61,4 @@ vim.filetype.add({
vim.g.nightflyCursorColor = true
vim.g.nightflyVirtualTextColor = true
-vim.g.nightflyTransparent = true
+vim.g.nightflyTransparent = false
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua
index 482d9a9..60b032d 100644
--- a/config/nvim/lua/plugins.lua
+++ b/config/nvim/lua/plugins.lua
@@ -1,5 +1,16 @@
require("lazy").setup({
{ "bluz71/vim-nightfly-colors", name = "nightfly", lazy = false, priority = 1000 },
+ {
+ "sainnhe/sonokai",
+ lazy = false,
+ priority = 1000,
+ config = function()
+ -- Optionally configure and load the colorscheme
+ -- directly inside the plugin declaration.
+ vim.g.sonokai_enable_italic = true
+ vim.cmd.colorscheme("sonokai")
+ end,
+ },
{ "nvim-lua/plenary.nvim" },
{
"ray-x/guihua.lua",
@@ -11,8 +22,6 @@ require("lazy").setup({
},
{ "Snyssfx/goerr-nvim" },
require("plugins.apidocs"),
- require("plugins.todo"),
- require("plugins.codecompanion"),
require("plugins.resize"),
require("plugins.blankline"),
require("plugins.headlines"),
@@ -31,7 +40,6 @@ require("lazy").setup({
require("plugins.lualine"),
require("plugins.telescope"),
require("plugins.columns"),
- require("plugins.zk"),
}, {
performance = {
rtp = {
diff --git a/config/nvim/lua/plugins/cmp.lua b/config/nvim/lua/plugins/cmp.lua
index d113fd5..3ac698f 100644
--- a/config/nvim/lua/plugins/cmp.lua
+++ b/config/nvim/lua/plugins/cmp.lua
@@ -35,6 +35,9 @@ return {
opts = {
keymap = {
preset = "enter",
+ ["<Tab>"] = false,
+ ["<C-k>"] = { "snippet_forward", "fallback" },
+ ["<C-S-k>"] = { "snippet_backward", "fallback" },
},
completion = {
list = {
@@ -61,7 +64,12 @@ return {
signature = { enabled = true },
snippets = { preset = "luasnip" },
sources = {
- default = { "lsp", "path", "snippets", "buffer", "codecompanion" },
+ default = {
+ "lsp",
+ "path",
+ "snippets",
+ "buffer",
+ },
},
},
}
diff --git a/config/nvim/lua/plugins/codecompanion.lua b/config/nvim/lua/plugins/codecompanion.lua
deleted file mode 100644
index c4ad892..0000000
--- a/config/nvim/lua/plugins/codecompanion.lua
+++ /dev/null
@@ -1,82 +0,0 @@
-return {
- "olimorris/codecompanion.nvim",
- version = "v15.8.0",
- opts = function()
- return {
- strategies = {
- chat = {
- adapter = "scbt",
- },
- inline = {
- adapter = "scbt",
- },
- cmd = {
- adapter = "scbt",
- },
- },
- adapters = {
- scbt = function()
- return require("codecompanion.adapters").extend("openai_compatible", {
- env = {
- url = "https://code-generator.sovcombank.group/api",
- api_key = "cmd:cat ~/.codetoken",
- chat_url = "/v1/chat/completions",
- models_endpoint = "/v1/models",
- },
- schema = {
- model = {
- default = "Qwen/Qwen2.5-Coder-14B-Instruct",
- },
- },
- })
- end,
- ollama = function()
- return require("codecompanion.adapters").extend("ollama", {
- name = "ollama",
- schema = {
- model = {
- default = "kodify_nano_q8",
- },
- },
- parameters = {
- sync = true,
- },
- })
- end,
- },
- opts = {
- log_level = "ERROR",
- language = "Russian",
- allow_insecure = true,
- cache_models_for = 1800,
- proxy = nil,
- show_defaults = false,
- show_model_choices = true,
- system_prompt = function(opts)
- return [[Ты — продвинутый помощник разработчика, встроенный в редактор кода. Твоя цель — помогать пользователям писать код быстрее и эффективнее, предлагая подсказки, исправления ошибок, оптимизацию производительности и комментарии к коду. Ты хорошо знаком с языками программирования, такими как Python, Go и прочими популярными языками.
-
-Основные задачи:
-- Давай точные и полезные советы по улучшению существующего кода.
-- Предлагай фрагменты кода для завершения текущего блока, исходя из контекста и намерений программиста.
-- Обеспечивай мгновенную помощь по синтаксическим ошибкам и советуй решения.
-- Объясняй сложные концепции простым языком.
-- Помогай находить альтернативные подходы и оптимизации производительности.
-- Уточняй любые неясности в вопросах пользователя перед предоставлением рекомендаций.
-
-Правила общения:
-- Отвечай коротко и ясно, особенно если речь идет о конкретных фрагментах кода.
-- Используй правильный синтаксис и следи за соответствием типов данных и стиля написания кода проекта.
-- Избегай ненужных деталей и отвлекающих пояснений.
-- Если требуется дополнительное разъяснение от пользователя, задавай конкретные уточняющие вопросы.
-- Общайся на русском языке
-
-Помоги создавать качественный и производительный код!]]
- end,
- },
- }
- end,
- dependencies = {
- "nvim-lua/plenary.nvim",
- "nvim-treesitter/nvim-treesitter",
- },
-}
diff --git a/config/nvim/lua/plugins/dap_go.lua b/config/nvim/lua/plugins/dap_go.lua
index 705fab7..262aef8 100644
--- a/config/nvim/lua/plugins/dap_go.lua
+++ b/config/nvim/lua/plugins/dap_go.lua
@@ -23,10 +23,9 @@ local function setup_go_configuration(dap, configs)
name = "Debug",
request = "launch",
program = "${workspaceFolder}",
- args = {},
- buildFlags = configs.delve.build_flags,
- outputMode = configs.delve.output_mode,
+ outputMode = "remote",
},
+
}
if dap.configurations.go == nil then
diff --git a/config/nvim/lua/plugins/todo.lua b/config/nvim/lua/plugins/todo.lua
deleted file mode 100644
index ee672ab..0000000
--- a/config/nvim/lua/plugins/todo.lua
+++ /dev/null
@@ -1,69 +0,0 @@
-return {
- "phrmendes/todotxt.nvim",
- cmd = { "TodoTxt", "DoneTxt" },
- opts = {
- todotxt = "/home/neonxp/Документы/todo.txt",
- donetxt = "/home/neonxp/Документы/done.txt",
- },
- -- suggested keybindings
- keys = {
- {
- "<leader>tp",
- function() require("todotxt").cycle_priority() end,
- desc = "todo.txt: cycle priority",
- ft = "todotxt",
- },
- {
- "<cr>",
- function() require("todotxt").toggle_todo_state() end,
- desc = "todo.txt: toggle task state",
- ft = "todotxt",
- },
- {
- "<leader>tn",
- function() require("todotxt").capture_todo() end,
- desc = "New entry",
- },
- {
- "<leader>tt",
- function() require("todotxt").toggle_todotxt() end,
- desc = "Open",
- },
- {
- "<leader>tr",
- function() require("todotxt").move_done_tasks() end,
- desc = "Move to done.txt",
- ft = "todotxt",
- },
- {
- "<leader>tss",
- function() require("todotxt").sort_tasks() end,
- desc = "Sort",
- ft = "todotxt",
- },
- {
- "<leader>tsd",
- function() require("todotxt").sort_tasks_by_due_date() end,
- desc = "Sort by due:date",
- ft = "todotxt",
- },
- {
- "<leader>tsP",
- function() require("todotxt").sort_tasks_by_priority() end,
- desc = "Sort by (priority)",
- ft = "todotxt",
- },
- {
- "<leader>tsc",
- function() require("todotxt").sort_tasks_by_context() end,
- desc = "Sort by @context",
- ft = "todotxt",
- },
- {
- "<leader>tsp",
- function() require("todotxt").sort_tasks_by_project() end,
- desc = "Sort by +project",
- ft = "todotxt",
- },
- },
-}
diff --git a/config/nvim/lua/plugins/zk.lua b/config/nvim/lua/plugins/zk.lua
deleted file mode 100644
index 1640b77..0000000
--- a/config/nvim/lua/plugins/zk.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-return {
- "zk-org/zk-nvim",
- version = "v0.3.0",
- config = function()
- require("zk").setup({
- picker = "telescope",
-
- lsp = {
- -- `config` is passed to `vim.lsp.start(config)`
- config = {
- name = "zk",
- cmd = { "zk", "lsp" },
- filetypes = { "markdown" },
- -- on_attach = ...
- -- etc, see `:h vim.lsp.start()`
- },
-
- -- automatically attach buffers in a zk notebook that match the given filetypes
- auto_attach = {
- enabled = true,
- filetypes = { "markdown" }, -- moved to lsp.config above
- },
- },
- })
- end,
-}
diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc
index 66e648d..39e402e 100644
--- a/config/waybar/config.jsonc
+++ b/config/waybar/config.jsonc
@@ -69,9 +69,9 @@
"format": "{short}"
},
"mpd": {
- "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
- "format-disconnected": "Disconnected ",
- "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
+ "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
+ "format-disconnected": "Disconnected",
+ "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
"unknown-tag": "N/A",
"interval": 5,
"consume-icons": {
@@ -173,8 +173,8 @@
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
- "format-bluetooth-muted": " {icon} {format_source}",
- "format-muted": " {format_source}",
+ "format-bluetooth-muted": "{icon} {format_source}",
+ "format-muted": "{format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
diff --git a/config/waybar/style.css b/config/waybar/style.css
index b13d2dc..59fee8e 100644
--- a/config/waybar/style.css
+++ b/config/waybar/style.css
@@ -6,7 +6,7 @@
window#waybar {
background-color: rgba(43, 48, 59, 0.5);
- border-bottom: 2px solid rgba(51, 204, 256, 238);
+ border-bottom: 1px solid rgba(51, 204, 256, 238);
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
diff --git a/git/.gitconfig b/git/.gitconfig
index 77d7c22..b3d01ad 100644
--- a/git/.gitconfig
+++ b/git/.gitconfig
@@ -121,6 +121,10 @@
[include]
path = .gitconfig.local
+
+[includeIf "gitdir:~/go/src/gitlab.sovcombank.group/"]
+ path = .gitconfig.work
+
[gpg]
format = ssh
diff --git a/zsh/.config/zsh/comp/devpod.zsh-completion b/zsh/.config/zsh/comp/devpod.zsh-completion
new file mode 100644
index 0000000..5dcdab0
--- /dev/null
+++ b/zsh/.config/zsh/comp/devpod.zsh-completion
@@ -0,0 +1,212 @@
+#compdef devpod
+compdef _devpod devpod
+
+# zsh completion for devpod -*- shell-script -*-
+
+__devpod_debug()
+{
+ local file="$BASH_COMP_DEBUG_FILE"
+ if [[ -n ${file} ]]; then
+ echo "$*" >> "${file}"
+ fi
+}
+
+_devpod()
+{
+ local shellCompDirectiveError=1
+ local shellCompDirectiveNoSpace=2
+ local shellCompDirectiveNoFileComp=4
+ local shellCompDirectiveFilterFileExt=8
+ local shellCompDirectiveFilterDirs=16
+ local shellCompDirectiveKeepOrder=32
+
+ local lastParam lastChar flagPrefix requestComp out directive comp lastComp noSpace keepOrder
+ local -a completions
+
+ __devpod_debug "\n========= starting completion logic =========="
+ __devpod_debug "CURRENT: ${CURRENT}, words[*]: ${words[*]}"
+
+ # The user could have moved the cursor backwards on the command-line.
+ # We need to trigger completion from the $CURRENT location, so we need
+ # to truncate the command-line ($words) up to the $CURRENT location.
+ # (We cannot use $CURSOR as its value does not work when a command is an alias.)
+ words=("${=words[1,CURRENT]}")
+ __devpod_debug "Truncated words[*]: ${words[*]},"
+
+ lastParam=${words[-1]}
+ lastChar=${lastParam[-1]}
+ __devpod_debug "lastParam: ${lastParam}, lastChar: ${lastChar}"
+
+ # For zsh, when completing a flag with an = (e.g., devpod -n=<TAB>)
+ # completions must be prefixed with the flag
+ setopt local_options BASH_REMATCH
+ if [[ "${lastParam}" =~ '-.*=' ]]; then
+ # We are dealing with a flag with an =
+ flagPrefix="-P ${BASH_REMATCH}"
+ fi
+
+ # Prepare the command to obtain completions
+ requestComp="${words[1]} __complete ${words[2,-1]}"
+ if [ "${lastChar}" = "" ]; then
+ # If the last parameter is complete (there is a space following it)
+ # We add an extra empty parameter so we can indicate this to the go completion code.
+ __devpod_debug "Adding extra empty parameter"
+ requestComp="${requestComp} \"\""
+ fi
+
+ __devpod_debug "About to call: eval ${requestComp}"
+
+ # Use eval to handle any environment variables and such
+ out=$(eval ${requestComp} 2>/dev/null)
+ __devpod_debug "completion output: ${out}"
+
+ # Extract the directive integer following a : from the last line
+ local lastLine
+ while IFS='\n' read -r line; do
+ lastLine=${line}
+ done < <(printf "%s\n" "${out[@]}")
+ __devpod_debug "last line: ${lastLine}"
+
+ if [ "${lastLine[1]}" = : ]; then
+ directive=${lastLine[2,-1]}
+ # Remove the directive including the : and the newline
+ local suffix
+ (( suffix=${#lastLine}+2))
+ out=${out[1,-$suffix]}
+ else
+ # There is no directive specified. Leave $out as is.
+ __devpod_debug "No directive found. Setting do default"
+ directive=0
+ fi
+
+ __devpod_debug "directive: ${directive}"
+ __devpod_debug "completions: ${out}"
+ __devpod_debug "flagPrefix: ${flagPrefix}"
+
+ if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then
+ __devpod_debug "Completion received error. Ignoring completions."
+ return
+ fi
+
+ local activeHelpMarker="_activeHelp_ "
+ local endIndex=${#activeHelpMarker}
+ local startIndex=$((${#activeHelpMarker}+1))
+ local hasActiveHelp=0
+ while IFS='\n' read -r comp; do
+ # Check if this is an activeHelp statement (i.e., prefixed with $activeHelpMarker)
+ if [ "${comp[1,$endIndex]}" = "$activeHelpMarker" ];then
+ __devpod_debug "ActiveHelp found: $comp"
+ comp="${comp[$startIndex,-1]}"
+ if [ -n "$comp" ]; then
+ compadd -x "${comp}"
+ __devpod_debug "ActiveHelp will need delimiter"
+ hasActiveHelp=1
+ fi
+
+ continue
+ fi
+
+ if [ -n "$comp" ]; then
+ # If requested, completions are returned with a description.
+ # The description is preceded by a TAB character.
+ # For zsh's _describe, we need to use a : instead of a TAB.
+ # We first need to escape any : as part of the completion itself.
+ comp=${comp//:/\\:}
+
+ local tab="$(printf '\t')"
+ comp=${comp//$tab/:}
+
+ __devpod_debug "Adding completion: ${comp}"
+ completions+=${comp}
+ lastComp=$comp
+ fi
+ done < <(printf "%s\n" "${out[@]}")
+
+ # Add a delimiter after the activeHelp statements, but only if:
+ # - there are completions following the activeHelp statements, or
+ # - file completion will be performed (so there will be choices after the activeHelp)
+ if [ $hasActiveHelp -eq 1 ]; then
+ if [ ${#completions} -ne 0 ] || [ $((directive & shellCompDirectiveNoFileComp)) -eq 0 ]; then
+ __devpod_debug "Adding activeHelp delimiter"
+ compadd -x "--"
+ hasActiveHelp=0
+ fi
+ fi
+
+ if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then
+ __devpod_debug "Activating nospace."
+ noSpace="-S ''"
+ fi
+
+ if [ $((directive & shellCompDirectiveKeepOrder)) -ne 0 ]; then
+ __devpod_debug "Activating keep order."
+ keepOrder="-V"
+ fi
+
+ if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then
+ # File extension filtering
+ local filteringCmd
+ filteringCmd='_files'
+ for filter in ${completions[@]}; do
+ if [ ${filter[1]} != '*' ]; then
+ # zsh requires a glob pattern to do file filtering
+ filter="\*.$filter"
+ fi
+ filteringCmd+=" -g $filter"
+ done
+ filteringCmd+=" ${flagPrefix}"
+
+ __devpod_debug "File filtering command: $filteringCmd"
+ _arguments '*:filename:'"$filteringCmd"
+ elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then
+ # File completion for directories only
+ local subdir
+ subdir="${completions[1]}"
+ if [ -n "$subdir" ]; then
+ __devpod_debug "Listing directories in $subdir"
+ pushd "${subdir}" >/dev/null 2>&1
+ else
+ __devpod_debug "Listing directories in ."
+ fi
+
+ local result
+ _arguments '*:dirname:_files -/'" ${flagPrefix}"
+ result=$?
+ if [ -n "$subdir" ]; then
+ popd >/dev/null 2>&1
+ fi
+ return $result
+ else
+ __devpod_debug "Calling _describe"
+ if eval _describe $keepOrder "completions" completions $flagPrefix $noSpace; then
+ __devpod_debug "_describe found some completions"
+
+ # Return the success of having called _describe
+ return 0
+ else
+ __devpod_debug "_describe did not find completions."
+ __devpod_debug "Checking if we should do file completion."
+ if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then
+ __devpod_debug "deactivating file completion"
+
+ # We must return an error code here to let zsh know that there were no
+ # completions found by _describe; this is what will trigger other
+ # matching algorithms to attempt to find completions.
+ # For example zsh can match letters in the middle of words.
+ return 1
+ else
+ # Perform file completion
+ __devpod_debug "Activating file completion"
+
+ # We must return the result of this command, so it must be the
+ # last command, or else we must store its result to return it.
+ _arguments '*:filename:_files'" ${flagPrefix}"
+ fi
+ fi
+ fi
+}
+
+# don't run the completion function when being source-ed or eval-ed
+if [ "$funcstack[1]" = "_devpod" ]; then
+ _devpod
+fi
diff --git a/zsh/.config/zsh/theme/internal/parser.zsh.zwc b/zsh/.config/zsh/theme/internal/parser.zsh.zwc
index 19d5d73..8312712 100644
--- a/zsh/.config/zsh/theme/internal/parser.zsh.zwc
+++ b/zsh/.config/zsh/theme/internal/parser.zsh.zwc
Binary files differ
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 07065c3..4805208 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -1,48 +1,35 @@
source ~/.config/zsh/antigen.zsh
-
-# if command -v git >/dev/null && [ ! -d ~/.config/zsh/powerlevel10k ]; then
-# echo "info: installing p10k"
-# git clone --depth 1 --single-branch https://github.com/romkatv/powerlevel10k.git ~/.config/zsh/powerlevel10k
-# fi
-#
-if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
- source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
-fi
-
-source ~/.config/zsh/theme/powerlevel10k.zsh-theme
source ~/.config/zsh/conf.d/*.zsh
source ~/.config/zsh/termsupport.zsh
source ~/.config/zsh/title.zsh
-foreground () { fg }
-zle -N foreground
-clearscr () { clear }
-zle -N clearscr
-
-antigen bundle zsh-users/zsh-syntax-highlighting
-antigen bundle zsh-users/zsh-history-substring-search
-antigen bundle zsh-users/zsh-autosuggestions
-antigen bundle zsh-users/zsh-completions
-antigen bundle ael-code/zsh-colored-man-pages
-antigen apply
# {{{ Exports
-#export GOPROXY=https://proxy.neonxp.ru
+export GOPROXY=https://goproxy.ru,direct
+export GONOPROXY=*.sovcombank.group
+export GOSUMDB=off
export GOPRIVATE=devopar.hippoparking.ru,gitlab.sovcombank.group
export EDITOR="nvim"
#export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
-export ANDROID_HOME=$HOME/projects/android/
+export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
-export PATH=$PATH:~/.local/bin:~/go/bin:~/.cargo/bin
-export GOBIN=~/go/bin
+export GOPATH=~/go
+export PATH=$PATH:~/.local/bin:$GOPATH/bin #:~/.cargo/bin:~/.config/v-analyzer/bin:~/projects/tinygo/bin
+export GOBIN=$GOPATH/bin
export GPG_TTY=$(tty)
export LS_OPTIONS='--color=auto'
-export ZK_NOTEBOOK_DIR=$HOME/Документы/notebook/
+
eval "$(dircolors -b)"
-fpath+="~/.config/zsh/comp"
# }}}
+antigen bundle zsh-users/zsh-syntax-highlighting
+antigen bundle zsh-users/zsh-history-substring-search
+antigen bundle zsh-users/zsh-autosuggestions
+antigen bundle zsh-users/zsh-completions
+antigen bundle ael-code/zsh-colored-man-pages
+antigen apply
+
# {{{ Aliases
alias ls='ls $LS_OPTIONS -F'
alias l='ls $LS_OPTIONS -F'
@@ -63,12 +50,42 @@ alias g=git
alias share='wl-paste | curl -si -d @- https://nixshare.ru/paste/clipboard.txt | grep "location:" | sed -s "s/location: //" | wl-copy'
alias p=python3
alias t=todo.sh
+alias ed=gnome-text-editor
[[ ! -f `which exa` ]] || alias ls="exa" && alias ll="exa -l"
compdef _todo t
# }}}
# {{{ Functions
+foreground () { fg }
+zle -N foreground
+clearscr () { clear }
+zle -N clearscr
+
+
function tk() { mkdir -p $1; cd $1; }
+function powerline_precmd() {
+ PS1="$($GOPATH/bin/powerline-go -hostname-only-if-ssh -cwd-max-depth 1 -cwd-mode dironly -error $? -jobs ${${(%):%j}:-0})"
+
+ # Uncomment the following line to automatically clear errors after showing
+ # them once. This not only clears the error for powerline-go, but also for
+ # everything else you run in that shell. Don't enable this if you're not
+ # sure this is what you want.
+
+ set "?"
+}
+
+function install_powerline_precmd() {
+ for s in "${precmd_functions[@]}"; do
+ if [ "$s" = "powerline_precmd" ]; then
+ return
+ fi
+ done
+ precmd_functions+=(powerline_precmd)
+}
+
+if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
+ install_powerline_precmd
+fi
# }}}
# {{{ Options section
@@ -108,9 +125,12 @@ HISTSIZE=100000
SAVEHIST=100000
WORDCHARS=${WORDCHARS//\/[&.;]}
+fpath=(~/.config/zsh/comp $fpath)
autoload -U compinit colors zcalc
compinit -d
+autoload -Uz compinit && compinit
+
autoload -U add-zsh-hook
add-zsh-hook precmd mzc_termsupport_precmd
add-zsh-hook preexec mzc_termsupport_preexec
@@ -157,7 +177,7 @@ bindkey "^z" foreground
bindkey "^ " autosuggest-accept
-bindkey "^k" clearscr
+bindkey "^K" clearscr
# }}}
ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD
@@ -166,5 +186,4 @@ ZSH_THEME_TERM_TITLE_IDLE="%n@%m:%~"
source ~/.config/zsh/theme.zsh
[[ ! -f env.sh ]] || source ./env.sh
[[ ! -f ~/.zshrc.local.zsh ]] || source ~/.zshrc.local.zsh
-[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# }}}