-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_configs.vim
252 lines (157 loc) · 6.95 KB
/
my_configs.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nocompatible
let text_files=['notes', 'txt', 'markdown', 'md']
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => vim-plug plugins
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Specify a directory for plugins (x)Avoid using standard Vim directory names like 'plugin')
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
Plug 'neoclide/coc.nvim', {'branch': 'release'}
source ~/.vim_runtime/vimrcs/coc_config.vim
Plug 'danilamihailov/beacon.nvim'
Plug 'lukas-reineke/indent-blankline.nvim'
" Plug 'Xuyuanp/scrollbar.nvim'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " We recommend updating the parsers on update
Plug 'nvim-treesitter/nvim-treesitter-textobjects'
Plug 'RRethy/nvim-treesitter-textsubjects'
" Plug 'ggandor/leap.nvim'
" Plug 'easymotion/vim-easymotion'
Plug 'justinmk/vim-sneak' "Jump to any location specified by two characters.
"""" Themes """"
" Plug 'NLKNguyen/papercolor-theme'
" Plug 'folke/tokyonight.nvim', { 'branch': 'main' }
Plug 'marko-cerovac/material.nvim'
Plug 'mg979/vim-visual-multi'
Plug 'junegunn/vim-easy-align'
Plug 'tomtom/enabler_vim'
Plug 'ntpeters/vim-better-whitespace'
Plug 'tpope/vim-sleuth'
Plug 'kshenoy/vim-signature' " mx - Toggle mark 'x' and display it in the leftmost column
" Plug 'dkarter/bullets.vim'
" Copy/exchange
" cx - On the first use, define the first {motion} to exchange/swap. On the second use, define the second {motion} and perform the exchange.
" cxx - Like cx, but use the current line.
" X - Like cx, but for Visual mode.
" cxc - Clear any {motion} pending for exchange.
Plug 'tommcdo/vim-exchange'
Plug 'dzeban/vim-log-syntax', { 'for': ['log'] }
Plug 'tpope/vim-dispatch'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-tbone'
Plug 'terryma/vim-expand-region' "allows you to visually select increasingly larger regions of text using the same key combination
Plug 'Valloric/vim-operator-highlight' "highlights operator characters for every language
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
" Press alt-enter to track a remote branch locally (origin/foo becomes foo)
" Press ctrl-b to create a branch or tag with the current query as name
" Press ctrl-d to delete a branch or tag
" Press ctrl-e to merge a branch
" Press ctrl-r to rebase a branch
Plug 'stsewd/fzf-checkout.vim'
Plug '907th/vim-auto-save'
Plug 'tpope/vim-abolish'
Plug 'tpope/vim-markdown', { 'for': ['markdown'] }
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-obsession'
Plug 'itchyny/lightline.vim'
" Plug 'preservim/nerdtree' |
" \ Plug 'Xuyuanp/nerdtree-git-plugin' |
" \ Plug 'ryanoasis/vim-devicons'
Plug 'ryanoasis/vim-devicons'
Plug 'nvim-tree/nvim-web-devicons'
Plug 'romgrk/barbar.nvim' "The neovim tabline plugin for buffer
Plug 'amix/open_file_under_cursor.vim'
Plug 'godlygeek/tabular'
Plug 'ervandew/supertab'
Plug 'ludovicchabant/vim-gutentags'
Plug 'schickling/vim-bufonly'
Plug 'mattn/emmet-vim', { 'for': ['html'] }
Plug 'honza/vim-snippets'
Plug 'benshuailyu/online-thesaurus-vim'
Plug 'panozzaj/vim-autocorrect'
Plug 'christoomey/vim-tmux-navigator'
Plug 'schoettl/listtrans.vim' "transform a sentence to a list - <leader>l
Plug 'OrangeT/vim-csharp', { 'for': ['cs'] }
Plug 'hrai/vim-csharp-snippets', { 'for': ['cs'], 'do': 'cp -f ./UltiSnips/* ~/.config/coc/ultisnips/' }
Plug 'justinmk/vim-gtfo' "Go to Terminal or File manager
" Plug 'tpope/vim-eunuch' "Vim sugar for the UNIX shell commands
Plug 'lambdalisue/suda.vim' "An alternative sudo.vim for Vim and Neovim
Plug 'editorconfig/editorconfig-vim'
Plug 'chrisbra/csv.vim', { 'for':['csv']}
Plug 'rhysd/git-messenger.vim'
" gS to split a one-liner into multiple lines
" gJ (with the cursor on the first line of a block) to join a block into a single-line statement.
Plug 'AndrewRadev/splitjoin.vim'
Plug 'flwyd/vim-conjoin' "handles line joining in the presence of line continuation characters
Plug 'tpope/vim-unimpaired'
Plug 'ConradIrwin/vim-bracketed-paste'
Plug 'chrisbra/vim-diff-enhanced'
Plug 'tmux-plugins/vim-tmux', { 'for': ['conf'] }
Plug 'luochen1990/rainbow' "read complex code by showing diff level of parentheses in diff color !
Plug 'andymass/vim-matchup' "even better % 👊 navigate and highlight matching words 👊
Plug 'wellle/targets.vim'
Plug 'mbbill/undotree' "history
Plug 'spinks/vim-leader-guide'
Plug 'axelf4/vim-strip-trailing-whitespace'
Plug 'mhinz/vim-startify'
Plug 'Vimjas/vim-python-pep8-indent', { 'for': ['py'] }
Plug 'Jorengarenar/vim-SQL-UPPER', { 'for': ['sql']}
Plug 't9md/vim-quickhl' "quickly highlight <cword> or visually selected word; <M-m>,<M-M>
Plug 'rmagatti/alternate-toggler' "toggle boolean values; <leader>bt
Plug 'psliwka/vim-smoothie' "Smooth scrolling
" Peekaboo extends and @ in normal mode and <"CTRL-R> in insert mode so you can see the contents of the registers
Plug 'junegunn/vim-peekaboo'
" Plugin to help you stop repeating the basic movement keys
" Plug 'takac/vim-hardtime'
" Reorder delimited items eg function parameters/arguments testMe(a1,a2,a3) to testMe(a2,a1,a3)
" Mappings - g<, g>, gs
" Plug 'machakann/vim-swap'
Plug 'tyru/open-browser.vim' "Open URLs; gx
Plug 'nanotee/zoxide.vim'
Plug 'liuchengxu/vista.vim' "View and search LSP symbols, tags -> :Vista
"Dependent on https://github.com/wfxr/code-minimap
Plug 'wfxr/minimap.vim' "minimap / scrollbar
" Javascript plugins
Plug 'dense-analysis/ale', { 'for': ['javascript', 'typescript', 'typescript.tsx', 'jsx','tsx'] }
" Local plugins
source ~/.vim_runtime/vimrcs/plugins_config.vim
call plug#end()
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => PLUGIN SETTINGS
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => autocorrect settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
augroup autocorrect
autocmd!
" autocmd FileType markdown,md call litecorrect#init(user_dict)
" autocmd FileType notes,txt call litecorrect#init(user_dict)
autocmd filetype * call AutoCorrect()
augroup END
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Lua nvim config
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
lua require('nvim-config')
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => colourscheme settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Enable this for console application
let g:solarized_termcolors=256
if has('nvim')
set termguicolors
" changing codelens colour
" hi CocCodeLens guifg=darkgreen
"Setting the file history count to 200
set shada=!,'200,<50,s10,h
" colorscheme PaperColor
" colorscheme tokyonight-night
colorscheme material
endif
if has("win16") || has("win32")
let g:python3_host_prog="~/scoop/shims/python3.exe"
endif