Created
September 5, 2021 00:34
-
-
Save PedramNavid/d35876f1c4a1f393f08977e430ed7ed3 to your computer and use it in GitHub Desktop.
Neovim settings for js/python
This file contains 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
──────┬───────────────────────────────────────────────────────────────────────────────────────────────── | |
│ 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