diff --git a/configuration.nix b/configuration.nix index 12541b9..2424043 100644 --- a/configuration.nix +++ b/configuration.nix @@ -131,6 +131,7 @@ in { }; security.sudo = { + # me ne frego. i dare you to privilege escalate me enable = true; extraRules = [ { diff --git a/home/programs/nvim/default.nix b/home/programs/nvim/default.nix index 1e0999e..94d8a5a 100644 --- a/home/programs/nvim/default.nix +++ b/home/programs/nvim/default.nix @@ -24,6 +24,13 @@ xclip wl-clipboard + ripgrep + fd + lua-language-server + rust-analyzer-unwrapped + black + nodejs_22 + # gh ]; plugins = with pkgs.vimPlugins; [ @@ -60,6 +67,42 @@ plugin = lualine-nvim; config = toLuaFile ./plugins/lualine.lua; } + { + plugin = nvim-treesitter.withPlugins (p: [ + # p.tree-sitter-nix + # p.tree-sitter-vim + # p.tree-sitter-bash + # p.tree-sitter-lua + # p.tree-sitter-python + # p.tree-sitter-json + p.bash + p.comment + p.css + p.dockerfile + p.fish + p.gitattributes + p.gitignore + p.go + p.gomod + p.gowork + p.hcl + p.javascript + p.jq + p.json5 + p.json + p.lua + p.make + p.markdown + p.nix + p.python + p.rust + p.toml + p.typescript + p.vue + p.yaml + ]); + config = toLuaFile ./plugins/treesitter.lua; + } ]; # extraConfig = lib.fileContents ./init.vim; diff --git a/home/programs/nvim/plugins/treesitter.lua b/home/programs/nvim/plugins/treesitter.lua new file mode 100644 index 0000000..e04b064 --- /dev/null +++ b/home/programs/nvim/plugins/treesitter.lua @@ -0,0 +1,6 @@ +require('nvim-treesitter.configs').setup { + ensure_installed = {}, + auto_install = false, + highlight = { enable = true }, + indent = { enable = true }, +}