-
Notifications
You must be signed in to change notification settings - Fork 1
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
afe394e
commit 8ea7d32
Showing
11 changed files
with
166 additions
and
145 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,9 +1,7 @@ | ||
local efm = require('konrad.lsp.efm') | ||
|
||
local fts = { "python" } | ||
local entry = { | ||
formatCommand = "black --no-color --quiet --stdin-filename '${INPUT}' -", | ||
formatStdin = true, | ||
return { | ||
filetypes = { "python" }, | ||
entry = { | ||
formatCommand = "black --no-color --quiet --stdin-filename '${INPUT}' -", | ||
formatStdin = true, | ||
}, | ||
} | ||
|
||
return efm.make_languages_entry_for_fts(fts, entry) |
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,9 +1,7 @@ | ||
local efm = require('konrad.lsp.efm') | ||
|
||
local fts = { "go" } | ||
local entry = { | ||
formatCommand = "goimports", | ||
formatStdin = true, | ||
return { | ||
filetypes = { "go" }, | ||
entry = { | ||
formatCommand = "goimports", | ||
formatStdin = true, | ||
}, | ||
} | ||
|
||
return efm.make_languages_entry_for_fts(fts, entry) |
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,12 +1,10 @@ | ||
local efm = require('konrad.lsp.efm') | ||
|
||
local fts = { "go" } | ||
local entry = { | ||
prefix = "golangci-lint", | ||
lintCommand = "golangci-lint run --color never --out-format tab '${INPUT}'", | ||
lintStdin = false, | ||
lintFormats = { '%.%#:%l:%c %m' }, | ||
rootMarkers = {}, | ||
return { | ||
filetypes = { "go" }, | ||
entry = { | ||
prefix = "golangci-lint", | ||
lintCommand = "golangci-lint run --color never --out-format tab '${INPUT}'", | ||
lintStdin = false, | ||
lintFormats = { "%.%#:%l:%c %m" }, | ||
rootMarkers = {}, | ||
}, | ||
} | ||
|
||
return efm.make_languages_entry_for_fts(fts, entry) |
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,9 +1,7 @@ | ||
local efm = require('konrad.lsp.efm') | ||
|
||
local fts = { "python" } | ||
local entry = { | ||
formatCommand = "isort --stdout --filename '${INPUT}' -", | ||
formatStdin = true, | ||
return { | ||
filetypes = { "python" }, | ||
entry = { | ||
formatCommand = "isort --stdout --filename '${INPUT}' -", | ||
formatStdin = true, | ||
}, | ||
} | ||
|
||
return efm.make_languages_entry_for_fts(fts, entry) |
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,10 +1,10 @@ | ||
local efm = require('konrad.lsp.efm') | ||
local binaries = require('konrad.binaries') | ||
local binaries = require("konrad.binaries") | ||
|
||
local fts = { "json" } | ||
local entry = { | ||
lintCommand = binaries.jq .. " .", | ||
lintFormats = { "parse %trror: %m at line %l, column %c" }, | ||
lintSource = "jq", | ||
return { | ||
filetypes = { "json" }, | ||
entry = { | ||
lintCommand = binaries.jq .. " .", | ||
lintFormats = { "parse %trror: %m at line %l, column %c" }, | ||
lintSource = "jq", | ||
}, | ||
} | ||
return efm.make_languages_entry_for_fts(fts, entry) |
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,25 +1,43 @@ | ||
local efm = require('konrad.lsp.efm') | ||
local binaries = require('konrad.binaries') | ||
local binaries = require("konrad.binaries") | ||
|
||
local fts = { "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "css", "scss", "less", | ||
"html", "json", "jsonc", "yaml", "markdown", "markdown.mdx", "graphql", "handlebars", "toml" } | ||
|
||
local entry = { | ||
formatCommand = binaries.prettier .. " --plugin-search-dir " .. binaries.prettier_plugin_toml .. | ||
" --stdin --stdin-filepath '${INPUT}' ${--range-start:charStart} " | ||
.. '${--range-end:charEnd} ${--tab-width:tabSize} ${--use-tabs:!insertSpaces}', | ||
formatStdin = true, | ||
formatCanRange = true, | ||
rootMarkers = { | ||
".prettierrc", | ||
".prettierrc.json", | ||
".prettierrc.js", | ||
".prettierrc.yml", | ||
".prettierrc.yaml", | ||
".prettierrc.json5", | ||
".prettierrc.mjs", | ||
".prettierrc.cjs", | ||
".prettierrc.toml", | ||
return { | ||
filetypes = { | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"vue", | ||
"css", | ||
"scss", | ||
"less", | ||
"html", | ||
"json", | ||
"jsonc", | ||
"yaml", | ||
"markdown", | ||
"markdown.mdx", | ||
"graphql", | ||
"handlebars", | ||
"toml", | ||
}, | ||
entry = { | ||
formatCommand = binaries.prettier | ||
.. " --plugin-search-dir " | ||
.. binaries.prettier_plugin_toml | ||
.. " --stdin --stdin-filepath '${INPUT}' ${--range-start:charStart} " | ||
.. "${--range-end:charEnd} ${--tab-width:tabSize} ${--use-tabs:!insertSpaces}", | ||
formatStdin = true, | ||
formatCanRange = true, | ||
rootMarkers = { | ||
".prettierrc", | ||
".prettierrc.json", | ||
".prettierrc.js", | ||
".prettierrc.yml", | ||
".prettierrc.yaml", | ||
".prettierrc.json5", | ||
".prettierrc.mjs", | ||
".prettierrc.cjs", | ||
".prettierrc.toml", | ||
}, | ||
}, | ||
} | ||
return efm.make_languages_entry_for_fts(fts, entry) |
Oops, something went wrong.