1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Ryan Kes
98b01f9816 zsh is now xdg compliant, sort of 2020-06-12 12:13:27 +02:00
Ryan Kes
86af122e22 Added ale to vim 2020-06-12 11:57:13 +02:00
7 changed files with 37 additions and 18 deletions

View File

@ -161,6 +161,7 @@ A repository of my personal configuration files.
- [[https://github.com/vim-airline/vim-airline][vim-airline/vim-airline]] - [[https://github.com/vim-airline/vim-airline][vim-airline/vim-airline]]
*** Programming *** Programming
- [[https://github.com/airblade/vim-gitgutter][airblade/vim-gitgutter]] - [[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/godlygeek/tabular][godlygeek/tabular]]
- [[https://github.com/neoclide/coc.nvim][neoclice/coc.nvim]] - [[https://github.com/neoclide/coc.nvim][neoclice/coc.nvim]]
- [[https://github.com/preservim/nerdcommenter][preservim/nerdcommenter]] - [[https://github.com/preservim/nerdcommenter][preservim/nerdcommenter]]

View File

@ -1,12 +1,10 @@
{ {
"dependencies": { "dependencies": {
"coc-css": ">=1.2.3", "coc-css": ">=1.2.3",
"coc-eslint": "^1.2.7",
"coc-html": ">=1.2.4", "coc-html": ">=1.2.4",
"coc-jest": ">=1.0.3", "coc-jest": ">=1.0.3",
"coc-json": ">=1.2.6", "coc-json": ">=1.2.6",
"coc-pairs": ">=1.2.21", "coc-pairs": ">=1.2.21",
"coc-prettier": ">=1.1.14",
"coc-python": ">=1.2.12", "coc-python": ">=1.2.12",
"coc-rls": ">=1.1.6", "coc-rls": ">=1.1.6",
"coc-tsserver": ">=1.5.1", "coc-tsserver": ">=1.5.1",

View File

@ -34,6 +34,7 @@
" Programming { " Programming {
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
Plug 'dense-analysis/ale'
Plug 'godlygeek/tabular' Plug 'godlygeek/tabular'
Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdcommenter' Plug 'preservim/nerdcommenter'
@ -163,8 +164,6 @@
" } " }
" coc { " coc {
command! -nargs=0 Prettier :CocCommand prettier.formatFile
vmap <leader>f <Plug>(coc-format-selected) vmap <leader>f <Plug>(coc-format-selected)
nmap <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> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-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
" }
" } " }

View File

@ -35,6 +35,9 @@ zplug "plugins/yarn", from:oh-my-zsh
zplug "zsh-users/zsh-autosuggestions", from:github, defer:3 zplug "zsh-users/zsh-autosuggestions", from:github, defer:3
zplug "zsh-users/zsh-syntax-highlighting", 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 # Install packages
if ! zplug check --verbose; then if ! zplug check --verbose; then
printf "Install zplug plugins? [y/N]: " printf "Install zplug plugins? [y/N]: "

View File

@ -226,6 +226,9 @@ ex=:\
# Save history file in proper place # Save history file in proper place
HISTFILE=~/.cache/zsh/history HISTFILE=~/.cache/zsh/history
# Load config files from their proper place
ZDOTDIR=~/.config/zsh
# Use alternative muhome # Use alternative muhome
export MU_HOME="/home/alrayyes/.cache/mu" export MU_HOME="/home/alrayyes/.cache/mu"