mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Compare commits
2 Commits
70e86868c0
...
98b01f9816
Author | SHA1 | Date | |
---|---|---|---|
|
98b01f9816 | ||
|
86af122e22 |
@ -161,6 +161,7 @@ A repository of my personal configuration files.
|
||||
- [[https://github.com/vim-airline/vim-airline][vim-airline/vim-airline]]
|
||||
*** Programming
|
||||
- [[https://github.com/airblade/vim-gitgutter][airblade/vim-gitgutter]]
|
||||
- [[https://github.com/dense-analysis/ale][dense-analysis/ale]]
|
||||
- [[https://github.com/godlygeek/tabular][godlygeek/tabular]]
|
||||
- [[https://github.com/neoclide/coc.nvim][neoclice/coc.nvim]]
|
||||
- [[https://github.com/preservim/nerdcommenter][preservim/nerdcommenter]]
|
||||
|
@ -1,12 +1,10 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"coc-css": ">=1.2.3",
|
||||
"coc-eslint": "^1.2.7",
|
||||
"coc-html": ">=1.2.4",
|
||||
"coc-jest": ">=1.0.3",
|
||||
"coc-json": ">=1.2.6",
|
||||
"coc-pairs": ">=1.2.21",
|
||||
"coc-prettier": ">=1.1.14",
|
||||
"coc-python": ">=1.2.12",
|
||||
"coc-rls": ">=1.1.6",
|
||||
"coc-tsserver": ">=1.5.1",
|
||||
|
@ -34,6 +34,7 @@
|
||||
|
||||
" Programming {
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
Plug 'dense-analysis/ale'
|
||||
Plug 'godlygeek/tabular'
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
Plug 'preservim/nerdcommenter'
|
||||
@ -163,8 +164,6 @@
|
||||
" }
|
||||
|
||||
" coc {
|
||||
command! -nargs=0 Prettier :CocCommand prettier.formatFile
|
||||
|
||||
vmap <leader>f <Plug>(coc-format-selected)
|
||||
nmap <leader>f <Plug>(coc-format-selected)
|
||||
|
||||
@ -184,4 +183,19 @@
|
||||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||
" }
|
||||
|
||||
" ale {
|
||||
" Shortcuts jump between linting errors
|
||||
map <silent> [c <Plug>(ale_previous_wrap)
|
||||
nmap <silent> ]c <Plug>(ale_next_wrap)
|
||||
|
||||
let g:ale_sign_error = '❌'
|
||||
let g:ale_sign_warning = '⚠️'
|
||||
|
||||
" Fix files
|
||||
let g:ale_fixers = {'javascript': ['prettier', 'eslint']}
|
||||
|
||||
" Fix files automatically on save
|
||||
let g:ale_fix_on_save = 1
|
||||
" }
|
||||
" }
|
||||
|
@ -35,6 +35,9 @@ zplug "plugins/yarn", from:oh-my-zsh
|
||||
zplug "zsh-users/zsh-autosuggestions", from:github, defer:3
|
||||
zplug "zsh-users/zsh-syntax-highlighting", from:github, defer:3
|
||||
|
||||
# Let zplug manage itself
|
||||
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
|
||||
|
||||
# Install packages
|
||||
if ! zplug check --verbose; then
|
||||
printf "Install zplug plugins? [y/N]: "
|
@ -226,6 +226,9 @@ ex=:\
|
||||
# Save history file in proper place
|
||||
HISTFILE=~/.cache/zsh/history
|
||||
|
||||
# Load config files from their proper place
|
||||
ZDOTDIR=~/.config/zsh
|
||||
|
||||
# Use alternative muhome
|
||||
export MU_HOME="/home/alrayyes/.cache/mu"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user