Skip to content

Instantly share code, notes, and snippets.

@ma-he-sh
Last active January 30, 2021 14:24
Show Gist options
  • Select an option

  • Save ma-he-sh/f9d058ec05e095a2cc4ae8cf8a566584 to your computer and use it in GitHub Desktop.

Select an option

Save ma-he-sh/f9d058ec05e095a2cc4ae8cf8a566584 to your computer and use it in GitHub Desktop.

Revisions

  1. ma-he-sh revised this gist Jan 30, 2021. 1 changed file with 17 additions and 28 deletions.
    45 changes: 17 additions & 28 deletions init.vim
    Original file line number Diff line number Diff line change
    @@ -1,39 +1,35 @@
    call plug#begin()

    Plug 'junegunn/vim-easy-align' " Easy Align
    Plug 'ayu-theme/ayu-vim' " Ayu theme
    Plug 'preservim/nerdtree' " NerdTree
    Plug 'pangloss/vim-javascript' " JavaScript support
    Plug 'leafgarland/typescript-vim' " TypeScript syntax
    Plug 'maxmellon/vim-jsx-pretty' " JS and JSX syntax
    Plug 'jparise/vim-graphql' " GraphQL syntax
    Plug 'itchyny/lightline.vim' " Status
    Plug 'Yggdroot/indentLine' " Indent Lines
    Plug 'tpope/vim-fugitive' " Git Support
    Plug 'airblade/vim-gitgutter' " Change Lines

    " Themes
    Plug 'wadackel/vim-dogrun'
    Plug 'cseelus/vim-colors-lucid'
    Plug 'ayu-theme/ayu-vim'
    Plug 'owickstrom/vim-colors-paramount'
    Plug 'endel/vim-github-colorscheme'
    "Plug 'wadackel/vim-dogrun'
    "Plug 'cseelus/vim-colors-lucid'
    "Plug 'ayu-theme/ayu-vim'
    "Plug 'owickstrom/vim-colors-paramount'
    "Plug 'endel/vim-github-colorscheme'
    "Plug 'dracula/vim', { 'name': 'dracula' }
    Plug 'embark-theme/vim', { 'as': 'embark' }

    " Code Support
    Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
    Plug 'dense-analysis/ale'
    Plug 'heavenshell/vim-pydocstring', { 'do': 'make install' }
    Plug 'shawncplus/phpcomplete.vim'
    Plug 'junegunn/goyo.vim'
    "Plug 'shmargum/vim-sass-colors'

    " Functional
    Plug 'jiangmiao/auto-pairs'
    Plug 'junegunn/vim-easy-align'
    Plug 'alvan/vim-closetag'
    Plug 'Yggdroot/indentLine'
    Plug 'sheerun/vim-polyglot'
    Plug 'chrisbra/Colorizer'

    " Autocomplete
    Plug 'ncm2/ncm2'
    @@ -55,14 +51,7 @@ set completeopt=noinsert,menuone,noselect

    syntax on
    set termguicolors
    "let ayucolor="dark"
    "let ayucolor="light"
    "colorscheme ayu

    "colorscheme paramount
    colorscheme github
    "set background=dark
    set background=light
    colorscheme embark

    " IndentLine {{
    let g:indentLine_char = '.'
    @@ -73,15 +62,15 @@ let g:indentLine_setColors = 0

    " Config lightline
    let g:lightline = {
    \ 'colorscheme': 'wombat',
    \ 'active': {
    \ 'left': [ [ 'mode', 'paste' ],
    \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
    \ },
    \ 'component_function': {
    \ 'gitbranch': 'FugitiveHead'
    \ },
    \ }
    \ 'colorscheme': 'embark',
    \ 'active': {
    \ 'left': [ [ 'mode', 'paste' ],
    \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
    \ },
    \ 'component_function': {
    \ 'gitbranch': 'FugitiveHead'
    \ },
    \}

    " --------------------------

  2. ma-he-sh created this gist Jan 29, 2021.
    107 changes: 107 additions & 0 deletions init.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,107 @@
    call plug#begin()

    Plug 'junegunn/vim-easy-align' " Easy Align
    Plug 'ayu-theme/ayu-vim' " Ayu theme
    Plug 'preservim/nerdtree' " NerdTree
    Plug 'pangloss/vim-javascript' " JavaScript support
    Plug 'leafgarland/typescript-vim' " TypeScript syntax
    Plug 'maxmellon/vim-jsx-pretty' " JS and JSX syntax
    Plug 'jparise/vim-graphql' " GraphQL syntax
    Plug 'itchyny/lightline.vim' " Status
    Plug 'Yggdroot/indentLine' " Indent Lines
    Plug 'tpope/vim-fugitive' " Git Support
    Plug 'airblade/vim-gitgutter' " Change Lines

    " Themes
    Plug 'wadackel/vim-dogrun'
    Plug 'cseelus/vim-colors-lucid'
    Plug 'ayu-theme/ayu-vim'
    Plug 'owickstrom/vim-colors-paramount'
    Plug 'endel/vim-github-colorscheme'

    " Code Support
    Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
    Plug 'dense-analysis/ale'
    Plug 'heavenshell/vim-pydocstring', { 'do': 'make install' }
    Plug 'shawncplus/phpcomplete.vim'
    Plug 'junegunn/goyo.vim'
    "Plug 'shmargum/vim-sass-colors'

    " Functional
    Plug 'jiangmiao/auto-pairs'
    Plug 'junegunn/vim-easy-align'
    Plug 'alvan/vim-closetag'
    Plug 'Yggdroot/indentLine'
    Plug 'sheerun/vim-polyglot'
    Plug 'chrisbra/Colorizer'

    " Autocomplete
    Plug 'ncm2/ncm2'
    Plug 'roxma/nvim-yarp'
    Plug 'ncm2/ncm2-bufword'
    Plug 'ncm2/ncm2-path'
    Plug 'neoclide/coc.nvim', {'branch': 'release'}

    call plug#end()


    " --------------------------

    " enable ncm2 for all buffers
    autocmd BufEnter * call ncm2#enable_for_buffer()
    set completeopt=noinsert,menuone,noselect

    " --------------------------

    syntax on
    set termguicolors
    "let ayucolor="dark"
    "let ayucolor="light"
    "colorscheme ayu

    "colorscheme paramount
    colorscheme github
    "set background=dark
    set background=light

    " IndentLine {{
    let g:indentLine_char = '.'
    let g:indentLine_first_char = '.'
    let g:indentLine_showFirstIndentLevel = 1
    let g:indentLine_setColors = 0
    " }}

    " Config lightline
    let g:lightline = {
    \ 'colorscheme': 'wombat',
    \ 'active': {
    \ 'left': [ [ 'mode', 'paste' ],
    \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
    \ },
    \ 'component_function': {
    \ 'gitbranch': 'FugitiveHead'
    \ },
    \ }

    " --------------------------

    set number
    set ts=4
    set cursorline
    set showmatch
    set smartindent
    set tabstop=4
    set shiftwidth=4
    set expandtab
    set autoindent
    set laststatus=2
    set updatetime=1000

    "---------------------------

    "set foldmethod=syntax
    filetype plugin indent on

    let python_highlight_all=1

    " autocmd vimenter * NERDTree
    17 changes: 17 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    # Setting up neovim
    - https://github.com/neovim/neovim/wiki/Installing-Neovim
    ```sh
    sudo apt install neovim
    ```

    # vim-plug for neovim
    - https://github.com/junegunn/vim-plug
    ```sh
    sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
    ```

    # neovim init.vim
    ```sh
    place init.vim in ~/.config/nvim/init.vim
    ```