Update nvim config

This commit is contained in:
2024-06-19 12:25:43 +02:00
committed by Florestan Bredow
parent 31e0108da7
commit 3b0356eb22
2 changed files with 15 additions and 19 deletions

View File

@@ -13,8 +13,8 @@ call plug#begin('~/.config/nvim/plugged')
Plug 'junegunn/fzf.vim'
Plug 'junegunn/fzf'
Plug 'kyazdani42/nvim-web-devicons' " requis pas bufferline
Plug 'akinsho/bufferline.nvim'
Plug 'ms-jpq/chadtree', {'branch': 'chad', 'do': 'python3 -m chadtree deps'}
" Plug 'akinsho/bufferline.nvim'
" Plug 'ms-jpq/chadtree', {'branch': 'chad', 'do': 'python3 -m chadtree deps'}
call plug#end()
set background=dark
@@ -22,7 +22,14 @@ set background=dark
set ruler " Affiche la position du curseur
set number " Affiche le numéro des lignes
"set cursorline " Surligne la ligne en cours
set wrap
set scrolloff=5
set ignorecase
set smartcase
set incsearch
set hlsearch " Surligne les résultats d'une recherche
" -- Indentation:w
@@ -34,6 +41,7 @@ set autoindent
set wildmenu " Autocomplete les commandes via un menu
if (has("termguicolors"))
set termguicolors
endif
@@ -49,21 +57,6 @@ nnoremap <silent> <C-o> :Buffers<CR>
"nnoremap <C-n> :bn<CR>
"nnoremap <C-b> :bp<CR>
nnoremap <C-e> <cmd>CHADopen<cr>
" -- Les modifications de .vimrc sont prises en compte immédiatement
"if has("autocmd")
" autocmd! bufwritepost .vimrc source ~/.vimrc
"endif
"
"" -- Autocompletion avec coc
"inoremap <silent><expr> <c-space> coc#refresh()
"
"" -- Utiliser les tabulations
"" Tabultation précedente
"map <C-left> :tabp<cr>
"" Tabulation suivante
"map <C-right> :tabn<cr>" Ferme tabulation courante
"map <C-t><c> :tabc<cr>
set shiftwidth=4
set softtabstop=4
@@ -76,7 +69,7 @@ autocmd Filetype python setlocal ts=2 sw=2 expandtab
set termguicolors
lua << EOF
require("bufferline").setup{}
-- require("bufferline").setup{}
require("monokai-pro").setup({
-- ... your config
filter = "spectrum"