74 lines
1.5 KiB
Lua
74 lines
1.5 KiB
Lua
|
|
return {
|
||
|
|
{
|
||
|
|
"numToStr/Comment.nvim",
|
||
|
|
config = function()
|
||
|
|
require('Comment').setup()
|
||
|
|
end,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"mhartington/formatter.nvim",
|
||
|
|
config = function()
|
||
|
|
local util = require "formatter.util"
|
||
|
|
-- Provides the Format, FormatWrite, FormatLock, and FormatWriteLock commands
|
||
|
|
require("formatter").setup {
|
||
|
|
-- Enable or disable logging
|
||
|
|
logging = true,
|
||
|
|
-- Set the log level
|
||
|
|
log_level = vim.log.levels.WARN,
|
||
|
|
-- All formatter configurations are opt-in
|
||
|
|
filetype = {
|
||
|
|
ruby = {
|
||
|
|
function()
|
||
|
|
return {
|
||
|
|
exe = 'bundle exec rubocop',
|
||
|
|
args = {
|
||
|
|
'--fix-layout',
|
||
|
|
'--stdin',
|
||
|
|
util.escape_path(util.get_current_buffer_file_name()),
|
||
|
|
'--format',
|
||
|
|
'files',
|
||
|
|
'|',
|
||
|
|
"awk 'f; /^====================$/{f=1}'",
|
||
|
|
},
|
||
|
|
stdin = true,
|
||
|
|
}
|
||
|
|
end
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
end,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"AndrewRadev/splitjoin.vim"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"RRethy/vim-illuminate"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ap/vim-css-color"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"windwp/nvim-autopairs",
|
||
|
|
config = function()
|
||
|
|
require('nvim-autopairs').setup({
|
||
|
|
disable_filetype = { "TelescopePrompt" , "vim" },
|
||
|
|
})
|
||
|
|
end
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"bronson/vim-trailing-whitespace",
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"vim-test/vim-test",
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tpope/vim-surround",
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"Raimondi/delimitMate",
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"nvim-lua/plenary.nvim",
|
||
|
|
},
|
||
|
|
}
|