call plug#begin('~/.local/share/nvim/site/plugged') Plug 'junegunn/goyo.vim' Plug 'rktjmp/lush.nvim' Plug 'tpope/vim-sensible' Plug '~/Dotfiles/nvim/theme/cyberqueer.nvim' Plug 'arecarn/vim-crunch' Plug 'preservim/nerdtree' Plug 'ryanoasis/vim-devicons' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'voldikss/vim-floaterm' Plug 'rust-lang/rust.vim' Plug 'neoclide/coc.nvim', {'branch': 'release'} call plug#end() colorscheme cyberqueer let g:airline_powerline_fonts = 1 let g:airline_theme='cyberqueer' syntax on filetype on set number set cursorline set cursorcolumn syntax enable filetype plugin indent on " Set shift width to 4 spaces. set shiftwidth=4 " Set tab width to 4 columns. set tabstop=4 " Use space characters instead of tabs. set expandtab " Do not save backup files. set nobackup " Do not let cursor scroll below or above N number of lines when scrolling. set scrolloff=10 " Do not wrap lines. Allow long lines to extend as far as the line goes. set nowrap " While searching though a file incrementally highlight matching characters as you type. set incsearch " Ignore capital letters during search. set ignorecase " Override the ignorecase option if searching for capital letters. " This will allow you to search specifically for capital letters. set smartcase " Show partial command you type in the last line of the screen. set showcmd " Show the mode you are on the last line. set showmode " Show matching words during a search. set showmatch " Use highlighting when doing a search. set hlsearch " Set the commands to save in history default number is 20. set history=1000 " Enable auto completion menu after pressing TAB. set wildmenu " Make wildmenu behave like similar to Bash completion. set wildmode=list:longest let time=system('date "+%H:%M:%S|%d.%m.%Y" | tr -d "\n"') let hostname=system('hostname -s | tr -d "\n"') let ipaddr=system('hostname -i | tr -d "\n"') let g:airline_section_x = 'IP:%{ipaddr} DNS:%{hostname}' nnoremap w nnoremap h :nnoremap t :FloatermNew :nnoremap e :NERDTreeTogglel :nnoremap q :q :inoremap :inoremap " :inoremap " :inoremap " " ##################################################### let g:coc_global_extensions=[ 'coc-snippets', 'coc-powershell', 'coc-sh', 'coc-omnisharp', 'coc-clangd', 'coc-json', 'coc-css', 'coc-git' ] " Use for trigger snippet expand. imap (coc-snippets-expand) " Use for select text for visual placeholder of snippet. vmap (coc-snippets-select) " Use for jump to next placeholder, it's default of coc.nvim let g:coc_snippet_next = '' " Use for jump to previous placeholder, it's default of coc.nvim let g:coc_snippet_prev = '' " Use for both expand and jump (make expand higher priority.) imap (coc-snippets-expand-jump) " Use x for convert visual selected code to snippet xmap x (coc-convert-snippet) " ##################################################### " : completion inoremap \ pumvisible() ? "\" : \ s:check_back_space() ? "\" : \ coc#refresh() " : completion back inoremap pumvisible() ? "\" : "\" " : confirm completion, or insert inoremap pumvisible() ? "\" : "\" function! s:check_back_space() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~ '\s' endfunction