Created
February 5, 2020 09:39
-
-
Save cheton/2a69716bf63ee10817969c601e8c8531 to your computer and use it in GitHub Desktop.
Neovim
This file contains hidden or 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
" Convert new tabs to spaces | |
set expandtab | |
set shiftwidth=4 | |
set softtabstop=4 | |
set tabstop=4 | |
" No end of line | |
set noeol | |
call plug#begin() | |
Plug 'w0rp/ale' | |
Plug 'pangloss/vim-javascript' | |
Plug 'maxmellon/vim-jsx-pretty' | |
Plug 'dikiaap/minimalist' | |
call plug#end() | |
" https://github.com/dense-analysis/ale | |
" Check syntax in Vim asynchronously and fix files, with Language Server | |
" Protocol (LSP) support | |
let g:ale_enabled = 0 | |
let g:ale_echo_msg_error_str = 'E' | |
let g:ale_echo_msg_warning_str = 'W' | |
let g:ale_echo_msg_format = '[%linter%][%severity%] %s' | |
let g:ale_fix_on_save = 0 | |
init.vim 1,1 Top | |
tw-cheton-mbp:nvim cheton$ cat init.vim | |
" Convert new tabs to spaces | |
set expandtab | |
set shiftwidth=4 | |
set softtabstop=4 | |
set tabstop=4 | |
" No end of line | |
set noeol | |
call plug#begin() | |
Plug 'w0rp/ale' | |
Plug 'pangloss/vim-javascript' | |
Plug 'maxmellon/vim-jsx-pretty' | |
Plug 'dikiaap/minimalist' | |
call plug#end() | |
" https://github.com/dense-analysis/ale | |
" Check syntax in Vim asynchronously and fix files, with Language Server | |
" Protocol (LSP) support | |
let g:ale_enabled = 0 | |
let g:ale_echo_msg_error_str = 'E' | |
let g:ale_echo_msg_warning_str = 'W' | |
let g:ale_echo_msg_format = '[%linter%][%severity%] %s' | |
let g:ale_fix_on_save = 0 | |
let g:ale_fixers = {'javascript': ['eslint']} | |
let g:ale_lint_on_enter = 0 | |
let g:ale_lint_on_insert_leave = 0 | |
let g:ale_lint_on_save = 1 | |
let g:ale_lint_on_text_changed = 'never' | |
let g:ale_linters = {'javascript': ['eslint']} | |
let g:ale_sign_error = '❌' | |
let g:ale_sign_warning = '⚠️' | |
let g:ale_set_signs = 1 | |
let g:ale_set_highlights = 1 | |
" Do not lint or fix minified files. | |
let g:ale_pattern_options_enabled = 1 | |
let g:ale_pattern_options = { | |
\ '\.min\.js$': {'ale_linters': [], 'ale_fixers': []}, | |
\ '\.min\.css$': {'ale_linters': [], 'ale_fixers': []}, | |
\} | |
" https://github.com/MaxMEllon/vim-jsx-pretty | |
" JSX syntax pretty highlighting for vim. | |
let g:vim_jsx_pretty_template_tags = ['html', 'raw'] | |
let g:vim_jsx_pretty_highlight_close_tag = 0 | |
let g:vim_jsx_pretty_colorful_config = 1 " default 0 | |
" https://github.com/dikiaap/minimalist | |
" A Material Color Scheme Darker for Vim. | |
set t_Co=256 | |
syntax on | |
colorscheme minimalist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment