summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2022-12-14 17:02:00 +0300
committerYigit Sever2022-12-14 17:04:11 +0300
commit820b522113c8ad02198e00eb4e4f71611545d15b (patch)
treeff38fb41f0b557174982033956272505ea4749cc
parent083b7bcdc568f3db5bde5adb60f2c8a3d038751a (diff)
downloaddotfiles-820b522113c8ad02198e00eb4e4f71611545d15b.tar.gz
dotfiles-820b522113c8ad02198e00eb4e4f71611545d15b.tar.bz2
dotfiles-820b522113c8ad02198e00eb4e4f71611545d15b.zip
feat(nvim): use abbreviation reminder plugin & abbreviations
https://github.com/0styx0/abbreinder.nvim reminds you when you don't use your abbreviations
-rw-r--r--.config/nvim/after/plugin/abolish.vim31
-rw-r--r--.config/nvim/lua/plugins.lua14
2 files changed, 45 insertions, 0 deletions
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 @@
1let g:abolish_save_file = expand('<sfile>')
2
3if !exists(":Abolish")
4 finish
5endif
6
7Abolish anomol{y,ies} anomal{}
8Abolish austrail{a,an,ia,ian} austral{ia,ian}
9Abolish cal{a,e}nder{,s} cal{e}ndar{}
10Abolish {c,m}arraige{,s} {}arriage{}
11Abolish {,in}consistan{cy,cies,t,tly} {}consisten{}
12Abolish destionation{,s} destination{}
13Abolish delimeter{,s} delimiter{}
14Abolish {,non}existan{ce,t} {}existen{}
15Abolish despara{te,tely,tion} despera{}
16Abolish d{e,i}screp{e,a}nc{y,ies} d{i}screp{a}nc{}
17Abolish {,re}impliment{,s,ing,ed,ation} {}implement{}
18Abolish improvment{,s} improvement{}
19Abolish inherant{,ly} inherent{}
20Abolish {les,compar,compari}sion{,s} {les,compari,compari}son{}
21Abolish {,un}nec{ce,ces,e}sar{y,ily} {}nec{es}sar{}
22Abolish {,un}orgin{,al} {}origin{}
23Abolish persistan{ce,t,tly} persisten{}
24Abolish referesh{,es} refresh{}
25Abolish {,ir}releven{ce,cy,t,tly} {}relevan{}
26Abolish rec{co,com,o}mend{,s,ed,ing,ation} rec{om}mend{}
27Abolish reproducable reproducible
28Abolish resouce{,s} resource{}
29Abolish restraunt{,s} restaurant{}
30Abolish {despa,sepe}rat{e,es,ed,ing,ely,ion,ions,or} {despe,sepa}rat{}
31Abolish 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)
149 -- colour theme of the $CURRENT_YEAR 149 -- colour theme of the $CURRENT_YEAR
150 use 'rose-pine/neovim' 150 use 'rose-pine/neovim'
151 151
152 -- abbreviation reminder
153 use {
154 '0styx0/abbreinder.nvim',
155 requires = {
156 {
157 '0styx0/abbremand.nvim',
158 module = 'abbremand' -- if want to lazy load
159 }
160 },
161 config = function()
162 require'abbreinder'.setup()
163 end,
164 event = 'BufRead', -- if want lazy load
165 }
152 -- search for, substitute, and abbreviate multiple variants of a word 166 -- search for, substitute, and abbreviate multiple variants of a word
153 use 'tpope/vim-abolish' 167 use 'tpope/vim-abolish'
154 -- enable repeating supported plugin maps with '.' 168 -- enable repeating supported plugin maps with '.'