From 820b522113c8ad02198e00eb4e4f71611545d15b Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 14 Dec 2022 17:02:00 +0300 Subject: feat(nvim): use abbreviation reminder plugin & abbreviations https://github.com/0styx0/abbreinder.nvim reminds you when you don't use your abbreviations --- .config/nvim/after/plugin/abolish.vim | 31 +++++++++++++++++++++++++++++++ .config/nvim/lua/plugins.lua | 14 ++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .config/nvim/after/plugin/abolish.vim diff --git a/.config/nvim/after/plugin/abolish.vim b/.config/nvim/after/plugin/abolish.vim new file mode 100644 index 0000000..a560c39 --- /dev/null +++ b/.config/nvim/after/plugin/abolish.vim @@ -0,0 +1,31 @@ +let g:abolish_save_file = expand('') + +if !exists(":Abolish") + finish +endif + +Abolish anomol{y,ies} anomal{} +Abolish austrail{a,an,ia,ian} austral{ia,ian} +Abolish cal{a,e}nder{,s} cal{e}ndar{} +Abolish {c,m}arraige{,s} {}arriage{} +Abolish {,in}consistan{cy,cies,t,tly} {}consisten{} +Abolish destionation{,s} destination{} +Abolish delimeter{,s} delimiter{} +Abolish {,non}existan{ce,t} {}existen{} +Abolish despara{te,tely,tion} despera{} +Abolish d{e,i}screp{e,a}nc{y,ies} d{i}screp{a}nc{} +Abolish {,re}impliment{,s,ing,ed,ation} {}implement{} +Abolish improvment{,s} improvement{} +Abolish inherant{,ly} inherent{} +Abolish {les,compar,compari}sion{,s} {les,compari,compari}son{} +Abolish {,un}nec{ce,ces,e}sar{y,ily} {}nec{es}sar{} +Abolish {,un}orgin{,al} {}origin{} +Abolish persistan{ce,t,tly} persisten{} +Abolish referesh{,es} refresh{} +Abolish {,ir}releven{ce,cy,t,tly} {}relevan{} +Abolish rec{co,com,o}mend{,s,ed,ing,ation} rec{om}mend{} +Abolish reproducable reproducible +Abolish resouce{,s} resource{} +Abolish restraunt{,s} restaurant{} +Abolish {despa,sepe}rat{e,es,ed,ing,ely,ion,ions,or} {despe,sepa}rat{} +Abolish segument{,s,ed,ation} segment{} diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 0c00437..38c1acc 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -149,6 +149,20 @@ return require('packer').startup(function(use) -- colour theme of the $CURRENT_YEAR use 'rose-pine/neovim' + -- abbreviation reminder + use { + '0styx0/abbreinder.nvim', + requires = { + { + '0styx0/abbremand.nvim', + module = 'abbremand' -- if want to lazy load + } + }, + config = function() + require'abbreinder'.setup() + end, + event = 'BufRead', -- if want lazy load + } -- search for, substitute, and abbreviate multiple variants of a word use 'tpope/vim-abolish' -- enable repeating supported plugin maps with '.' -- cgit v1.2.3-70-g09d2