From 3a29731b23b29f7ebdf1820cc29b4db198df8d60 Mon Sep 17 00:00:00 2001 From: leonid-shutov Date: Wed, 21 Aug 2024 14:19:47 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8UPDATE=20README=F0=9F=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/README.md b/README.md index 59f4490..748f8f4 100644 --- a/README.md +++ b/README.md @@ -203,3 +203,55 @@ vnoremap J :m '>+1gv=gv vnoremap K :m '<-2gv=gv ``` +```vim +set scrolloff=8 +set number +set relativenumber +set tabstop=2 softtabstop=2 +set shiftwidth=2 +set expandtab +set smartindent + +call plug#begin('~/.vim/plugged') + +Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } +Plug 'junegunn/fzf.vim' +Plug 'projekt0n/github-nvim-theme' +Plug 'prettier/vim-prettier', { 'do': 'npm install --only=production' } +Plug 'dense-analysis/ale' +Plug 'jiangmiao/auto-pairs' +Plug 'kdheepak/lazygit.nvim' + +call plug#end() + +testtt +colorscheme github_dark_default + +let g:prettier#autoformat = 1 +let g:prettier#autoformat_require_pragma = 0 + +let g:ale_linters = { + \ 'javascript': ['eslint'], + \} + +nnoremap :GFiles +nnoremap :cnext +nnoremap :cprev +let mapleader = " " +nnoremap e :Vexo +nnoremap :so ~/.config/nvim/init.vim + +"Git diff +nnoremap d :LazyGit + +"Comments +nnoremap / 0i// + +"Copy +vnoremap y "+y + +"Move selection +vnoremap J :m '>+1gv=gv +vnoremap K :m '<-2gv=gv + +```