updated c and python

This commit is contained in:
2024-03-10 23:31:03 +01:00
parent b57f63e334
commit 6cb36b4fd4
2 changed files with 14 additions and 8 deletions

View File

@@ -21,6 +21,10 @@ If you have any issues, try formatting with:
```bash ```bash
python -m black {file} python -m black {file}
``` ```
If you are on Windows you can install clangd by typing:
```bash
:CocCommand clangd.install
```
## Keybindings ## Keybindings
- CTRL + ww -> change window's focus - CTRL + ww -> change window's focus

View File

@@ -9,8 +9,8 @@ set mouse=a
set autoindent set autoindent
set expandtab set expandtab
set shiftwidth=2 set shiftwidth=4
set softtabstop=2 set softtabstop=4
set number set number
set relativenumber set relativenumber
@@ -25,7 +25,7 @@ set incsearch
set ignorecase set ignorecase
set smartcase set smartcase
call plug#begin('~/.config/nvim/plugged') call plug#begin()
Plug 'tpope/vim-fugitive' " Git integration Plug 'tpope/vim-fugitive' " Git integration
Plug 'tpope/vim-commentary' " Commenting Plug 'tpope/vim-commentary' " Commenting
Plug 'tpope/vim-surround' " Manipulating surroundings 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 'neoclide/coc.nvim', {'branch': 'release'} " Language server protocol support
Plug 'SirVer/ultisnips' " Snippet engine Plug 'SirVer/ultisnips' " Snippet engine
Plug 'honza/vim-snippets' " Snippets library Plug 'honza/vim-snippets' " Snippets library
Plug 'vim-autoformat/vim-autoformat'
Plug 'vim-scripts/c.vim' " C syntax and indentation Plug 'bfrg/vim-cpp-modern'
Plug 'rust-lang/rust.vim' " Rust syntax and indentation Plug 'rust-lang/rust.vim'
Plug 'vim-autoformat/vim-autoformat' " Auto formatter Plug 'kh3phr3n/python-syntax'
Plug 'folke/tokyonight.nvim' Plug 'folke/tokyonight.nvim'
call plug#end() call plug#end()
colorscheme tokyonight-moon colorscheme tokyonight-storm
let g:coc_global_extensions = [ let g:coc_global_extensions = [
\ 'coc-snippets', \ 'coc-snippets',
\ 'coc-clangd', \ 'coc-clangd',
\ 'coc-rls', \ 'coc-rust-analyzer',
\ 'coc-python',
\] \]
if has('nvim') if has('nvim')