From 86aabeeaf4d3fc544d132904ef9981a888314ec0 Mon Sep 17 00:00:00 2001 From: Maxim Uvarov Date: Thu, 14 Nov 2024 17:03:40 -0300 Subject: [PATCH] Update lazy.nvim installation config (#129) The current version of the config doesn't enable highlighting of Nushell code. ChatGPT suggested the changes. I tested the changes with a freshly installed kickstart.nvim and NvChad, and they seem to be working for me. However, I'm a total noob with nvim. --- installation/neovim.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/installation/neovim.md b/installation/neovim.md index 9f698cf..ff5795d 100644 --- a/installation/neovim.md +++ b/installation/neovim.md @@ -8,10 +8,15 @@ Extend your lazy config with treesitter and the nu parser. The parser doesn't ha { "nvim-treesitter/nvim-treesitter", config = function() - -- setup treesitter with config + require("nvim-treesitter.configs").setup { + ensure_installed = { "nu" }, -- Ensure the "nu" parser is installed + highlight = { + enable = true, -- Enable syntax highlighting + }, + } end, dependencies = { - -- NOTE: additional parser + -- Additional Nushell parser { "nushell/tree-sitter-nu", build = ":TSUpdate nu" }, }, build = ":TSUpdate",