let mapleader="," if empty(glob('~/.local/share/nvim/site/autoload/plug.vim')) silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall --sync endif call plug#begin() Plug 'neovim/nvim-lspconfig' Plug 'ervandew/supertab' Plug 'morhetz/gruvbox' Plug 'preservim/nerdtree' Plug 'jreybert/vimagit' Plug 'tpope/vim-commentary' Plug 'ap/vim-css-color' call plug#end() let g:gruvbox_termcolors = 16 let g:gruvbox_italic = 1 let g:SuperTabDefaultCompletionType = "context" let g:SuperTabContextDefaultCompletionType = "" colorscheme gruvbox syntax on set number relativenumber set splitbelow splitright set clipboard+=unnamedplus set encoding=utf-8 set cursorline set nohlsearch set ignorecase set smartcase set mouse=a set scroll=10 set scrolloff=5 set tabstop=4 set shiftwidth=4 set laststatus=2 set omnifunc=v:lua.vim.lsp.omnifunc set completeopt=menuone,noinsert set statusline+=%< set statusline+=\ %F%r%m set statusline+=%= set statusline+=\ %l/%L,\ %v set statusline+=\ set statusline+=%#StatusLineNC# set statusline+=\ %Y set statusline+=\ %{&fileencoding?&fileencoding:&encoding} set statusline+=\[%{&fileformat}\] set statusline+=\ set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯХЪБЮ;ABCDEFGHIJKLMNOPQRSTUVWXYZ{}<>,фисвуапршолдьтщзйкыегмцчняхъэ;abcdefghijklmnopqrstuvwxyz[]' imap ;j imap жо map h map j map k map l nnoremap f :NERDTreeToggle " lua require('lspconfig').pylsp.setup{} " lua require('lspconfig').clangd.setup{filetypes = { "c", "cpp", "objc", "objcpp", "ch" }} " lua require('lspconfig').gopls.setup{} " lua require('lspconfig').rls.setup{} " lua require('lspconfig').quick_lint_js.setup{} nmap gd lua vim.lsp.buf.definition() nmap gD lua vim.lsp.buf.declaration() nmap gK lua vim.lsp.buf.hover() nmap gz lua vim.lsp.buf.references() nmap n lua vim.lsp.buf.rename() nmap b lua vim.lsp.buf.formatting() nmap a lua vim.lsp.buf.code_action() nmap w lua vim.lsp.buf.workspace_symbol() nmap l lua vim.diagnostic.setloclist() nmap ]g lua vim.diagnostic.goto_next() nmap [g lua vim.diagnostic.goto_prev() autocmd FileType c map e :w:exec '!gcc' shellescape(@%, 1) '-o out; ./out' autocmd FileType python map e :w:exec '!python' shellescape(@%, 1) autocmd FileType sh map e :w:exec '!sh' shellescape(@%, 1) autocmd VimLeave,VimSuspend * set guicursor=a:block-blinkon250