nvim: Add nushell lsp
This commit is contained in:
parent
c98fa26e91
commit
9857cb8953
2 changed files with 10 additions and 1 deletions
|
@ -6,6 +6,12 @@
|
||||||
--
|
--
|
||||||
-- with their respective names used by lspconfig, nvim-treesitter, nvim-lint and conform.
|
-- 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 = {
|
local languages = {
|
||||||
arduino = { lsp = { arduino_language_server = {} }, ts = { "arduino" } },
|
arduino = { lsp = { arduino_language_server = {} }, ts = { "arduino" } },
|
||||||
awk = { ts = { "awk" }, format = { awk = { "gawk" } } },
|
awk = { ts = { "awk" }, format = { awk = { "gawk" } } },
|
||||||
|
@ -80,7 +86,7 @@ local languages = {
|
||||||
format = { markdown = { "prettier", "injected" } },
|
format = { markdown = { "prettier", "injected" } },
|
||||||
},
|
},
|
||||||
nim = { lsp = { nim_langserver = {} }, ts = { "nim", "nim_format_string" }, format = { nim = { "nimpretty" } } },
|
nim = { lsp = { nim_langserver = {} }, ts = { "nim", "nim_format_string" }, format = { nim = { "nimpretty" } } },
|
||||||
nushell = { ts = { "nu" } },
|
nu = nushell,
|
||||||
python = {
|
python = {
|
||||||
lsp = { basedpyright = {}, ruff = {} },
|
lsp = { basedpyright = {}, ruff = {} },
|
||||||
ts = { "python" },
|
ts = { "python" },
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# Get editor completions based on the config schema
|
||||||
|
"$schema" = 'https://starship.rs/config-schema.json'
|
||||||
|
|
||||||
format = """
|
format = """
|
||||||
$sudo\
|
$sudo\
|
||||||
$username\
|
$username\
|
||||||
|
|
Loading…
Reference in a new issue