From 03409a59f0f3aad892d025683eca44e5cd2bbad1 Mon Sep 17 00:00:00 2001 From: ZotyDev Date: Sun, 22 Feb 2026 14:32:59 -0300 Subject: [PATCH] feat: add treesitter --- .../nwcdjn11dysa7jsi8figcgcgp6xz6vlr-source | 1 - .../sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source | 1 + ...-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa | 2 +- ...ofile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc | 12 ++++++------ flake.nix | 2 ++ lazy-lock.json | 3 ++- lua/plugins/treesitter.lua | 8 ++++++++ 7 files changed, 20 insertions(+), 9 deletions(-) delete mode 120000 .direnv/flake-inputs/nwcdjn11dysa7jsi8figcgcgp6xz6vlr-source create mode 120000 .direnv/flake-inputs/sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source create mode 100644 lua/plugins/treesitter.lua diff --git a/.direnv/flake-inputs/nwcdjn11dysa7jsi8figcgcgp6xz6vlr-source b/.direnv/flake-inputs/nwcdjn11dysa7jsi8figcgcgp6xz6vlr-source deleted file mode 120000 index c54b29b..0000000 --- a/.direnv/flake-inputs/nwcdjn11dysa7jsi8figcgcgp6xz6vlr-source +++ /dev/null @@ -1 +0,0 @@ -/nix/store/nwcdjn11dysa7jsi8figcgcgp6xz6vlr-source \ No newline at end of file diff --git a/.direnv/flake-inputs/sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source b/.direnv/flake-inputs/sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source new file mode 120000 index 0000000..c902db4 --- /dev/null +++ b/.direnv/flake-inputs/sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source @@ -0,0 +1 @@ +/nix/store/sy9yq92fwzyx6ip2nz3b72szsvnncjcb-source \ No newline at end of file diff --git a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa index d3cb6e2..f09fe57 120000 --- a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa +++ b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa @@ -1 +1 @@ -/nix/store/zr45c7jc8w9k22sdj2nnaadbc2ahlyrd-nix-shell-env \ No newline at end of file +/nix/store/fb40gksyff1z7haxcam9rrnfafsgpvg1-nix-shell-env \ No newline at end of file diff --git a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc index ee38be0..66e8db9 100644 --- a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc +++ b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc @@ -35,13 +35,13 @@ 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=zr45c7jc8w' +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' export NIX_CFLAGS_COMPILE NIX_ENFORCE_NO_NATIVE='1' export NIX_ENFORCE_NO_NATIVE NIX_HARDENING_ENABLE='bindnow format fortify fortify3 libcxxhardeningextensive libcxxhardeningfast pic relro stackclashprotection stackprotector strictoverflow zerocallusedregs' export NIX_HARDENING_ENABLE -NIX_LDFLAGS='-rpath /home/zoty/.config/nvim/outputs/out/lib -L/nix/store/q59cgwxnwmrglq12ah4l374bsyp6d20f-nixd-2.9.0/lib -L/nix/store/q59cgwxnwmrglq12ah4l374bsyp6d20f-nixd-2.9.0/lib' +NIX_LDFLAGS='-rpath /home/zoty/.config/nvim/outputs/out/lib -L/nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10/lib -L/nix/store/q59cgwxnwmrglq12ah4l374bsyp6d20f-nixd-2.9.0/lib -L/nix/store/kdq7yxriv69gk1098mlawphijs3p2y7v-tree-sitter-0.25.10/lib -L/nix/store/q59cgwxnwmrglq12ah4l374bsyp6d20f-nixd-2.9.0/lib' export NIX_LDFLAGS NIX_NO_SELF_RPATH='1' NIX_STORE='/nix/store' @@ -56,7 +56,7 @@ OLDPWD='' export OLDPWD OPTERR='1' OSTYPE='linux-gnu' -PATH='/nix/store/smd007xlbsx35y42rri5xlqhjgajz9in-neovim-0.11.6/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/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/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/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/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/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/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/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/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' '/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0' '/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44' ) +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 pkgsBuildTarget=() declare -a pkgsHostHost=() declare -a pkgsHostTarget=() diff --git a/flake.nix b/flake.nix index 41a8ece..1f926ab 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,8 @@ devShells.default = pkgs.mkShell { packages = with pkgs; [ neovim + gcc + tree-sitter # LSPs lua-language-server diff --git a/lazy-lock.json b/lazy-lock.json index 78ff190..afa4792 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -2,5 +2,6 @@ "blink.cmp": { "branch": "main", "commit": "4b18c32adef2898f95cdef6192cbd5796c1a332d" }, "friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" }, "gruvbox.nvim": { "branch": "main", "commit": "561126520034a1dac2f78ab063db025d12555998" }, - "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" } + "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, + "nvim-treesitter": { "branch": "main", "commit": "dc42c209f3820bdfaae0956f15de29689aa6b451" } } diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua new file mode 100644 index 0000000..9bd0c70 --- /dev/null +++ b/lua/plugins/treesitter.lua @@ -0,0 +1,8 @@ +return { + 'nvim-treesitter/nvim-treesitter', + opts = { + highlight = { enable = true }, + indent = { enable = true }, + }, +} +