complete refactor with kickstart.nvim
This commit is contained in:
parent
f3d84f90cd
commit
897d00ad32
16 changed files with 571 additions and 404 deletions
27
.config/nvim/lua/rahcodes/null-ls/rubocop.lua
Normal file
27
.config/nvim/lua/rahcodes/null-ls/rubocop.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
local h = require("null-ls.helpers")
|
||||
local methods = require("null-ls.methods")
|
||||
|
||||
local FORMATTING = methods.internal.FORMATTING
|
||||
|
||||
return h.make_builtin({
|
||||
name = "rubocop",
|
||||
meta = {
|
||||
url = "https://github.com/rubocop/rubocop",
|
||||
description = "Ruby static code analyzer and formatter, based on the community Ruby style guide.",
|
||||
},
|
||||
method = FORMATTING,
|
||||
filetypes = { "ruby" },
|
||||
generator_opts = {
|
||||
command = "rubocop",
|
||||
args = {
|
||||
"--auto-correct",
|
||||
"-f",
|
||||
"quiet",
|
||||
"--stdin",
|
||||
"$FILENAME",
|
||||
},
|
||||
to_stdin = true,
|
||||
-- from_stderr = true,
|
||||
},
|
||||
factory = h.formatter_factory,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue