From f6c748ca0927ceae4b0be630f9c5dbc17946e3fe Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Thu, 12 Feb 2026 10:07:22 +0100 Subject: added configured nvim-treesitter for syntax highlighting --- modules/home/i3wm/nord-blue/nvim.nix | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/home/i3wm/nord-blue/nvim.nix b/modules/home/i3wm/nord-blue/nvim.nix index a8ab8a9..6e4f610 100644 --- a/modules/home/i3wm/nord-blue/nvim.nix +++ b/modules/home/i3wm/nord-blue/nvim.nix @@ -7,12 +7,30 @@ viAlias = true; vimAlias = true; - plugins = [ - pkgs.vimPlugins.nvim-tree-lua - { - plugin = pkgs.vimPlugins.vim-startify; - config = "let g:startify_change_to_vcs_root = 0"; - } + plugins = with pkgs.vimPlugins; [ + (nvim-treesitter.withPlugins (p: [ + p.lua + p.nix + p.rust + p.python + p.bash + ])) + + #telescope-nvim + + { + plugin = vim-startify; # Add the plugin and its coresponding config + config = "let g:startify_change_to_vcs_root = 0"; + } ]; + + extraLuaConfig = '' + vim.opt.number = true + vim.opt.relativenumber = true + + -- Plugins initiated on launch + require("nvim-treesitter.configs").setup({ highlight = { enable = true }, indent = { enable = true }, }) -- Treesitter + + ''; }; } \ No newline at end of file -- cgit v1.2.3