nvim: Add nushell lsp

This commit is contained in:
Marty Oehme 2025-03-14 23:51:00 +01:00
parent c98fa26e91
commit 9857cb8953
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 10 additions and 1 deletions
nvim/.config/nvim/lua/core
terminal/.config

View file

@ -6,6 +6,12 @@
--
-- with their respective names used by lspconfig, nvim-treesitter, nvim-lint and conform.
--
local nushell = { lsp = { nushell = {} }, ts = { "nu" } }
if vim.fn.executable("nufmt") == 1 then
nushell.format = {nu = {"nufmt"}}
end
local languages = {
arduino = { lsp = { arduino_language_server = {} }, ts = { "arduino" } },
awk = { ts = { "awk" }, format = { awk = { "gawk" } } },
@ -80,7 +86,7 @@ local languages = {
format = { markdown = { "prettier", "injected" } },
},
nim = { lsp = { nim_langserver = {} }, ts = { "nim", "nim_format_string" }, format = { nim = { "nimpretty" } } },
nushell = { ts = { "nu" } },
nu = nushell,
python = {
lsp = { basedpyright = {}, ruff = {} },
ts = { "python" },

View file

@ -1,3 +1,6 @@
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
format = """
$sudo\
$username\