LSP server and treesitter grammar for Nushell

This commit is contained in:
Imbus 2024-08-05 06:04:17 +02:00
parent 5eb58bd9c6
commit 8e33c583bc
2 changed files with 9 additions and 0 deletions

View file

@ -15,6 +15,10 @@ return { -- LSP Configuration & Plugins
{ 'folke/lazydev.nvim', opts = {} }, { 'folke/lazydev.nvim', opts = {} },
}, },
config = function() config = function()
-- Manual config for Nushell LSP
-- TODO: Remove once `mason-lspconfig` supports Nushell
require('lspconfig').nushell.setup {}
-- Brief aside: **What is LSP?** -- Brief aside: **What is LSP?**
-- --
-- LSP is an initialism you've probably heard, but might not understand what it is. -- LSP is an initialism you've probably heard, but might not understand what it is.

View file

@ -14,6 +14,11 @@ return { -- Highlight, edit, and navigate code
}, },
indent = { enable = true, disable = { 'ruby' } }, indent = { enable = true, disable = { 'ruby' } },
}, },
dependencies = {
-- NOTE: additional parser
-- TODO: Remove when no longer needed
{ 'nushell/tree-sitter-nu' },
},
config = function(_, opts) config = function(_, opts)
-- [[ Configure Treesitter ]] See `:help nvim-treesitter` -- [[ Configure Treesitter ]] See `:help nvim-treesitter`