21 lines
602 B
Lua
21 lines
602 B
Lua
-- Additional Plugins
|
|
--
|
|
return {
|
|
['cappyzawa/trim.nvim'] = {
|
|
config = function()
|
|
require('trim').setup({
|
|
-- if you want to ignore markdown file.
|
|
-- you can specify filetypes.
|
|
disable = {"markdown"},
|
|
|
|
-- if you want to ignore space of top
|
|
patterns = {
|
|
[[%s/\s\+$//e]], -- remove unwanted spaces
|
|
[[%s/\($\n\s*\)\+\%$//]], -- trim last line
|
|
[[%s/\%^\n\+//]], -- trim first line
|
|
-- [[%s/\(\n\n\)\n\+/\1/]], -- replace multiple blank lines with a single line
|
|
},
|
|
})
|
|
end
|
|
}
|
|
}
|