Skip to content

Commit

Permalink
Neovim: Add stylua config to project instead of editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mange committed Dec 17, 2021
1 parent bd87ef7 commit 3ca97e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
15 changes: 1 addition & 14 deletions config/nvim/lua/mange/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,7 @@ if_require("null-ls", function(null_ls)
-- on a buffer or if I disable autoformatting for some other reason.
-- null_ls.builtins.formatting.trim_whitespace,

null_ls.builtins.formatting.stylua.with({
extra_args = {
"--column-width",
"80",
"--indent-type",
"Spaces",
"--indent-width",
"2",
"--line-endings",
"Unix",
"--quote-style",
"AutoPreferDouble",
},
}),
null_ls.builtins.formatting.stylua,

null_ls.builtins.formatting.standardrb,
-- null_ls.builtins.formatting.rubocop,
Expand Down
5 changes: 5 additions & 0 deletions stylua.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
column_width = 80
indent_type = "Spaces"
indent_width = 2
no_call_parentheses = true
quote_style = "AutoPreferDouble"

0 comments on commit 3ca97e4

Please sign in to comment.