Comments (5)
you are my god, thank you very much again.
It turns out that for some linters, you don't need to add the last parameter, such as-or ${INPUT}. I haven't succeeded before because I haven't figured this out.
from efmls-configs-nvim.
I do it, use this command: "swiftformat stdin --stdinpath '${INPUT}'"
local ls = {
sh = {
require('efmls-configs.formatters.beautysh'),
},
zsh = {
require('efmls-configs.formatters.beautysh'),
},
swift = {
{
formatCommand = "swiftformat stdin --stdinpath '${INPUT}'",
formatStdin = true,
}
}
}
L = {
setup = function(lspconfig)
lspconfig.efm.setup({
filetypes = vim.tbl_keys(ls),
init_options = {
documentFormatting = true,
documentRangeFormatting = true,
},
settings = {
languages = ls,
},
})
end,
}
return L
from efmls-configs-nvim.
I think you are missing --quiet
but I've went ahead and added the swiftformat as a config for you to try.
Try to update the plugin and replace your swift with the following:
local ls = {
-- ...
swift = {
require('efmls-configs.formatters.swiftformat')
}
}
Let me know if you're still having issues with the config or not.
from efmls-configs-nvim.
thank you very much, there will be error in LspLog without --quiet, thank you for your comment and update.
I have other problem for realm/SwiftLint, I tried my best but couldn't configure it, so I ended up using nvim-lint.
Could you give me some advice if you have time? Finally, thank you again for your update, which is very helpful to me.
from efmls-configs-nvim.
Added swiftlint
, give it try whenever you can or anyone else.
Also feel free to look at the code and use it however you want. I've tested it on my machine and seems like the lintFormats
work.
from efmls-configs-nvim.
Related Issues (20)
- Prettier config out of date HOT 4
- More declarative approach to settings extra args? HOT 2
- sqlfluff linter config HOT 2
- Prettier, Prettierd: tabWidth property in the config file's ignored HOT 3
- Unclear how to partially override `efmls-configs` HOT 2
- How to remove stdout ? (Trying to add my custom formatter) HOT 1
- how to set `codespell` for all filetype? HOT 5
- golangci_lint linter not working when used from efmls HOT 2
- ERROR "mcs": No global executable found, check |efmls-configs-issues| for help HOT 8
- Golangci_Lint Lacks Ability to Run Against Package (Possible Configuration Error?) HOT 6
- Sqlfluff linting does not seem to work HOT 4
- Formatter does not reflect changes to the buffer HOT 2
- Any interest in merging support for sql-formatter? HOT 5
- Provide all the tools and their configuration for relevant filetypes as a provider
- Feature request: Use mason-installed, non pip/node executables when available HOT 10
- [ERROR][2023-10-10 13:12:33] .../vim/lsp/rpc.lua:675 "rpc" "/home/w/.local/share/nvim/mason/bin/efm-langserver" "stderr" "2023/10/10 13:12:33 nil --color Never -: sh:行1: nil:未找到命令\n\n" HOT 4
- `:checkhealth` is broken HOT 6
- Adopt formatter/linter commands from dead `null-ls` HOT 3
- Use project installed ESLint HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efmls-configs-nvim.