We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
old https://github.com/mhartington/formatter.nvim
suggest: https://github.com/stevearc/conform.nvim
conform.nvim has default formatter config which can simple the config.
like: https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/stylua.lua
so in conform.nvim we only need to:
require("conform").setup({ formatters_by_ft = { lua = { "stylua" }, }, })
but formatter.nvim we need to do like this:
require("formatter").setup { -- Enable or disable logging logging = false, -- Set the log level log_level = vim.log.levels.TRACE, filetype = { lua = { -- stylua function() return { exe = "stylua", args = { "--search-parent-directories", "--stdin-filepath", vim.api.nvim_buf_get_name(0), "-" }, stdin = true, } end, }, } }
The text was updated successfully, but these errors were encountered:
ttys3
No branches or pull requests
old https://github.com/mhartington/formatter.nvim
suggest:
https://github.com/stevearc/conform.nvim
conform.nvim has default formatter config which can simple the config.
like: https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/stylua.lua
so in conform.nvim we only need to:
but formatter.nvim we need to do like this:
The text was updated successfully, but these errors were encountered: