diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-02-12 10:07:22 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-02-12 10:07:22 +0100 |
| commit | f6c748ca0927ceae4b0be630f9c5dbc17946e3fe (patch) | |
| tree | 2a5776df37d279d7376fa95d8cf4e2b9ab347dc6 /modules/home | |
| parent | 50020d65ecbc42e77e71876014d18bd82911fd50 (diff) | |
added configured nvim-treesitter for syntax highlighting
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/i3wm/nord-blue/nvim.nix | 30 |
1 files changed, 24 insertions, 6 deletions
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 |
