feat: authoring plugins
parent
dfc3c98bf6
commit
3cdca2add9
@ -0,0 +1,5 @@
|
||||
-- You can add your own plugins here or in other files in this directory!
|
||||
-- I promise not to create any merge conflicts in this directory :)
|
||||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
return { import = 'custom.plugins.notes' }
|
@ -0,0 +1,15 @@
|
||||
return {
|
||||
'preservim/vim-lexical',
|
||||
config = function()
|
||||
vim.cmd [[
|
||||
augroup lexical
|
||||
autocmd!
|
||||
autocmd FileType markdown,mkd call lexical#init()
|
||||
autocmd FileType textile call lexical#init()
|
||||
autocmd FileType text call lexical#init({ 'spell': 0 })
|
||||
augroup END
|
||||
let g:lexical#spelllang = ['en_us','fr',]
|
||||
]]
|
||||
end,
|
||||
ft = { 'markdown', 'mkd', 'textile', 'tex', 'text' },
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
return {
|
||||
'preservim/vim-litecorrect',
|
||||
config = function()
|
||||
vim.cmd [[
|
||||
let user_dict = {
|
||||
\ 'maybe': ['mabye'],
|
||||
\ 'medieval': ['medival', 'mediaeval', 'medevil'],
|
||||
\ 'then': ['hten'],
|
||||
\ }
|
||||
augroup litecorrect
|
||||
autocmd!
|
||||
autocmd FileType markdown call litecorrect#init(user_dict)
|
||||
autocmd FileType textile call litecorrect#init(user_dict)
|
||||
augroup END
|
||||
]]
|
||||
end,
|
||||
ft = { 'markdown', 'mkd', 'textile', 'tex', 'text' },
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
return {
|
||||
'preservim/vim-pencil',
|
||||
config = function()
|
||||
vim.cmd [[
|
||||
augroup pencil
|
||||
autocmd!
|
||||
autocmd FileType markdown,mkd call pencil#init()
|
||||
autocmd FileType text call pencil#init()
|
||||
augroup END
|
||||
]]
|
||||
end,
|
||||
ft = { 'markdown', 'mkd', 'textile', 'tex', 'text' },
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
return {
|
||||
'preservim/vim-textobj-quote',
|
||||
dependencies = { 'kana/vim-textobj-user' },
|
||||
config = function()
|
||||
vim.cmd [[
|
||||
augroup textobj_quote
|
||||
autocmd!
|
||||
autocmd FileType markdown call textobj#quote#init()
|
||||
autocmd FileType textile call textobj#quote#init()
|
||||
autocmd FileType text call textobj#quote#init({'educate': 0})
|
||||
augroup END
|
||||
]]
|
||||
end,
|
||||
ft = { 'markdown', 'mkd', 'textile', 'tex', 'text' },
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
return {
|
||||
'preservim/vim-textobj-sentence',
|
||||
config = function()
|
||||
vim.cmd [[
|
||||
augroup textobj_sentence
|
||||
autocmd!
|
||||
autocmd FileType markdown call textobj#sentence#init()
|
||||
autocmd FileType textile call textobj#sentence#init()
|
||||
augroup END
|
||||
]]
|
||||
end,
|
||||
ft = { 'markdown', 'mkd', 'textile', 'tex', 'text' },
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
return {
|
||||
'preservim/vim-wordy',
|
||||
config = function()
|
||||
vim.g.wordy_ring = {
|
||||
'weak',
|
||||
{ 'being', 'passive-voice' },
|
||||
'business-jargon',
|
||||
'weasel',
|
||||
'puffery',
|
||||
{ 'problematic', 'redundant' },
|
||||
{ 'colloquial', 'idiomatic', 'similies' },
|
||||
'art-jargon',
|
||||
{ 'contractions', 'opinion', 'vague-time', 'said-synonyms' },
|
||||
'adjectives',
|
||||
'adverbs',
|
||||
}
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<F8>', ':<C-u>NextWordy<CR>', { silent = true })
|
||||
vim.api.nvim_set_keymap('x', '<F8>', ':<C-u>NextWordy<CR>', { silent = true })
|
||||
vim.api.nvim_set_keymap('i', '<F8>', '<C-o>:NextWordy<CR>', { silent = true })
|
||||
end,
|
||||
ft = { 'markdown', 'mkd', 'textile', 'tex', 'text' },
|
||||
}
|
Loading…
Reference in New Issue