jackyalcine 1 year ago
parent
commit
fa1640b824

+ 3
- 1
home/.config/nvim/autoload/jalcine/language_client.vim View File

@@ -28,7 +28,9 @@ func! s:Configure() abort " {{{
28 28
         \ 'ruby': [ s:vimrc_root . '/bin/language_server-ruby' ],
29 29
         \ 'elixir': [ 'neovim-language-server-elixir'],
30 30
         \ 'css': ['css-language-server', '--stdio'],
31
-        \ 'ember': ['neovim-language-server-ember']
31
+        \ 'ember': ['neovim-language-server-ember'],
32
+        \ 'cpp': ['cquery', '--log-file=/tmp/cq.log'],
33
+        \ 'c': ['cquery', '--log-file=/tmp/cq.log'],
32 34
         \ }
33 35
 
34 36
   if exists('$DEBUG')

+ 24
- 16
home/.config/nvim/autoload/jalcine/plugins.vim View File

@@ -45,7 +45,7 @@ func! jalcine#plugins#define() abort " {{{
45 45
   Plug 'wincent/terminus'
46 46
 
47 47
   Plug 'tpope/vim-commentary'
48
-  Plug 'cbaumhardt/vim-commentary-boxed'
48
+        \ | Plug 'cbaumhardt/vim-commentary-boxed'
49 49
 
50 50
   Plug 'xolox/vim-misc'
51 51
   Plug 'xolox/vim-notes'
@@ -76,15 +76,14 @@ func! jalcine#plugins#define() abort " {{{
76 76
   Plug 'vim-scripts/SyntaxRange'
77 77
   Plug 'chrisbra/NrrwRgn'
78 78
   Plug 'junegunn/gv.vim'
79
-  Plug 'mattn/emmet-vim'
80 79
   Plug 'mattn/webapi-vim'
81 80
   Plug 'mhinz/vim-signify'
82 81
   Plug 'moll/vim-node', { 'for': 'javascript' }
83 82
 
84 83
   Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
85
-  Plug 'junegunn/fzf.vim'
86
-  Plug 'fszymanski/fzf-gitignore', { 'do' : ':UpdateRemotePlugins' }
87
-  Plug 'tweekmonster/fzf-filemru'
84
+        \ | Plug 'junegunn/fzf.vim'
85
+        \ | Plug 'fszymanski/fzf-gitignore', { 'do' : ':UpdateRemotePlugins' }
86
+        \ | Plug 'tweekmonster/fzf-filemru'
88 87
 
89 88
   Plug 'henrik/vim-indexed-search'
90 89
 
@@ -108,7 +107,6 @@ func! jalcine#plugins#define() abort " {{{
108 107
   Plug 'tpope/vim-surround'
109 108
   Plug 'raimondi/delimitmate'
110 109
   Plug 'godlygeek/tabular'
111
-  Plug 'dansomething/vim-hackernews'
112 110
   Plug 'Shougo/context_filetype.vim'
113 111
   Plug 'tweekmonster/startuptime.vim'
114 112
   Plug 'wakatime/vim-wakatime'
@@ -116,11 +114,9 @@ func! jalcine#plugins#define() abort " {{{
116 114
   Plug 'sheerun/vim-polyglot'
117 115
   Plug 'lambdalisue/vim-pyenv', { 'for': 'python' }
118 116
   Plug 'jmcantrell/vim-virtualenv', { 'for': 'python' }
119
-  Plug 'tmhedberg/SimpylFold'
120 117
   Plug 'vim-ruby/vim-ruby', { 'for': 'ruby'}
121 118
   Plug 'mxw/vim-jsx', { 'for': 'javascript' }
122 119
   Plug 'ekalinin/Dockerfile.vim'
123
-  Plug 'mattly/vim-markdown-enhancements'
124 120
   Plug 'tweekmonster/braceless.vim'
125 121
   Plug 'othree/javascript-libraries-syntax.vim', { 'for': 'javascript' }
126 122
   Plug 'othree/yajs.vim', { 'for': 'javascript' }
@@ -128,7 +124,7 @@ func! jalcine#plugins#define() abort " {{{
128 124
   Plug 'heavenshell/vim-jsdoc', { 'for': 'javascript' }
129 125
   Plug 'othree/es.next.syntax.vim', { 'for': 'javascript' }
130 126
   Plug 'jalcine/cmake.vim'
131
-  Plug 'cquery-project/cquery', { 'for': 'c,c++', 'do': 'mkdir build && cd build && cmake .. && make' }
127
+  Plug 'cquery-project/cquery', { 'for': 'c,c++', 'do': 'mkdir -p build && cd build && cmake .. && make' }
132 128
 
133 129
   Plug 'reedes/vim-wordy'
134 130
   Plug 'kana/vim-textobj-user'
@@ -165,7 +161,6 @@ func! jalcine#plugins#define() abort " {{{
165 161
   Plug 'awetzel/elixir.nvim', { 'do': 'yes \| ./install.sh', 'for': 'elixir' }
166 162
   Plug 'JakeBecker/elixir-ls', { 'do' : 'mix do deps.get, deps.compile, compile', 'for': 'elixir' }
167 163
   Plug 'sourcegraph/javascript-typescript-langserver', { 'do': 'yarn && yarn run build', 'for': 'javascript' }
168
-  Plug 'emberwatch/ember-language-server', { 'do': 'yarn && yarn run compile', 'for': 'javascript' }
169 164
   Plug 'roxma/LanguageServer-php-neovim',  {'do': 'composer install && composer run-script parse-stubs'}
170 165
   " }}}
171 166
 
@@ -179,6 +174,7 @@ func! jalcine#plugins#define() abort " {{{
179 174
   Plug 'junegunn/goyo.vim'
180 175
   Plug 'junegunn/limelight.vim'
181 176
   Plug 'ryanoasis/vim-devicons'
177
+  Plug 'bronson/vim-trailing-whitespace'
182 178
 
183 179
   call plug#end()
184 180
 endfunc " }}}
@@ -299,19 +295,23 @@ func! jalcine#plugins#configure() abort " {{{
299 295
   "
300 296
   " ale {{{
301 297
   let g:ale_scss_stylelint_executable = s:vimrc_root . "/node_modules/.bin/stylelint"
302
-  let g:ale_fix_on_save = 1
303
-  let g:ale_lint_on_save = 1
304
-  let g:ale_echo_delay = 1
305
-  let g:ale_lint_on_text_changed = 0
306 298
   let g:ale_fixers = {
307 299
         \ 'css': [
308 300
         \   'stylelint'
309 301
         \ ],
302
+        \ 'elixir': [
303
+        \   'mix_format'
304
+        \ ],
310 305
         \ 'scss': [
311 306
         \   'stylelint'
312 307
         \ ],
313 308
         \ 'javascript': [
314
-        \   'eslint'
309
+        \   'eslint',
310
+        \   'importjs',
311
+        \   'standard'
312
+        \ ],
313
+        \ 'json': [
314
+        \   'jq'
315 315
         \ ],
316 316
         \ 'python': [
317 317
         \   'isort',
@@ -444,7 +444,7 @@ func! jalcine#plugins#configure_mappings() abort " {{{
444 444
         \ ['ab', ':Git add %<cr>'],
445 445
         \ ['b', ':Gbrowse<CR>'],
446 446
         \ ['b', ':Gbrowse<CR>'],
447
-        \ ['c', ':Git commit<space>'],
447
+        \ ['c', ':Gcommit<CR>'],
448 448
         \ ['C', ':Gcommit --branch --verbose %<CR>'],
449 449
         \ ['co', ':Git checkout<space>'],
450 450
         \ ['cO', ':Git checkout HEAD -- %<CR>'],
@@ -502,4 +502,12 @@ func! jalcine#plugins#configure_mappings() abort " {{{
502 502
   nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
503 503
   nnoremap <silent> <F2> :call LanguageClient_textDocument_rename()<CR>
504 504
   " }}}
505
+
506
+  nnoremap <silent> <CR><CR> :call <SID>ReloadPlugins()<CR>
505 507
 endfunc " }}}
508
+
509
+func! s:ReloadPlugins() abort
510
+  PlugInstall!
511
+  PlugUpdate!
512
+  PlugClean!
513
+endfunc

+ 6
- 0
home/.config/nvim/autoload/jalcine/tweaks.vim View File

@@ -1,3 +1,9 @@
1
+" File: 
2
+" tweaks.vim
3
+" Author: yourname
4
+" Description: 
5
+" Last Modified: April 10, 2018
6
+"
1 7
 func! jalcine#tweaks#init() abort
2 8
   let l:known_tweaks = [
3 9
         \ 'goyo',

Loading…
Cancel
Save