mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(lang/fsharp): add F# support to omnisharp extra
Extend the existing C#/VB setup to support F# development with formatting, LSP, and debugging integration. - Extend recommended filetypes and roots to include F# - Ensure Treesitter installs the `fsharp` parser - Add Fantomas formatter in none-ls and Conform - Ensure Mason installs fsautocomplete and fantomas - Extend DAP configuration to include `fsharp`
This commit is contained in:
parent
b889978151
commit
5ecf74abd2
1 changed files with 6 additions and 4 deletions
|
|
@ -1,15 +1,15 @@
|
||||||
return {
|
return {
|
||||||
recommended = function()
|
recommended = function()
|
||||||
return LazyVim.extras.wants({
|
return LazyVim.extras.wants({
|
||||||
ft = { "cs", "vb" },
|
ft = { "cs", "vb", "fsharp" },
|
||||||
root = { "*.sln", "*.csproj", "omnisharp.json", "function.json" },
|
root = { "*.sln", "*.csproj", "*.fsproj", "omnisharp.json", "function.json", "paket.dependencies", "paket.lock" },
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
||||||
{ "Hoffs/omnisharp-extended-lsp.nvim", lazy = true },
|
{ "Hoffs/omnisharp-extended-lsp.nvim", lazy = true },
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
opts = { ensure_installed = { "c_sharp" } },
|
opts = { ensure_installed = { "c_sharp", "fsharp" } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvimtools/none-ls.nvim",
|
"nvimtools/none-ls.nvim",
|
||||||
|
|
@ -18,6 +18,7 @@ return {
|
||||||
local nls = require("null-ls")
|
local nls = require("null-ls")
|
||||||
opts.sources = opts.sources or {}
|
opts.sources = opts.sources or {}
|
||||||
table.insert(opts.sources, nls.builtins.formatting.csharpier)
|
table.insert(opts.sources, nls.builtins.formatting.csharpier)
|
||||||
|
table.insert(opts.sources, nls.builtins.formatting.fantomas)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -26,6 +27,7 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
cs = { "csharpier" },
|
cs = { "csharpier" },
|
||||||
|
fsharp = { "fantomas" },
|
||||||
},
|
},
|
||||||
formatters = {
|
formatters = {
|
||||||
csharpier = {
|
csharpier = {
|
||||||
|
|
@ -37,7 +39,7 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mason-org/mason.nvim",
|
"mason-org/mason.nvim",
|
||||||
opts = { ensure_installed = { "csharpier", "netcoredbg" } },
|
opts = { ensure_installed = { "csharpier", "netcoredbg", "fsautocomplete", "fantomas" } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue