diff options
author | tsxv478 <atci39@rambler.ru> | 2024-06-19 06:58:00 +0300 |
---|---|---|
committer | tsxv478 <atci39@rambler.ru> | 2024-06-19 06:58:00 +0300 |
commit | fb05cbb94bbd6e8cfb22d3205d5463529313d868 (patch) | |
tree | 5d3898db011bb0202ad33cec1ff615b814d06341 /nvim | |
parent | 25fc2a381fb65157e81d0dce74fb0e7de7f8afa1 (diff) |
Fix structure
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/init.vim | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/nvim/init.vim b/nvim/init.vim deleted file mode 100644 index 42e76be..0000000 --- a/nvim/init.vim +++ /dev/null @@ -1,88 +0,0 @@ -let mapleader="," - -if ! filereadable(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim"')) - echo "Downloading junegunn/vim-plug to manage plugins..." - silent !mkdir -p ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/ - silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim - autocmd VimEnter * PlugInstall -endif - -call plug#begin() -Plug 'morhetz/gruvbox' -Plug 'navarasu/onedark.nvim' -Plug 'preservim/nerdtree' -Plug 'jreybert/vimagit' -Plug 'tpope/vim-commentary' -Plug 'ap/vim-css-color' -" Plug 'ervandew/supertab' -" Plug 'neovim/nvim-lspconfig' -call plug#end() - -let g:gruvbox_termcolors = 16 -let g:gruvbox_italic = 1 -let g:onedark_config = { 'style': 'dark', 'term_colors': 'true', 'transparent': 'true' } -" let g:SuperTabDefaultCompletionType = "context" -" let g:SuperTabContextDefaultCompletionType = "<c-x><c-o>" - -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 completeopt=menuone,noinsert -" set omnifunc=v:lua.vim.lsp.omnifunc - -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 <Esc> -map <C-h> <C-w>h -map <C-j> <C-w>j -map <C-k> <C-w>k -map <C-l> <C-w>l -nnoremap <leader>f :NERDTreeToggle<CR> - -" 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 <silent> gd <cmd>lua vim.lsp.buf.definition()<CR> -" nmap <silent> gD <cmd>lua vim.lsp.buf.declaration()<CR> -" nmap <silent> gK <cmd>lua vim.lsp.buf.hover()<CR> -" nmap <silent> gz <cmd>lua vim.lsp.buf.references()<CR> -" nmap <silent> <leader>n <cmd>lua vim.lsp.buf.rename()<CR> -" nmap <silent> <leader>b <cmd>lua vim.lsp.buf.formatting()<CR> -" nmap <silent> <leader>a <cmd>lua vim.lsp.buf.code_action()<CR> -" nmap <silent> <leader>w <cmd>lua vim.lsp.buf.workspace_symbol()<CR> -" nmap <silent> <leader>l <cmd>lua vim.diagnostic.setloclist()<CR> -" nmap <silent> ]g <cmd>lua vim.diagnostic.goto_next()<CR> -" nmap <silent> [g <cmd>lua vim.diagnostic.goto_prev()<CR> - -autocmd FileType c map <buffer> <leader>e :w<CR>:exec '!gcc' shellescape(@%, 1) '-o out; ./out'<CR> -autocmd FileType python map <buffer> <leader>e :w<CR>:exec '!python' shellescape(@%, 1)<CR> -autocmd FileType sh map <buffer> <leader>e :w<CR>:exec '!sh' shellescape(@%, 1)<CR> -" autocmd VimEnter * hi Normal guibg=NONE ctermbg=NONE -autocmd VimLeave,VimSuspend * set guicursor=a:block-blinkon250 |