Skip to content

Commit

Permalink
Update lazy.nvim installation config (#129)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
maxim-uvarov authored Nov 14, 2024
1 parent 7e0f16f commit 86aabee
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions installation/neovim.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 86aabee

Please sign in to comment.