From 4e5c51a5dda057e6d3b5fe41ca15be03cb66512f Mon Sep 17 00:00:00 2001 From: _N0x Date: Sun, 7 Feb 2021 02:50:45 +0100 Subject: [PATCH] minor changes to vim and xinitrx --- nvim/.config/nvim/init.vim | 32 +++++++++++++++++--------------- xresources/.xinitrc | 3 +++ zsh/.oh-my-zsh/cache/.zsh-update | 2 +- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 9deebad..be31116 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -14,13 +14,16 @@ set tabstop=4 softtabstop=4 set shiftwidth=4 set expandtab +set nowrap " Plugin stuff " call plug#begin() -Plug 'neoclide/coc.nvim', {'branch': 'release', 'do': { -> coc#util#install()}} +Plug 'ryanoasis/vim-devicons' +Plug 'neoclide/coc.nvim' Plug 'vim-airline/vim-airline' -Plug 'preservim/nerdtree' +Plug 'preservim/nerdtree', {'on': 'NERDTreeToggle'} Plug 'arcticicestudio/nord-vim' +Plug 'mg979/vim-visual-multi' Plug 'mbbill/undotree' Plug 'hugolgst/vimsence' call plug#end() @@ -37,23 +40,16 @@ let g:vimsence_editing_state = 'Working on: {}' " Keybinds " let mapleader = " " -"inoremap -" \ pumvisible() ? "\" : -" \ check_back_space() ? "\" : -" \ coc#refresh() -"inoremap pumvisible() ? "\" : "\" - -"function! s:check_back_space() abort -" let col = col('.') - 1 -" return !col || getline('.')[col - 1] =~# '\s' -"endfunction - -"inoremap coc#refresh() - +" quickly move between editors nnoremap h :wincmd h +nnoremap :wincmd h nnoremap j :wincmd j +nnoremap :wincmd j nnoremap k :wincmd k +nnoremap :wincmd k nnoremap l :wincmd l +nnoremap :wincmd l + " Undotree " nnoremap u :UndotreeToggle " NERDTree " @@ -62,3 +58,9 @@ nnoremap n :NERDTreeToggle " Exit Vim if NERDTree is the only window left. autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | \ quit | endif + + +let g:airline_powerline_fonts = 1 +let g:airline_theme = "nord" + +let g:coc_global_extensions = ['coc-git', 'coc-tsserver', 'coc-clangd', 'coc-java', 'coc-sql', 'coc-spell-checker'] diff --git a/xresources/.xinitrc b/xresources/.xinitrc index 2b21fbe..e46b67a 100644 --- a/xresources/.xinitrc +++ b/xresources/.xinitrc @@ -44,6 +44,9 @@ picom -f & # restore wallpaper nitrogen --restore & +# fix java for java is being java.... +export AWT_TOOLKIT=MToolkit + # execture dwm while true; do dwm >/dev/null 2>&1 diff --git a/zsh/.oh-my-zsh/cache/.zsh-update b/zsh/.oh-my-zsh/cache/.zsh-update index b31f7a5..6156683 100644 --- a/zsh/.oh-my-zsh/cache/.zsh-update +++ b/zsh/.oh-my-zsh/cache/.zsh-update @@ -1 +1 @@ -LAST_EPOCH=18651 +LAST_EPOCH=18664