You've already forked NVimLitePyConf
mirror of
https://github.com/Llloooggg/NVimLitePyConf.git
synced 2026-03-06 04:06:22 +03:00
init
This commit is contained in:
55
README.md
Normal file
55
README.md
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
# NeoVim
|
||||||
|
Мой конфиг для NeoVim, нацеленный на легкость и работу с Python
|
||||||
|
|
||||||
|
# Установка
|
||||||
|
```sh
|
||||||
|
# Установка менеджера плагинов
|
||||||
|
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
||||||
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
|
||||||
|
# Клонирование файла конфига
|
||||||
|
git clone git@github.com:Llloooggg/NeoVim-config.git ~/.config/nvim
|
||||||
|
|
||||||
|
# Установка указанных плагинов в самом Nvim
|
||||||
|
:PlugInstall
|
||||||
|
```
|
||||||
|
|
||||||
|
# Использованные плагины
|
||||||
|
|
||||||
|
### Менеджер плагинов
|
||||||
|
[junegunn/vim-plug](https://github.com/junegunn/vim-plug)
|
||||||
|
|
||||||
|
### Меню проекта и дополнения к нему
|
||||||
|
[preservim/nerdtree](http://github.com/preservim/nerdtree)
|
||||||
|
|
||||||
|
[vim-nerdtree-syntax-highlight](http://github.com/tiagofumo/vim-nerdtree-syntax-highlight)
|
||||||
|
|
||||||
|
[scrooloose/nerdcommenter](http://github.com/scrooloose/nerdcommenter)
|
||||||
|
|
||||||
|
[ryanoasis/vim-devicons](http://github.com/ryanoasis/vim-devicons)
|
||||||
|
|
||||||
|
### Дополнение для Git
|
||||||
|
[vim-gitgutter](http://github.com/airblade/vim-gitgutter)
|
||||||
|
|
||||||
|
### Приятный статусбар
|
||||||
|
[itchyny/lightline.vim](http://github.com/itchyny/lightline.vim)
|
||||||
|
|
||||||
|
### Тема
|
||||||
|
[joshdick/onedark.vim](http://github.com/joshdick/onedark.vim)
|
||||||
|
|
||||||
|
### Проверка cинтаксиса
|
||||||
|
[dense-analysis/ale](http://github.com/dense-analysis/ale)
|
||||||
|
|
||||||
|
### Подсказки
|
||||||
|
[Shougo/deoplete.nvim](http://github.com/Shougo/deoplete.nvim)
|
||||||
|
|
||||||
|
[deoplete-plugins/deoplete-jedi](http://github.com/deoplete-plugins/deoplete-jedi)
|
||||||
|
|
||||||
|
### Улучшенный синтаксис Python
|
||||||
|
[numirias/semshi](http://github.com/numirias/semshi)
|
||||||
|
|
||||||
|
### Скобки
|
||||||
|
[tpope/vim-surround](http://github.com/tpope/vim-surround)
|
||||||
|
|
||||||
|
### Плавная прокрутка
|
||||||
|
[psliwka/vim-smoothie](http://github.com/psliwka/vim-smoothie)
|
||||||
92
init.vim
Normal file
92
init.vim
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
call plug#begin('~/.config/nvim/plugged')
|
||||||
|
|
||||||
|
" Меню проекта и дополнения к нему
|
||||||
|
Plug 'preservim/nerdtree'
|
||||||
|
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
|
||||||
|
Plug 'scrooloose/nerdcommenter'
|
||||||
|
Plug 'ryanoasis/vim-devicons'
|
||||||
|
|
||||||
|
" Дополнение для Git
|
||||||
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
|
||||||
|
" Линия статуса
|
||||||
|
Plug 'itchyny/lightline.vim'
|
||||||
|
|
||||||
|
" Тема
|
||||||
|
Plug 'joshdick/onedark.vim'
|
||||||
|
|
||||||
|
" Проверка cинтаксиса
|
||||||
|
Plug 'dense-analysis/ale'
|
||||||
|
|
||||||
|
" Подсказки
|
||||||
|
Plug 'Shougo/deoplete.nvim', {'do': ':autocmd VimEnter * UpdateRemotePlugins'}
|
||||||
|
Plug 'deoplete-plugins/deoplete-jedi'
|
||||||
|
|
||||||
|
" Python синтаксис
|
||||||
|
Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
|
||||||
|
|
||||||
|
" Скобки
|
||||||
|
Plug 'tpope/vim-surround'
|
||||||
|
|
||||||
|
" Плавная прокрутка
|
||||||
|
Plug 'psliwka/vim-smoothie'
|
||||||
|
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
|
||||||
|
language en_US.utf8
|
||||||
|
set nocompatible
|
||||||
|
filetype plugin indent on
|
||||||
|
set encoding=utf-8
|
||||||
|
syntax enable
|
||||||
|
|
||||||
|
" Нумерация строк
|
||||||
|
set number
|
||||||
|
|
||||||
|
" В нормальном режиме Ctrl+n вызывает :NERDTree
|
||||||
|
nmap <C-n> :NERDTreeToggle<CR>
|
||||||
|
vmap ++ <plug>NERDCommenterToggle
|
||||||
|
nmap ++ <plug>NERDCommenterToggl
|
||||||
|
|
||||||
|
" Стандартный фон терминала для любой цветовой схемы
|
||||||
|
au ColorScheme * hi Normal ctermbg=None
|
||||||
|
|
||||||
|
" Тема
|
||||||
|
let g:onedark_termcolors=256
|
||||||
|
colorscheme onedark
|
||||||
|
|
||||||
|
" Питоно-подсказки
|
||||||
|
let g:deoplete#enable_at_startup = 1
|
||||||
|
let g:jedi#completions_enabled = 0
|
||||||
|
|
||||||
|
" Автотабуляция
|
||||||
|
set expandtab
|
||||||
|
set tabstop=4
|
||||||
|
set softtabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
|
||||||
|
" Для включения стандартного фона терминала в строке состояния
|
||||||
|
autocmd VimEnter * call SetupLightlineColors()
|
||||||
|
function SetupLightlineColors() abort
|
||||||
|
let l:palette = lightline#palette()
|
||||||
|
|
||||||
|
let l:palette.normal.middle = [ [ 'NONE', 'NONE', 'NONE', 'NONE' ] ]
|
||||||
|
let l:palette.inactive.middle = l:palette.normal.middle
|
||||||
|
let l:palette.tabline.middle = l:palette.normal.middle
|
||||||
|
|
||||||
|
call lightline#colorscheme()
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Тема статусбара
|
||||||
|
set noshowmode " Табличка --INSERT-- больше не выводится на экран
|
||||||
|
set laststatus=2
|
||||||
|
let g:lightline = {
|
||||||
|
\ 'colorscheme': 'onedark',
|
||||||
|
\ 'active': {
|
||||||
|
\ 'left': [ [ 'mode', 'paste' ],
|
||||||
|
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
|
||||||
|
\ },
|
||||||
|
\ 'component_function': {
|
||||||
|
\ 'gitbranch': 'fugitive#head'
|
||||||
|
\ },
|
||||||
|
\ }
|
||||||
Reference in New Issue
Block a user