From 6cb36b4fd4dce0e8c4bba9b56c508c2ecea09c92 Mon Sep 17 00:00:00 2001 From: Francesco Date: Sun, 10 Mar 2024 23:31:03 +0100 Subject: [PATCH] updated c and python --- README.md | 4 ++++ init.vim | 18 ++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 95827d0..68e9767 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/init.vim b/init.vim index 79518b0..68e5497 100644 --- a/init.vim +++ b/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')