Compare commits

34 Commits

Author SHA1 Message Date
b804ca281c merge: maintenance 2026-09-21 12:47:16 +02:00
53a9e7a3aa fix: send docker-language-server telemetry as init option 2026-09-21 12:46:53 +02:00
5fa6d45dd6 chore: drop redundant config 2026-09-21 12:46:49 +02:00
956a5936ab chore: bump stylua pre-commit hook to v2.5.2 2026-09-21 12:46:48 +02:00
f5d56f51f9 fix: drop rainbow-delimiters nil parser wrapper 2026-09-21 12:46:43 +02:00
939357b363 fix: replace deprecated vim.loop and vim.highlight 2026-09-21 12:46:39 +02:00
bbfa8117a0 chore: bump plugins 2026-09-21 12:46:35 +02:00
a95f1be85c chore: bump plugins 2026-03-17 22:34:23 +01:00
e26e6517fd fix: temporarily wrap rainbow-delimiters 2026-03-17 22:34:14 +01:00
058c9c730d chore: bump deps 2026-02-24 08:35:46 -05:00
27b22c56f3 chore: bump plugins 2026-02-10 10:08:20 +01:00
94ac718d18 chore: bump plugins 2026-02-02 13:44:35 +01:00
5b7104b7d3 feat: set swayconfig ft for *.conf subfiles of ~/.config/sway 2026-01-31 01:30:44 +01:00
351d95964a feat: remove dash from keyword detection 2026-01-31 01:30:40 +01:00
2d66adf036 chore: bump plugins 2026-01-26 14:13:37 +01:00
bf9a28a591 chore: bump plugins 2026-01-19 14:12:23 +01:00
a204b8847d chore: bump plugins 2026-01-12 07:28:51 +01:00
09130425a5 chore: bump plugins 2026-01-05 10:18:09 +01:00
e30bff19b5 feat: disable sh filetype in copilot 2026-01-05 10:17:04 +01:00
baddfeecf0 chore: bump plugins 2025-12-15 09:56:14 +01:00
7a71256f95 chore: bump plugins 2025-12-08 19:15:16 +01:00
4b43236756 chore: bump plugins 2025-12-01 20:45:47 +01:00
5c952912c9 chore: bump plugins 2025-11-24 16:01:43 +01:00
7f9ce1be31 feat: replace nvim-mini/mini.notify with j-hui/fidget.nvim 2025-11-19 11:45:03 -03:00
bcc26b4728 chore: bump plugins 2025-11-19 11:37:08 -03:00
c7be652d62 chore: bump plugins 2025-11-10 13:46:34 +01:00
e801fd9864 chore: bump plugins 2025-11-03 16:51:42 +01:00
2228e08a7d chore: use mini.deps depends instead of multi add 2025-10-29 11:17:27 +01:00
e52cd237a3 feat: add count of dependencies and updating from stdpath("config") 2025-10-28 08:55:41 +01:00
886b010ce9 chore: run formatter 2025-10-27 18:25:46 +01:00
a8fca163a5 chore: bump plugins 2025-10-27 10:23:16 +01:00
df31db15d9 feat: add helptags and jumps fzf keymaps 2025-10-25 14:03:18 +02:00
ceca94e5db feat: replace nvim-mini/mini.pairs with windwp/nvim-autopairs 2025-10-22 00:42:15 +02:00
7ed9fb4e40 chore: bump plugins 2025-10-20 16:23:43 +02:00
18 changed files with 107 additions and 72 deletions

View File

@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v2.3.0
rev: v2.5.2
hooks:
- id: stylua-system
args: [--check, --respect-ignores]

View File

@@ -1,7 +1,5 @@
return {
settings = {
initializationOptions = {
init_options = {
telemetry = "off",
},
},
}

View File

@@ -6,7 +6,6 @@ vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- general
vim.o.backup = false
vim.o.mouse = ""
-- TODO:(janezicmatej) i think mouse scroll is binded to up/down and this
-- deosn't always work
@@ -14,7 +13,6 @@ vim.o.mousescroll = "ver:0,hor:0"
vim.o.writebackup = false
vim.o.undofile = true
vim.o.updatetime = 250
vim.o.timeout = true
vim.o.timeoutlen = 300
-- ui
@@ -30,7 +28,6 @@ vim.o.wrap = false
vim.o.winborder = "double"
-- editing
vim.o.autoindent = true
vim.o.expandtab = true
vim.o.ignorecase = true
vim.o.smartcase = true
@@ -63,11 +60,14 @@ vim.g.clipboard = {
vim.o.completeopt = "menuone,noselect,fuzzy,nosort"
-- default plus added dash
vim.o.iskeyword = "@,48-57,_,192-255,-"
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "highlight when yanking text",
group = vim.api.nvim_create_augroup("CustomHighlightYank", { clear = true }),
callback = function() vim.highlight.on_yank() end,
callback = function() vim.hl.on_yank() end,
})
-- filetype overrides
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = vim.fn.expand("~") .. "/.config/sway/**/*.conf",
callback = function() vim.bo.filetype = "swayconfig" end,
})

View File

@@ -1,6 +1,6 @@
-- bootstrap 'mini.nvim' manually in a way that it gets managed by 'mini.deps'
local mini_path = vim.fn.stdpath("data") .. "/site/pack/deps/start/mini.nvim"
if not vim.loop.fs_stat(mini_path) then
if not vim.uv.fs_stat(mini_path) then
vim.cmd('echo "Installing `mini.nvim`" | redraw')
local clone_cmd = {
"git",

View File

@@ -16,7 +16,6 @@ now_if_args(function()
nix = true,
python = true,
rust = true,
sh = true,
typescript = true,
}

11
lua/plugins/fidget.lua Normal file
View File

@@ -0,0 +1,11 @@
MiniDeps.now(function()
MiniDeps.add("j-hui/fidget.nvim")
local opts = {
notification = {
override_vim_notify = true,
},
}
require("fidget").setup(opts)
end)

View File

@@ -1,8 +1,8 @@
MiniDeps.later(function()
MiniDeps.add("ibhagwan/fzf-lua")
local fzf = require("fzf-lua")
fzf.setup({
local fzf_lua = require("fzf-lua")
fzf_lua.setup({
files = {
no_ignore = true,
toggle_ignore_flag = "--no-ignore-vcs",
@@ -13,11 +13,12 @@ MiniDeps.later(function()
},
})
vim.keymap.set("n", "<leader>sf", fzf.files)
vim.keymap.set("n", "<leader>sg", fzf.live_grep)
vim.keymap.set("n", "<leader>sw", fzf.grep_cword)
vim.keymap.set("v", "<leader>sg", fzf.grep_visual)
vim.keymap.set("n", "<leader>sr", fzf.resume)
vim.keymap.set("n", "<leader>sb", fzf.builtin)
vim.keymap.set("n", "<leader>sf", fzf_lua.files)
vim.keymap.set("n", "<leader>sg", fzf_lua.live_grep)
vim.keymap.set("n", "<leader>sw", fzf_lua.grep_cword)
vim.keymap.set("v", "<leader>sg", fzf_lua.grep_visual)
vim.keymap.set("n", "<leader>sj", fzf_lua.jumps)
vim.keymap.set("n", "<leader>sh", fzf_lua.helptags)
vim.keymap.set("n", "<leader>sr", fzf_lua.resume)
vim.keymap.set("n", "<leader>sb", fzf_lua.builtin)
end)

View File

@@ -1,6 +1,8 @@
MiniDeps.later(function()
MiniDeps.add("nvim-lua/plenary.nvim")
MiniDeps.add("ruifm/gitlinker.nvim")
MiniDeps.add({
source = "ruifm/gitlinker.nvim",
depends = { "nvim-lua/plenary.nvim" },
})
require("gitlinker").setup({
callbacks = {
["git.aflabs.org"] = require("gitlinker.hosts").get_gitlab_type_url,

View File

@@ -1,5 +1,4 @@
MiniDeps.now(function()
require("mini.icons").setup()
MiniIcons.mock_nvim_web_devicons()
MiniIcons.tweak_lsp_kind()
end)

View File

@@ -1,4 +0,0 @@
MiniDeps.now(function()
require("mini.notify").setup()
vim.notify = MiniNotify.make_notify()
end)

View File

@@ -1 +0,0 @@
MiniDeps.later(function() require("mini.pairs").setup() end)

View File

@@ -1,13 +1 @@
MiniDeps.later(function()
local gen_loader = require("mini.snippets").gen_loader
require("mini.snippets").setup({
snippets = {
-- Load custom file with global snippets first (adjust for Windows)
gen_loader.from_file("~/.config/nvim/snippets/global.json"),
-- Load snippets based on current language by reading files from
-- "snippets/" subdirectories from 'runtimepath' directories.
gen_loader.from_lang(),
},
})
end)
MiniDeps.later(function() require("mini.snippets").setup() end)

View File

@@ -2,7 +2,7 @@ local function default_header()
local hour = tonumber(vim.fn.strftime("%H"))
local part_id = math.floor((hour + 4) / 8) + 1
local day_part = ({ "evening", "morning", "afternoon", "evening" })[part_id]
local username = vim.loop.os_get_passwd()["username"] or "USERNAME"
local username = vim.uv.os_get_passwd()["username"] or "USERNAME"
return ("good %s, %s"):format(day_part, username)
end
@@ -12,25 +12,60 @@ local function reinstall_treesitter()
ts.install(ts.get_installed(), { force = true })
end
local function deps_section()
local mini_deps = require("mini.deps")
local nr_deps = #vim.iter(mini_deps):enumerate():totable()
local items = {
{
name = "number of dependencies " .. nr_deps,
action = "",
section = "dependencies",
},
}
local function mk_dep_item(name, action)
return { name = name, action = action, section = "dependencies" }
end
local deps_actions = {
mk_dep_item("update dependencies", "DepsUpdate"),
mk_dep_item("snap dependencies", "DepsSnapSave"),
mk_dep_item("load dependencies", "DepsSnapLoad"),
mk_dep_item("clean dependencies", "DepsClean"),
}
if vim.fn.getcwd() == vim.fn.stdpath("config") then
for _, item in ipairs(deps_actions) do
table.insert(items, item)
end
end
return items
end
MiniDeps.now(function()
local builtins = {
{ name = "edit new buffer", action = "enew", section = "builtin actions" },
{ name = "quit neovim", action = "qall", section = "builtin actions" },
}
require("mini.starter").setup({
query_updaters = "abcdefghijklmnopqrstuvwxyz0123456789_.",
evaluate_single = true,
header = default_header,
footer = "",
items = {
--stylua: ignore start
-- builtins
{ name = "edit new buffer", action = "enew", section = "builtin actions" },
{ name = "quit neovim", action = "qall", section = "builtin actions" },
builtins,
-- dependencies
{ name = "update dependencies", action = "DepsUpdate", section = "dependencies" },
{ name = "snap dependencies", action = "DepsSnapSave", section = "dependencies" },
{ name = "load dependencies", action = "DepsSnapLoad", section = "dependencies" },
{ name = "clean dependencies", action = "DepsClean", section = "dependencies" },
deps_section,
-- debug
{ name = "reinstall treesitter parsers", action = reinstall_treesitter, section = "debug" },
--stylua: ignore end
{
name = "reinstall treesitter parsers",
action = reinstall_treesitter,
section = "debug",
},
},
})
end)

View File

@@ -0,0 +1,4 @@
MiniDeps.later(function()
MiniDeps.add("windwp/nvim-autopairs")
require("nvim-autopairs").setup()
end)

View File

@@ -1,5 +1,7 @@
MiniDeps.now(function()
MiniDeps.add("folke/todo-comments.nvim")
MiniDeps.add("nvim-lua/plenary.nvim")
MiniDeps.add({
source = "folke/todo-comments.nvim",
depends = { "nvim-lua/plenary.nvim" },
})
require("todo-comments").setup()
end)

View File

@@ -3,7 +3,6 @@ local now_if_args = vim.fn.argc(-1) > 0 and MiniDeps.now or MiniDeps.later
now_if_args(function()
MiniDeps.add({
source = "nvim-treesitter/nvim-treesitter",
checkout = "main",
hooks = { post_checkout = function() vim.cmd("TSUpdate") end },
})

View File

@@ -1,15 +1,17 @@
return {
["copilot.vim"] = "da369d90cfd6c396b1d0ec259836a1c7222fb2ea",
["fzf-lua"] = "db3ccffe79480543d8e0f7b0cac0d9b220f9486e",
["copilot.vim"] = "a12fd5672110c8aa7e3c8419e28c96943ca179be",
["fidget.nvim"] = "9e0201673e08e997e7cf52afca5565c70bd117f3",
["fzf-lua"] = "13bb178a299f7493dd64427a58e61904c4b58ecb",
["gitlinker.nvim"] = "cc59f732f3d043b626c8702cb725c82e54d35c25",
["gitsigns.nvim"] = "1ee5c1fd068c81f9dd06483e639c2aa4587dc197",
["gruvbox-material"] = "834dbf21836862300ced7444db4262b796330ab7",
["gitsigns.nvim"] = "8d79f2410c76e62b92e51c28c82e28c1c5a3daeb",
["gruvbox-material"] = "11d779b26a9ab2b3db8c22c6ac9fb6e8ed4fea79",
["guess-indent.nvim"] = "84a4987ff36798c2fc1169cbaff67960aed9776f",
["mini.nvim"] = "5e1dd6e3d5f758eccf6c51461559da785dba688c",
["nvim-lspconfig"] = "ac98db2f9f06a56498ec890a96928774eae412c3",
["nvim-treesitter"] = "0606c7a9dcaa5c5beee0b0f09043e9fdd1ba0a68",
["oil.nvim"] = "919e155fdf38e9148cdb5304faaaf53c20d703ea",
["plenary.nvim"] = "b9fd5226c2f76c951fc8ed5923d85e4de065e509",
["rainbow-delimiters.nvim"] = "3277ad5f96eb03c9d618c88e24f683e4364e578c",
["todo-comments.nvim"] = "19d461ddd543e938eb22505fb03fa878800270b6"
["mini.nvim"] = "4389a4f31f854ce066949ea89c72dc71564f5c20",
["nvim-autopairs"] = "430522f95fe4fb7c511ec64f8c1a90cc6a66c05c",
["nvim-lspconfig"] = "ffd261c09c3dabd0bf1a438f47a8ae3b22f3c3ff",
["nvim-treesitter"] = "f603a2f4da48728f80257fb5fbb90145fd1dc173",
["oil.nvim"] = "b73018b75affd13fa38e2fc94ef753b465f770d7",
["plenary.nvim"] = "74b06c6c75e4eeb3108ec01852001636d85a932b",
["rainbow-delimiters.nvim"] = "3a0fc08dd39e8bf034a4cfef3f2845bd5f565a2e",
["todo-comments.nvim"] = "31e3c38ce9b29781e4422fc0322eb0a21f4e8668"
}