Skip to content

Instantly share code, notes, and snippets.

@PedramNavid
Created September 5, 2021 00:34
Show Gist options
  • Save PedramNavid/d35876f1c4a1f393f08977e430ed7ed3 to your computer and use it in GitHub Desktop.
Save PedramNavid/d35876f1c4a1f393f08977e430ed7ed3 to your computer and use it in GitHub Desktop.
Neovim settings for js/python
──────┬─────────────────────────────────────────────────────────────────────────────────────────────────
│ File: ftplugin/json.vim
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────
1 │ set shiftwidth=2 " number of spaces to use for each indent
2 │ set tabstop=2 " tabs appear as 4 spaces
3 │ set softtabstop=2 " pressing tab inserts 4 spaces
4 │ set expandtab " pressing tab uses spaces instead of tabs
5 │ set smartindent " auto-indent on new lines
6 │
7 │ set colorcolumn=80
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────
│ File: ftplugin/python.vim
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────
1 │ set shiftwidth=4 " number of spaces to use for each indent
2 │ set tabstop=4 " tabs appear as 4 spaces
3 │ set softtabstop=4 " pressing tab inserts 4 spaces
4 │ set expandtab " pressing tab uses spaces instead of tabs
5 │ set smartindent " auto-indent on new lines
6 │
7 │ set colorcolumn=80
8 │
9 │ setlocal formatprg=black\ --quiet\ -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment