Aktualizovat init.vim
This commit is contained in:
parent
09351d1bea
commit
f4755387dd
266
init.vim
266
init.vim
@ -1,124 +1,142 @@
|
|||||||
set number
|
set number
|
||||||
|
|
||||||
|
" Plugins will be downloaded under the specified directory.
|
||||||
|
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
|
||||||
call plug#begin('c:\users\lukas\appdata\local\nvim\autoload\plugged')
|
|
||||||
|
|
||||||
|
" NERDTree postraní stromové řazení
|
||||||
Plug 'https://github.com/scrooloose/nerdtree'
|
Plug 'https://github.com/scrooloose/nerdtree'
|
||||||
|
|
||||||
"Coc
|
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
" Tabnine
|
||||||
|
Plug 'codota/tabnine-nvim', { 'do': './dl_binaries.sh' }
|
||||||
|
|
||||||
Plug 'othree/html5.vim'
|
|
||||||
|
"Coc
|
||||||
" NERD Commenter
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'preservim/nerdcommenter'
|
|
||||||
|
|
||||||
" Wakatime
|
Plug 'othree/html5.vim'
|
||||||
Plug 'wakatime/vim-wakatime'
|
|
||||||
|
" NERD Commenter
|
||||||
|
Plug 'preservim/nerdcommenter'
|
||||||
"Spodní lišta
|
|
||||||
Plug 'itchyny/lightline.vim'
|
" Wakatime
|
||||||
|
Plug 'wakatime/vim-wakatime'
|
||||||
" Autosave
|
|
||||||
Plug 'Pocco81/auto-save.nvim'
|
|
||||||
|
"Spodní lišta
|
||||||
" Color picker
|
Plug 'itchyny/lightline.vim'
|
||||||
" Plug 'DougBeney/pickachu'
|
|
||||||
Plug 'brenoprata10/nvim-highlight-colors'
|
" Autosave
|
||||||
|
Plug 'Pocco81/auto-save.nvim'
|
||||||
" Themes
|
|
||||||
Plug 'projekt0n/github-nvim-theme'
|
" Theme
|
||||||
|
Plug 'dracula/vim'
|
||||||
Plug 'bluz71/vim-nightfly-colors', { 'as': 'nightfly' }
|
|
||||||
|
|
||||||
Plug 'xero/miasma.nvim'
|
" Color picker
|
||||||
|
" Plug 'DougBeney/pickachu'
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'brenoprata10/nvim-highlight-colors'
|
||||||
|
|
||||||
Plug 'joshdick/onedark.vim'
|
|
||||||
|
|
||||||
Plug 'sainnhe/sonokai'
|
" List ends here. Plugins become visible to Vim after this call.
|
||||||
|
call plug#end()
|
||||||
Plug 'sainnhe/edge'
|
|
||||||
|
|
||||||
Plug 'dracula/vim'
|
|
||||||
|
" Barvičky highlight (podle kodu obarví text)
|
||||||
|
set termguicolors
|
||||||
call plug#end()
|
set t_Co=256
|
||||||
|
|
||||||
" Barvičky highlight (podle kodu obarví text)
|
" Komentáře NERD Commenter klávesové zkratky
|
||||||
set termguicolors
|
let mapleader=","
|
||||||
set t_Co=256
|
nmap <C-k> <plug>NERDCommenterToggle
|
||||||
|
vmap <C-l> <plug>NERDCommenterToggle<CR>
|
||||||
" Komentáře NERD Commenter klávesové zkratky
|
|
||||||
let mapleader=","
|
" Nastavení klávesy Enter pro potvrzení výběru z vyskakovací nápovědy
|
||||||
nmap <C-k> <plug>NERDCommenterToggle
|
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
|
||||||
vmap <C-l> <plug>NERDCommenterToggle<CR>
|
|
||||||
|
|
||||||
" Nastavení klávesy Enter pro potvrzení výběru z vyskakovací nápovědy
|
|
||||||
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
|
" Autostart NERDFocus
|
||||||
|
autocmd VimEnter * call NERDTreeFocus()
|
||||||
|
|
||||||
" Autostart NERDFocus
|
|
||||||
autocmd VimEnter * call NERDTreeFocus()
|
" Klávesové zkratka exit
|
||||||
|
nnoremap <C-e> :exit<CR>
|
||||||
|
|
||||||
" Github Copilot
|
" Klávesové zkratky pro zpět
|
||||||
let g:copilot_filetypes = {'*': v:true}
|
nnoremap <C-Z> u
|
||||||
|
|
||||||
" Klávesové zkratka exit
|
" Klávesové zkratky pro uložení
|
||||||
nnoremap <C-e> :exit<CR>
|
noremap <C-S> :w<CR>
|
||||||
|
|
||||||
" Klávesové zkratky pro zpět
|
" Nastavení kopírování a vkládání mezi aplikacemi
|
||||||
nnoremap <C-Z> u
|
set clipboard=unnamedplus
|
||||||
|
|
||||||
" Klávesové zkratky pro uložení
|
" Prettier klávesové zkratky
|
||||||
noremap <C-S> :w<CR>
|
nmap <c-p> :Prettier<cr>
|
||||||
|
|
||||||
" Nastavení kopírování a vkládání mezi aplikacemi
|
" Atomaticky po startu theme
|
||||||
set clipboard=unnamedplus
|
colorscheme dracula
|
||||||
|
autocmd VimEnter * colorscheme dracula
|
||||||
" Prettier klávesové zkratky
|
|
||||||
nmap <c-w> :Prettier<cr>
|
" Nastavení copy a paste
|
||||||
|
"ynoremap <C-c> "+y
|
||||||
" Atomaticky po startu theme
|
nnoremap <C-v> "+p
|
||||||
colorscheme dracula
|
|
||||||
autocmd VimEnter * colorscheme dracula
|
" Nastavení výjmutí
|
||||||
|
nnoremap <C-x> "+d
|
||||||
" Nastavení copy a paste
|
|
||||||
"ynoremap <C-c> "+y
|
|
||||||
nnoremap <C-v> "+p
|
" Autosave
|
||||||
|
let g:auto_save_enabled = 1
|
||||||
" Nastavení výjmutí
|
let g:auto_save_delay = 3000
|
||||||
nnoremap <C-x> "+d
|
let g:auto_save_events = ['InsertLeave', 'TextChanged']
|
||||||
|
|
||||||
|
|
||||||
" Autosave
|
" Nastavení Prettieru
|
||||||
let g:auto_save_enabled = 1
|
command! -nargs=0 Prettier :CocCommand prettier.forceFormatDocument
|
||||||
let g:auto_save_delay = 3000
|
|
||||||
let g:auto_save_events = ['InsertLeave', 'TextChanged']
|
let g:prettier#autoformat = 1
|
||||||
|
let g:prettier#autoformat_require_pragma = 1
|
||||||
|
let g:prettier#autoformat_config_files = ['prettier.config.js', '.prettierrc', '.prettierrc.json', '.prettierrc.yml', '.prettierrc.yaml', '.prettierrc.json5', '.prettierrc.js', '.prettierrc.cjs', '.prettierrc.toml', '.prettierrc.jsonc', '.prettierrc.html']
|
||||||
" Nastavení Prettieru
|
|
||||||
command! -nargs=0 Prettier :CocCommand prettier.forceFormatDocument
|
|
||||||
|
" Přiblížení oddálení přes myš
|
||||||
let g:prettier#autoformat = 1
|
let s:fontsize = 12
|
||||||
let g:prettier#autoformat_require_pragma = 1
|
function! AdjustFontSize(amount)
|
||||||
let g:prettier#autoformat_config_files = ['prettier.config.js', '.prettierrc', '.prettierrc.json', '.prettierrc.yml', '.prettierrc.yaml', '.prettierrc.json5', '.prettierrc.js', '.prettierrc.cjs', '.prettierrc.toml', '.prettierrc.jsonc', '.prettierrc.html']
|
let s:fontsize = s:fontsize+a:amount
|
||||||
|
:execute "GuiFont! Consolas:h" . s:fontsize
|
||||||
|
endfunction
|
||||||
" Přiblížení oddálení přes myš
|
|
||||||
let s:fontsize = 12
|
noremap <C-ScrollWheelUp> :call AdjustFontSize(1)<CR>
|
||||||
function! AdjustFontSize(amount)
|
noremap <C-ScrollWheelDown> :call AdjustFontSize(-1)<CR>
|
||||||
let s:fontsize = s:fontsize+a:amount
|
inoremap <C-ScrollWheelUp> <Esc>:call AdjustFontSize(1)<CR>a
|
||||||
:execute "GuiFont! Consolas:h" . s:fontsize
|
inoremap <C-ScrollWheelDown> <Esc>:call AdjustFontSize(-1)<CR>a
|
||||||
endfunction
|
|
||||||
|
|
||||||
noremap <C-ScrollWheelUp> :call AdjustFontSize(1)<CR>
|
|
||||||
noremap <C-ScrollWheelDown> :call AdjustFontSize(-1)<CR>
|
|
||||||
inoremap <C-ScrollWheelUp> <Esc>:call AdjustFontSize(1)<CR>a
|
|
||||||
inoremap <C-ScrollWheelDown> <Esc>:call AdjustFontSize(-1)<CR>a
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
lua <<EOF
|
||||||
|
|
||||||
|
--Tabnine setup ( Tabnine PRO)
|
||||||
|
require('tabnine').setup({
|
||||||
|
disable_auto_comment=true,
|
||||||
|
accept_keymap="<Tab>",
|
||||||
|
dismiss_keymap = "<C-]>",
|
||||||
|
debounce_ms = 800,
|
||||||
|
suggestion_color = {gui = "#808080", cterm = 244},
|
||||||
|
exclude_filetypes = {"TelescopePrompt", "NvimTree"},
|
||||||
|
log_file_path = nil, -- absolute path to Tabnine log file
|
||||||
|
})
|
||||||
|
|
||||||
|
EOF
|
Loading…
Reference in New Issue
Block a user