Regenerate nvim config
This commit is contained in:
23
config/neovim/store/lazy-plugins/trim.nvim/plugin/trim.lua
Normal file
23
config/neovim/store/lazy-plugins/trim.nvim/plugin/trim.lua
Normal file
@ -0,0 +1,23 @@
|
||||
if vim.g.load_trim_nvim then
|
||||
return
|
||||
end
|
||||
vim.g.load_trim_nvim = true
|
||||
|
||||
local trimmer = require 'trim.trimmer'
|
||||
|
||||
if not vim.api.nvim_create_autocmd then
|
||||
vim.notify_once('trim.nvim requires nvim 0.7.0+.', vim.log.levels.ERROR, { title = 'trim.nvim' })
|
||||
return
|
||||
end
|
||||
|
||||
vim.api.nvim_create_user_command('TrimToggle', function(args)
|
||||
trimmer.toggle()
|
||||
end, {
|
||||
range = false,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_user_command('Trim', function(args)
|
||||
trimmer.trim()
|
||||
end, {
|
||||
range = false,
|
||||
})
|
||||
Reference in New Issue
Block a user