From 01a7ce066aa37da289a8a82e747b73f61eb14aac Mon Sep 17 00:00:00 2001 From: ZotyDev Date: Sun, 22 Feb 2026 22:13:19 -0300 Subject: [PATCH] feat: add fidget.nvim --- .../sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source | 1 - .../x43jzyi7i3jpz7b6jfll97wbmzfqxlpm-source | 1 + ...le-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa | 2 +- ...a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc | 10 +++++----- flake.nix | 1 + init.lua | 2 +- lazy-lock.json | 3 +++ lua/plugins/fidget.lua | 15 +++++++++++++++ lua/plugins/fzf.lua | 18 ++++++++++++++++++ 9 files changed, 45 insertions(+), 8 deletions(-) delete mode 120000 .direnv/flake-inputs/sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source create mode 120000 .direnv/flake-inputs/x43jzyi7i3jpz7b6jfll97wbmzfqxlpm-source create mode 100644 lua/plugins/fidget.lua create mode 100644 lua/plugins/fzf.lua diff --git a/.direnv/flake-inputs/sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source b/.direnv/flake-inputs/sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source deleted file mode 120000 index c902db4..0000000 --- a/.direnv/flake-inputs/sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source +++ /dev/null @@ -1 +0,0 @@ -/nix/store/sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source \ No newline at end of file diff --git a/.direnv/flake-inputs/x43jzyi7i3jpz7b6jfll97wbmzfqxlpm-source b/.direnv/flake-inputs/x43jzyi7i3jpz7b6jfll97wbmzfqxlpm-source new file mode 120000 index 0000000..99118e7 --- /dev/null +++ b/.direnv/flake-inputs/x43jzyi7i3jpz7b6jfll97wbmzfqxlpm-source @@ -0,0 +1 @@ +/nix/store/x43jzyi7i3jpz7b6jfll97wbmzfqxlpm-source \ No newline at end of file diff --git a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa index f09fe57..0ac06ed 120000 --- a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa +++ b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa @@ -1 +1 @@ -/nix/store/fb40gksyff1z7haxcam9rrnfafsgpvg1-nix-shell-env \ No newline at end of file +/nix/store/9556mmcf407574ldxfcx0gf3ycsd2i23-nix-shell-env \ No newline at end of file diff --git a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc index 66e8db9..3df5c68 100644 --- a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc +++ b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc @@ -35,7 +35,7 @@ NIX_CC='/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0' export NIX_CC NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu='1' export NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu -NIX_CFLAGS_COMPILE=' -frandom-seed=fb40gksyff -isystem /nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10/include -isystem /nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10/include' +NIX_CFLAGS_COMPILE=' -frandom-seed=9556mmcf40 -isystem /nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10/include -isystem /nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10/include' export NIX_CFLAGS_COMPILE NIX_ENFORCE_NO_NATIVE='1' export NIX_ENFORCE_NO_NATIVE @@ -56,7 +56,7 @@ OLDPWD='' export OLDPWD OPTERR='1' OSTYPE='linux-gnu' -PATH='/nix/store/smd007xlbsx35y42rri5xlqhjgajz9in-neovim-0.11.6/bin:/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0/bin:/nix/store/mjf8jlq9grydcdvyw6hb063x5c34g5gf-gcc-15.2.0/bin:/nix/store/0bdqq2z98kg2hfn3k60if6pb5fd5p10h-glibc-2.42-47-bin/bin:/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9/bin:/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44/bin:/nix/store/47mn80zqpygykqailwzw8zlag4cgl75q-binutils-2.44/bin:/nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10/bin:/nix/store/nv3ygzpkcpbq6dlbpvi6w1m3zpzp929q-lua-language-server-3.17.1/bin:/nix/store/q59cgwxnwmrglq12ah4l374bsyp6d20f-nixd-2.9.0/bin:/nix/store/7k6903kwanysggnpw44m8p6ssqmbah1j-rust-analyzer-2026-02-16/bin:/nix/store/c2p7haf4zzkbrir9zs662r68c5dmylbq-patchelf-0.15.2/bin:/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9/bin:/nix/store/16wfacfgap3chf7mcjnd8dwi85dj4qqi-findutils-4.10.0/bin:/nix/store/3p87h6dn5i87i3iq9364imzbqgwvkg2p-diffutils-3.12/bin:/nix/store/ryz8kcrm2bxpccllfqlb7qldsfnqp5c2-gnused-4.9/bin:/nix/store/02vv0r262agf9j5n2y1gmbjvdf12zkl0-gnugrep-3.12/bin:/nix/store/2xq9rayckw8zq26k274xxlikn77jn60j-gawk-5.3.2/bin:/nix/store/qyg62bc2xnpwz0fa9prqxvvk00zj4g9q-gnutar-1.35/bin:/nix/store/84yyzmxs7mb8nhkvcfv9n1l9irpb6mnq-gzip-1.14/bin:/nix/store/90yw24gqmwph4xjp4mqhpx1y1gcrvqla-bzip2-1.0.8-bin/bin:/nix/store/vbah5c4rzy1q1hbqhginyxjhj8d4dj8j-gnumake-4.4.1/bin:/nix/store/f15k3dpilmiyv6zgpib289rnjykgr1r4-bash-5.3p9/bin:/nix/store/wwij6563c6wbg4kzgjhng7vlhf7api19-patch-2.8/bin:/nix/store/zys6d102zp171wpwcs08g632886w2qxs-xz-5.8.2-bin/bin:/nix/store/nyy0bvgjwd98x7ih8pl6pr79qjljgsf7-file-5.45/bin' +PATH='/nix/store/smd007xlbsx35y42rri5xlqhjgajz9in-neovim-0.11.6/bin:/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0/bin:/nix/store/mjf8jlq9grydcdvyw6hb063x5c34g5gf-gcc-15.2.0/bin:/nix/store/0bdqq2z98kg2hfn3k60if6pb5fd5p10h-glibc-2.42-47-bin/bin:/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9/bin:/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44/bin:/nix/store/47mn80zqpygykqailwzw8zlag4cgl75q-binutils-2.44/bin:/nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10/bin:/nix/store/98zgrv8ghd6dzqyc8qiral5vik844r17-fzf-0.67.0/bin:/nix/store/nv3ygzpkcpbq6dlbpvi6w1m3zpzp929q-lua-language-server-3.17.1/bin:/nix/store/q59cgwxnwmrglq12ah4l374bsyp6d20f-nixd-2.9.0/bin:/nix/store/7k6903kwanysggnpw44m8p6ssqmbah1j-rust-analyzer-2026-02-16/bin:/nix/store/c2p7haf4zzkbrir9zs662r68c5dmylbq-patchelf-0.15.2/bin:/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9/bin:/nix/store/16wfacfgap3chf7mcjnd8dwi85dj4qqi-findutils-4.10.0/bin:/nix/store/3p87h6dn5i87i3iq9364imzbqgwvkg2p-diffutils-3.12/bin:/nix/store/ryz8kcrm2bxpccllfqlb7qldsfnqp5c2-gnused-4.9/bin:/nix/store/02vv0r262agf9j5n2y1gmbjvdf12zkl0-gnugrep-3.12/bin:/nix/store/2xq9rayckw8zq26k274xxlikn77jn60j-gawk-5.3.2/bin:/nix/store/qyg62bc2xnpwz0fa9prqxvvk00zj4g9q-gnutar-1.35/bin:/nix/store/84yyzmxs7mb8nhkvcfv9n1l9irpb6mnq-gzip-1.14/bin:/nix/store/90yw24gqmwph4xjp4mqhpx1y1gcrvqla-bzip2-1.0.8-bin/bin:/nix/store/vbah5c4rzy1q1hbqhginyxjhj8d4dj8j-gnumake-4.4.1/bin:/nix/store/f15k3dpilmiyv6zgpib289rnjykgr1r4-bash-5.3p9/bin:/nix/store/wwij6563c6wbg4kzgjhng7vlhf7api19-patch-2.8/bin:/nix/store/zys6d102zp171wpwcs08g632886w2qxs-xz-5.8.2-bin/bin:/nix/store/nyy0bvgjwd98x7ih8pl6pr79qjljgsf7-file-5.45/bin' export PATH PS4='+ ' RANLIB='ranlib' @@ -73,7 +73,7 @@ STRINGS='strings' export STRINGS STRIP='strip' export STRIP -XDG_DATA_DIRS='/nix/store/smd007xlbsx35y42rri5xlqhjgajz9in-neovim-0.11.6/share:/nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10/share:/nix/store/nv3ygzpkcpbq6dlbpvi6w1m3zpzp929q-lua-language-server-3.17.1/share:/nix/store/c2p7haf4zzkbrir9zs662r68c5dmylbq-patchelf-0.15.2/share' +XDG_DATA_DIRS='/nix/store/smd007xlbsx35y42rri5xlqhjgajz9in-neovim-0.11.6/share:/nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10/share:/nix/store/98zgrv8ghd6dzqyc8qiral5vik844r17-fzf-0.67.0/share:/nix/store/nv3ygzpkcpbq6dlbpvi6w1m3zpzp929q-lua-language-server-3.17.1/share:/nix/store/c2p7haf4zzkbrir9zs662r68c5dmylbq-patchelf-0.15.2/share' export XDG_DATA_DIRS __structuredAttrs='' export __structuredAttrs @@ -132,7 +132,7 @@ mesonFlags='' export mesonFlags name='nix-shell-env' export name -nativeBuildInputs='/nix/store/smd007xlbsx35y42rri5xlqhjgajz9in-neovim-0.11.6 /nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0 /nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10 /nix/store/nv3ygzpkcpbq6dlbpvi6w1m3zpzp929q-lua-language-server-3.17.1 /nix/store/q59cgwxnwmrglq12ah4l374bsyp6d20f-nixd-2.9.0 /nix/store/7k6903kwanysggnpw44m8p6ssqmbah1j-rust-analyzer-2026-02-16' +nativeBuildInputs='/nix/store/smd007xlbsx35y42rri5xlqhjgajz9in-neovim-0.11.6 /nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0 /nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10 /nix/store/98zgrv8ghd6dzqyc8qiral5vik844r17-fzf-0.67.0 /nix/store/nv3ygzpkcpbq6dlbpvi6w1m3zpzp929q-lua-language-server-3.17.1 /nix/store/q59cgwxnwmrglq12ah4l374bsyp6d20f-nixd-2.9.0 /nix/store/7k6903kwanysggnpw44m8p6ssqmbah1j-rust-analyzer-2026-02-16' export nativeBuildInputs out='/home/zoty/.config/nvim/outputs/out' export out @@ -153,7 +153,7 @@ phases='buildPhase' export phases pkg='/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0' declare -a pkgsBuildBuild=() -declare -a pkgsBuildHost=('/nix/store/smd007xlbsx35y42rri5xlqhjgajz9in-neovim-0.11.6' '/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0' '/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44' '/nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10' '/nix/store/nv3ygzpkcpbq6dlbpvi6w1m3zpzp929q-lua-language-server-3.17.1' '/nix/store/q59cgwxnwmrglq12ah4l374bsyp6d20f-nixd-2.9.0' '/nix/store/7k6903kwanysggnpw44m8p6ssqmbah1j-rust-analyzer-2026-02-16' '/nix/store/c2p7haf4zzkbrir9zs662r68c5dmylbq-patchelf-0.15.2' '/nix/store/y03z7y8cgdck7vk8qpim30vps4d22gzv-update-autotools-gnu-config-scripts-hook' '/nix/store/0y5xmdb7qfvimjwbq7ibg1xdgkgjwqng-no-broken-symlinks.sh' '/nix/store/cv1d7p48379km6a85h4zp6kr86brh32q-audit-tmpdir.sh' '/nix/store/85clx3b0xkdf58jn161iy80y5223ilbi-compress-man-pages.sh' '/nix/store/p3l1a5y7nllfyrjn2krlwgcc3z0cd3fq-make-symlinks-relative.sh' '/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh' '/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh' '/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh' '/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh' '/nix/store/cmzya9irvxzlkh7lfy6i82gbp0saxqj3-multiple-outputs.sh' '/nix/store/x8c40nfigps493a07sdr2pm5s9j1cdc0-patch-shebangs.sh' '/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh' '/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh' '/nix/store/z7k98578dfzi6l3hsvbivzm7hfqlk0zc-set-source-date-epoch-to-latest.sh' '/nix/store/pilsssjjdxvdphlg2h19p0bfx5q0jzkn-strip.sh' ) +declare -a pkgsBuildHost=('/nix/store/smd007xlbsx35y42rri5xlqhjgajz9in-neovim-0.11.6' '/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0' '/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44' '/nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10' '/nix/store/98zgrv8ghd6dzqyc8qiral5vik844r17-fzf-0.67.0' '/nix/store/nv3ygzpkcpbq6dlbpvi6w1m3zpzp929q-lua-language-server-3.17.1' '/nix/store/q59cgwxnwmrglq12ah4l374bsyp6d20f-nixd-2.9.0' '/nix/store/7k6903kwanysggnpw44m8p6ssqmbah1j-rust-analyzer-2026-02-16' '/nix/store/c2p7haf4zzkbrir9zs662r68c5dmylbq-patchelf-0.15.2' '/nix/store/y03z7y8cgdck7vk8qpim30vps4d22gzv-update-autotools-gnu-config-scripts-hook' '/nix/store/0y5xmdb7qfvimjwbq7ibg1xdgkgjwqng-no-broken-symlinks.sh' '/nix/store/cv1d7p48379km6a85h4zp6kr86brh32q-audit-tmpdir.sh' '/nix/store/85clx3b0xkdf58jn161iy80y5223ilbi-compress-man-pages.sh' '/nix/store/p3l1a5y7nllfyrjn2krlwgcc3z0cd3fq-make-symlinks-relative.sh' '/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh' '/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh' '/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh' '/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh' '/nix/store/cmzya9irvxzlkh7lfy6i82gbp0saxqj3-multiple-outputs.sh' '/nix/store/x8c40nfigps493a07sdr2pm5s9j1cdc0-patch-shebangs.sh' '/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh' '/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh' '/nix/store/z7k98578dfzi6l3hsvbivzm7hfqlk0zc-set-source-date-epoch-to-latest.sh' '/nix/store/pilsssjjdxvdphlg2h19p0bfx5q0jzkn-strip.sh' ) declare -a pkgsBuildTarget=() declare -a pkgsHostHost=() declare -a pkgsHostTarget=() diff --git a/flake.nix b/flake.nix index 1f926ab..aedab62 100644 --- a/flake.nix +++ b/flake.nix @@ -14,6 +14,7 @@ neovim gcc tree-sitter + fzf # LSPs lua-language-server diff --git a/init.lua b/init.lua index 6317621..f463dde 100644 --- a/init.lua +++ b/init.lua @@ -11,7 +11,7 @@ vim.api.nvim_create_autocmd("LspAttach", { vim.keymap.set("n", "gr", vim.lsp.buf.references, opts) vim.keymap.set("n", "r", vim.lsp.buf.rename, opts) vim.keymap.set("n", "a", vim.lsp.buf.code_action, opts) - vim.keymap.set("n", "ff", function() + vim.keymap.set("n", "for", function() vim.lsp.buf.format({ async = true }) end, opts) end, diff --git a/lazy-lock.json b/lazy-lock.json index 36d2743..56a780d 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,8 +1,11 @@ { "blink.cmp": { "branch": "main", "commit": "4b18c32adef2898f95cdef6192cbd5796c1a332d" }, + "fidget.nvim": { "branch": "main", "commit": "7fa433a83118a70fe24c1ce88d5f0bd3453c0970" }, "friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" }, + "fzf-lua": { "branch": "main", "commit": "9004cbb4c065a32b690e909c49903967b45301eb" }, "gruvbox.nvim": { "branch": "main", "commit": "561126520034a1dac2f78ab063db025d12555998" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "nvim-treesitter": { "branch": "main", "commit": "dc42c209f3820bdfaae0956f15de29689aa6b451" }, + "nvim-web-devicons": { "branch": "master", "commit": "746ffbb17975ebd6c40142362eee1b0249969c5c" }, "rustaceanvim": { "branch": "master", "commit": "13f7f5c46d2db0b8daee64a842d8faebfe9064c0" } } diff --git a/lua/plugins/fidget.lua b/lua/plugins/fidget.lua new file mode 100644 index 0000000..3693d30 --- /dev/null +++ b/lua/plugins/fidget.lua @@ -0,0 +1,15 @@ +return { + 'j-hui/fidget.nvim', + opts = { + progress = { + display = { + done_ttl = 2, + }, + }, + notification = { + window = { + winblend = 0, + }, + }, + }, +} diff --git a/lua/plugins/fzf.lua b/lua/plugins/fzf.lua new file mode 100644 index 0000000..67aa963 --- /dev/null +++ b/lua/plugins/fzf.lua @@ -0,0 +1,18 @@ +return { + 'ibhagwan/fzf-lua', + dependencies = { 'nvim-tree/nvim-web-devicons' }, + ---@module "fzf-lua" + ---@type fzf.lua.Config|{} + ---@diagnostic disable: missing-fields + opts = {}, + ---@diagnostic enable: missing-fields + keys = { + { 'ff', function() require('fzf-lua').files() end, desc = 'Find files' }, + { 'fg', function() require('fzf-lua').live_grep() end, desc = 'Live grep' }, + { 'fb', function() require('fzf-lua').buffers() end, desc = 'Buffers' }, + { 'fh', function() require('fzf-lua').help_tags() end, desc = 'Help tags' }, + { 'fr', function() require('fzf-lua').oldfiles() end, desc = 'Recent files' }, + { 'fd', function() require('fzf-lua').diagnostic_document() end, desc = 'Diagnostics' }, + { 'fs', function() require('fzf-lua').lsp_document_symbosl() end, desc = 'LSP symbols' }, + }, +}