updated c and python
This commit is contained in:
@@ -21,6 +21,10 @@ If you have any issues, try formatting with:
|
||||
```bash
|
||||
python -m black {file}
|
||||
```
|
||||
If you are on Windows you can install clangd by typing:
|
||||
```bash
|
||||
:CocCommand clangd.install
|
||||
```
|
||||
|
||||
## Keybindings
|
||||
- CTRL + ww -> change window's focus
|
||||
|
||||
18
init.vim
18
init.vim
@@ -9,8 +9,8 @@ set mouse=a
|
||||
|
||||
set autoindent
|
||||
set expandtab
|
||||
set shiftwidth=2
|
||||
set softtabstop=2
|
||||
set shiftwidth=4
|
||||
set softtabstop=4
|
||||
|
||||
set number
|
||||
set relativenumber
|
||||
@@ -25,7 +25,7 @@ set incsearch
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
call plug#begin()
|
||||
Plug 'tpope/vim-fugitive' " Git integration
|
||||
Plug 'tpope/vim-commentary' " Commenting
|
||||
Plug 'tpope/vim-surround' " Manipulating surroundings
|
||||
@@ -35,20 +35,22 @@ Plug 'itchyny/lightline.vim' " Statusline
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'} " Language server protocol support
|
||||
Plug 'SirVer/ultisnips' " Snippet engine
|
||||
Plug 'honza/vim-snippets' " Snippets library
|
||||
Plug 'vim-autoformat/vim-autoformat'
|
||||
|
||||
Plug 'vim-scripts/c.vim' " C syntax and indentation
|
||||
Plug 'rust-lang/rust.vim' " Rust syntax and indentation
|
||||
Plug 'vim-autoformat/vim-autoformat' " Auto formatter
|
||||
Plug 'bfrg/vim-cpp-modern'
|
||||
Plug 'rust-lang/rust.vim'
|
||||
Plug 'kh3phr3n/python-syntax'
|
||||
|
||||
Plug 'folke/tokyonight.nvim'
|
||||
call plug#end()
|
||||
|
||||
colorscheme tokyonight-moon
|
||||
colorscheme tokyonight-storm
|
||||
|
||||
let g:coc_global_extensions = [
|
||||
\ 'coc-snippets',
|
||||
\ 'coc-clangd',
|
||||
\ 'coc-rls',
|
||||
\ 'coc-rust-analyzer',
|
||||
\ 'coc-python',
|
||||
\]
|
||||
|
||||
if has('nvim')
|
||||
|
||||
Reference in New Issue
Block a user