126 lines
3.5 KiB
VimL
126 lines
3.5 KiB
VimL
set number " zobrazí čísla řádků
|
|
set wrap " zalomí kód na řádku
|
|
set cursorline " zvýraznění řádku s kurzorem
|
|
set noshowmode
|
|
set title " zobrazí název a cestu souboru
|
|
set clipboard=unnamedplus " povolí kopírování a vkládání mimo Neovim
|
|
set signcolumn=yes " zajistí number a gitgutter vedle sebe
|
|
|
|
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
|
|
|
|
"Prettier + setup
|
|
" post install (yarn install | npm install) then load plugin only for editing supported files
|
|
Plug 'prettier/vim-prettier', {
|
|
\ 'do': 'yarn install --frozen-lockfile --production',
|
|
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html', 'php'] }
|
|
|
|
" Přidání klávesové zkratky pro potvrzení nápovědy kódu
|
|
imap <silent><expr> <TAB> coc#pum#visible() ? coc#pum#confirm() : "\<TAB>"
|
|
|
|
Plug 'othree/html5.vim'
|
|
|
|
Plug 'airblade/vim-gitgutter' " Git nápověda ke změně v kódu
|
|
|
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
|
|
|
Plug 'shellRaining/hlchunk.nvim' " Propojovací lajny v kódu (lua)
|
|
|
|
" Plug 'Exafunction/codeium.vim', { 'branch': 'main' } " Free AI codium
|
|
|
|
Plug 'codota/tabnine-nvim', { 'do': './dl_binaries.sh' }
|
|
|
|
Plug 'm4xshen/autoclose.nvim' " AutocloseTag (lua)
|
|
|
|
Plug 'https://github.com/scrooloose/nerdtree' " NERDTree postraní panel
|
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'} "Coc balíčkovací systém
|
|
|
|
Plug 'mhinz/vim-startify' " Alternativní startovací obrazovka
|
|
|
|
Plug 'preservim/nerdcommenter' " NERD Commenter - komentáře
|
|
|
|
Plug 'wakatime/vim-wakatime' " Wakatime
|
|
|
|
Plug 'tpope/vim-fugitive' " Git - vim fugitive
|
|
|
|
Plug 'lewis6991/gitsigns.nvim' " Git Signs (lua)
|
|
|
|
Plug 'lilydjwg/colorizer' " Náhled barev css
|
|
|
|
Plug 'Pocco81/auto-save.nvim' " Autosave
|
|
|
|
Plug 'nvim-lua/plenary.nvim'
|
|
|
|
Plug 'pangloss/vim-javascript'
|
|
|
|
" Theme
|
|
Plug 'dracula/vim', { 'as': 'dracula' }
|
|
|
|
Plug 'Tsuzat/NeoSolarized.nvim', { 'branch': 'master' }
|
|
|
|
Plug 'bluz71/vim-moonfly-colors', { 'as': 'moonfly' }
|
|
|
|
Plug 'ghifarit53/tokyonight-vim'
|
|
|
|
Plug 'morhetz/gruvbox'
|
|
|
|
Plug 'joshdick/onedark.vim'
|
|
|
|
Plug 'sainnhe/sonokai'
|
|
|
|
Plug 'sainnhe/edge'
|
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
Plug 'projekt0n/github-nvim-theme'
|
|
|
|
Plug 'bluz71/vim-nightfly-colors', { 'as': 'nightfly' }
|
|
|
|
Plug 'xero/miasma.nvim'
|
|
|
|
Plug 'sts10/vim-pink-moon'
|
|
|
|
Plug 'gilgigilgil/anderson.vim'
|
|
|
|
Plug 'jacoborus/tender.vim'
|
|
|
|
Plug 'nordtheme/vim'
|
|
|
|
call plug#end()
|
|
|
|
" Nastavení lua pluginů ve vlastních souborech
|
|
lua require('kankys')
|
|
|
|
" Automatické instalování pluginů
|
|
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
|
if empty(glob(data_dir . '/autoload/plug.vim'))
|
|
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
|
endif
|
|
|
|
" vim-gitgutter
|
|
let g:gitgutter_sign_added = '+'
|
|
let g:gitgutter_sign_modified = '~'
|
|
let g:gitgutter_sign_removed = '-'
|
|
|
|
" Autostart NERDTree
|
|
" autocmd VimEnter * call NERDTreeFocus() " Autostart NERDTreeFocus
|
|
|
|
" Komentáře NERD Commenter klávesové zkratky Ctrl + k + l
|
|
let mapleader=","
|
|
nmap <C-k> <plug>NERDCommenterToggle
|
|
vmap <C-l> <plug>NERDCommenterToggle<CR>
|
|
|
|
" Atomaticky po startu theme
|
|
colorscheme dracula
|
|
autocmd VimEnter * colorscheme dracula
|
|
|
|
" Autosave
|
|
let g:auto_save_enabled = 1
|
|
let g:auto_save_delay = 3000
|
|
let g:auto_save_events = ['InsertLeave', 'TextChanged']
|
|
|
|
" keys pretier
|
|
vmap <leader>f <Plug>(coc-format-selected)
|
|
nmap <leader>f <Plug>(coc-format-selected)
|