-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💩 Messing around with vim autocompletion
- Loading branch information
1 parent
12c0b6c
commit 8d908c7
Showing
7 changed files
with
53 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install linters for various coding languages | ||
pip3 install -U proselint cpplint vim-vint yamllint | ||
|
||
brew install shellcheck shfmt google-java-format | ||
|
||
npm install -g csslint prettier stylelint eslint htmlhint markdownlint \ | ||
write-good |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[style] | ||
based_on_style = google |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
" ----- w0rp/ale ----- | ||
" Configuration | ||
let g:ale_lint_on_insert_leave = 1 | ||
let g:ale_completion_enabled = 1 | ||
let g:ale_fix_on_save = 1 | ||
" Define signs | ||
let g:ale_sign_error = '✘' | ||
let g:ale_sign_warning = '▲' | ||
" Define fixers for different file types | ||
let g:ale_fixers = { | ||
\ 'bash': ['shfmt', 'remove_trailing_lines', 'trim_whitespace'], | ||
\ 'javascript': ['prettier', 'remove_trailing_lines', 'trim_whitespace'], | ||
\ 'json': ['prettier', 'remove_trailing_lines', 'trim_whitespace'], | ||
\ 'python': ['isort', 'yapf', 'remove_trailing_lines', 'trim_whitespace'], | ||
\ 'css': ['prettier', 'remove_trailing_lines', 'trim_whitespace'], | ||
\ 'tex': ['remove_trailing_lines', 'trim_whitespace'], | ||
\ 'html': ['remove_trailing_lines', 'trim_whitespace'], | ||
\ 'vim': ['remove_trailing_lines', 'trim_whitespace'], | ||
\ 'sh': ['remove_trailing_lines', 'trim_whitespace'], | ||
\ 'sh': ['shfmt', 'remove_trailing_lines', 'trim_whitespace'], | ||
\} | ||
|
||
" Customize error sign | ||
highlight clear ALEErrorSign | ||
highlight ALEErrorSign ctermfg=1 ctermbg=18 guifg=#EC5F67 guibg=#2C393F | ||
|
||
let g:ale_echo_msg_error_str = 'E' | ||
let g:ale_echo_msg_warning_str = 'W' | ||
let g:ale_echo_msg_format = '[%linter%] %s [%severity%]' | ||
" nnoremap <silent> ld :ALEGoToDefinition<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
" ----- Shougo/deoplete.nvim ----- | ||
let g:deoplete#enable_at_startup = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
" ----- roxma/nvim-completion-manager ----- | ||
set shortmess+=c | ||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | ||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" | ||
let g:UltiSnipsExpandTrigger = '<Plug>(ultisnips_expand)' | ||
let g:UltiSnipsJumpForwardTrigger = '<c-j>' | ||
let g:UltiSnipsJumpBackwardTrigger = '<c-k>' | ||
let g:UltiSnipsRemoveSelectModeMappings = 0 | ||
" optional | ||
inoremap <silent> <c-u> <c-r>=cm#sources#ultisnips#trigger_or_popup("\<Plug>(ultisnips_expand)")<cr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
" let g:UltiSnipsExpandTrigger='<c-n>' | ||
" let g:UltiSnipsJumpForwardTrigger = '<tab>' | ||
" let g:UltiSnipsJumpBackwardTrigger = '<s-tab>' | ||
let g:UltiSnipsExpandTrigger='<CR>' | ||
let g:UltiSnipsJumpForwardTrigger = '<tab>' | ||
let g:UltiSnipsJumpBackwardTrigger = '<S-tab>' | ||
|
||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | ||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters