ApolloNvim/init.vim

126 lines
3.5 KiB
VimL
Raw Normal View History

2024-10-18 07:02:55 +00:00
set number " zobrazí čísla řádků
set wrap " zalomí kód na řádku
set cursorline " zvýraznění řádku s kurzorem
2024-10-14 06:49:09 +00:00
set noshowmode
2024-10-18 07:02:55 +00:00
set title " zobrazí název a cestu souboru
set clipboard=unnamedplus " povolí kopírování a vkládání mimo Neovim
2024-10-19 15:17:59 +00:00
set signcolumn=yes " zajistí number a gitgutter vedle sebe
2024-03-16 21:09:58 +00:00
2024-03-09 18:56:44 +00:00
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
2024-10-14 06:49:09 +00:00
"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'] }
2024-10-14 06:49:09 +00:00
" Přidání klávesové zkratky pro potvrzení nápovědy kódu
imap <silent><expr> <TAB> coc#pum#visible() ? coc#pum#confirm() : "\<TAB>"
2024-03-16 21:09:58 +00:00
Plug 'othree/html5.vim'
2024-03-09 18:56:44 +00:00
2024-10-19 15:17:59 +00:00
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)
2024-03-24 16:29:35 +00:00
2024-10-14 15:59:35 +00:00
" Plug 'Exafunction/codeium.vim', { 'branch': 'main' } " Free AI codium
2024-03-18 07:58:01 +00:00
2024-10-20 13:44:05 +00:00
Plug 'codota/tabnine-nvim', { 'do': './dl_binaries.sh' }
2024-10-14 06:49:09 +00:00
Plug 'm4xshen/autoclose.nvim' " AutocloseTag (lua)
2024-03-09 18:56:44 +00:00
2024-10-14 06:49:09 +00:00
Plug 'https://github.com/scrooloose/nerdtree' " NERDTree postraní panel
2024-03-09 18:56:44 +00:00
2024-10-14 06:49:09 +00:00
Plug 'neoclide/coc.nvim', {'branch': 'release'} "Coc balíčkovací systém
2024-03-09 18:56:44 +00:00
2024-10-14 06:49:09 +00:00
Plug 'mhinz/vim-startify' " Alternativní startovací obrazovka
2024-03-09 18:56:44 +00:00
2024-10-14 06:49:09 +00:00
Plug 'preservim/nerdcommenter' " NERD Commenter - komentáře
2024-03-09 18:56:44 +00:00
2024-10-14 06:49:09 +00:00
Plug 'wakatime/vim-wakatime' " Wakatime
2024-03-09 18:56:44 +00:00
2024-10-14 06:49:09 +00:00
Plug 'tpope/vim-fugitive' " Git - vim fugitive
2024-03-09 18:56:44 +00:00
2024-10-19 15:17:59 +00:00
Plug 'lewis6991/gitsigns.nvim' " Git Signs (lua)
2024-10-14 06:49:09 +00:00
Plug 'lilydjwg/colorizer' " Náhled barev css
Plug 'Pocco81/auto-save.nvim' " Autosave
2024-03-09 18:56:44 +00:00
Plug 'nvim-lua/plenary.nvim'
Plug 'pangloss/vim-javascript'
2024-03-09 18:56:44 +00:00
" Theme
2024-03-25 19:37:23 +00:00
Plug 'dracula/vim', { 'as': 'dracula' }
2024-03-21 16:08:45 +00:00
Plug 'Tsuzat/NeoSolarized.nvim', { 'branch': 'master' }
Plug 'bluz71/vim-moonfly-colors', { 'as': 'moonfly' }
Plug 'ghifarit53/tokyonight-vim'
2024-03-09 18:56:44 +00:00
2024-03-09 20:26:29 +00:00
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'
2024-03-09 18:56:44 +00:00
2024-03-16 21:09:58 +00:00
Plug 'sts10/vim-pink-moon'
2024-03-09 18:56:44 +00:00
2024-03-16 21:09:58 +00:00
Plug 'gilgigilgil/anderson.vim'
2024-03-09 20:26:29 +00:00
2024-03-16 21:09:58 +00:00
Plug 'jacoborus/tender.vim'
2024-03-09 18:56:44 +00:00
2024-03-16 21:09:58 +00:00
Plug 'nordtheme/vim'
2024-03-09 18:56:44 +00:00
2024-10-19 15:17:59 +00:00
call plug#end()
2024-10-20 13:44:05 +00:00
" Nastavení lua pluginů ve vlastních souborech
lua require('kankys')
2024-10-19 15:17:59 +00:00
" 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
2024-10-19 15:17:59 +00:00
" vim-gitgutter
let g:gitgutter_sign_added = '+'
let g:gitgutter_sign_modified = '~'
let g:gitgutter_sign_removed = '-'
2024-10-19 15:17:59 +00:00
" Autostart NERDTree
2024-10-14 06:49:09 +00:00
" autocmd VimEnter * call NERDTreeFocus() " Autostart NERDTreeFocus
2024-03-09 18:56:44 +00:00
2024-10-14 06:49:09 +00:00
" Komentáře NERD Commenter klávesové zkratky Ctrl + k + l
2024-03-09 18:56:44 +00:00
let mapleader=","
nmap <C-k> <plug>NERDCommenterToggle
vmap <C-l> <plug>NERDCommenterToggle<CR>
" Atomaticky po startu theme
2024-10-20 13:44:05 +00:00
colorscheme dracula
autocmd VimEnter * colorscheme dracula
2024-03-09 18:56:44 +00:00
" Autosave
let g:auto_save_enabled = 1
let g:auto_save_delay = 3000
let g:auto_save_events = ['InsertLeave', 'TextChanged']
2024-10-14 06:49:09 +00:00
" keys pretier
vmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected)