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=number 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 coc#pum#visible() ? coc#pum#confirm() : "\" Plug 'othree/html5.vim' Plug 'shellRaining/hlchunk.nvim' " Propojovací lajny v kódu (lua) " Plug 'Exafunction/codeium.vim', { 'branch': 'main' } " Free AI codium 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 'lilydjwg/colorizer' " Náhled barev css Plug 'Pocco81/auto-save.nvim' " Autosave 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' " CMP setup " LSP Plug 'neovim/nvim-lspconfig' " Autocompletion Plug 'hrsh7th/nvim-cmp' Plug 'hrsh7th/cmp-nvim-lsp' Plug 'hrsh7th/cmp-buffer' Plug 'hrsh7th/cmp-path' Plug 'hrsh7th/cmp-cmdline' Plug 'hrsh7th/cmp-vsnip' Plug 'hrsh7th/vim-vsnip' " LSP Signature Plug 'ray-x/lsp_signature.nvim' " Lightbulb Plug 'kosayoda/nvim-lightbulb' call plug#end() " Autostart NERDTree " autocmd VimEnter * call NERDTreeFocus() " Autostart NERDTreeFocus " Komentáře NERD Commenter klávesové zkratky Ctrl + k + l let mapleader="," nmap NERDCommenterToggle vmap NERDCommenterToggle " 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 f (coc-format-selected) nmap f (coc-format-selected) lua <'] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete(), [''] = cmp.mapping.close(), [''] = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true, }), }, sources = { { name = 'nvim_lsp' }, { name = 'vsnip' }, { name = 'buffer' }, { name = 'path' }, }, } -- Use buffer source for `/` cmp.setup.cmdline('/', { sources = { { name = 'buffer' } } }) -- Use cmdline & path source for ':' cmp.setup.cmdline(':', { sources = cmp.config.sources({ { name = 'path' } }, { { name = 'cmdline' } }) }) EOF lua << EOF -- lsp_signature setup require'lsp_signature'.setup({ bind = true, -- This is mandatory, otherwise border config won't get registered. handler_opts = { border = "rounded" } }) EOF lua << EOF -- nvim-lightbulb setup require('nvim-lightbulb').setup({ autocmd = { enabled = true }, }) EOF