-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13be388
commit d5acd93
Showing
5 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
return { | ||
alejandra = require "bombadil.lsp.null-ls.alejandra", | ||
jsonnet = require "bombadil.lsp.null-ls.jsonnet", | ||
man = require "bombadil.lsp.null-ls.man", | ||
statix = require "bombadil.lsp.null-ls.statix", | ||
local custom_sources = { "alejandra", "jsonnet", "man", "prisma", "statix" } | ||
|
||
local sources = { | ||
code_actions = {}, | ||
diagnostics = {}, | ||
formatting = {}, | ||
hover = {}, | ||
} | ||
|
||
for _, name in ipairs(custom_sources) do | ||
local custom_source = require("bombadil.lsp.null-ls." .. name) | ||
for action, source in pairs(custom_source) do | ||
sources[action][name] = source | ||
end | ||
end | ||
|
||
return sources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local h = require "null-ls.helpers" | ||
local methods = require "null-ls.methods" | ||
local FORMATTING = methods.internal.FORMATTING | ||
|
||
local sources = {} | ||
|
||
sources.formatting = h.make_builtin { | ||
name = "prismaFmt", | ||
meta = { | ||
url = "https://github.com/prisma/prisma-engines", | ||
description = "Formatter for the prisma filetype.", | ||
}, | ||
method = FORMATTING, | ||
filetypes = { "prisma" }, | ||
generator_opts = { | ||
command = "prisma-fmt", | ||
args = { "format" }, | ||
to_stdin = true, | ||
}, | ||
factory = h.formatter_factory, | ||
} | ||
|
||
return sources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters