From 2bc158c35e43f948d73efdd1563640a234d3c7c6 Mon Sep 17 00:00:00 2001 From: simonkellet Date: Tue, 2 Nov 2021 16:00:32 +0000 Subject: [PATCH] changes you know the drilllll --- .bash_aliases | 2 ++ .bashrc | 1 + nvim/init.vim | 59 ++++++++++++++++++++++++++++++-------- qutebrowser/autoconfig.yml | 4 +-- 4 files changed, 52 insertions(+), 14 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 7a43e70..5b5fe17 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -15,6 +15,8 @@ alias print="printf" alias cfi3="nvim ~/.config/i3/config" alias cfi3s="nvim ~/.config/i3status/config" +alias cfn="nvim ~/.config/nvim/init.vim" + alias c="cd ~/.config" alias yt="youtube-viewer" diff --git a/.bashrc b/.bashrc index 11df463..88f2bb0 100644 --- a/.bashrc +++ b/.bashrc @@ -10,6 +10,7 @@ export BROWSER=brave #export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg" # - Ui4axsk9mwfw? - +set -o vi #ufetch #(cat $HOME/.config/wpg/sequences &) function lazygit() { diff --git a/nvim/init.vim b/nvim/init.vim index c5d00b0..57959af 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -7,11 +7,13 @@ Plug 'editorconfig/editorconfig-vim' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' +" LimeLight +Plug 'junegunn/limelight.vim' + " NERDTree Plug 'scrooloose/nerdtree' -" Improvements -Plug 'terryma/vim-multiple-cursors' +" Improvements Plug 'terryma/vim-multiple-cursors' Plug 'tpope/vim-eunuch' Plug 'tpope/vim-surround' Plug 'scrooloose/syntastic' @@ -31,14 +33,22 @@ Plug 'joshdick/onedark.vim' " Lang. Support Plug 'fatih/vim-go' Plug 'artur-shaik/vim-javacomplete2' -Plug 'Valloric/YouCompleteMe', { 'do': './install.py' } +"Plug 'Valloric/YouCompleteMe', { 'do': './install.py' } +Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } +Plug 'zchee/deoplete-jedi' +Plug 'davidhalter/jedi-vim' Plug 'rust-lang/rust.vim' Plug 'preservim/nerdcommenter' Plug 'mattn/emmet-vim' + +" Code Folding +Plug 'tmhedberg/SimpylFold' + " Writing Plug 'junegunn/goyo.vim' Plug 'lervag/vimtex' Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' } +" Plug 'conornewton/vim-latex-preview' "Zoxide Plug 'nanotee/zoxide.vim' @@ -77,8 +87,8 @@ set number relativenumber colorscheme onedark set nocompatible set encoding=UTF-8 +set clipboard+=unnamedplus -let g:livepreview_previewer = 'zathura' set mouse=a " Map Leader let mapleader = "," @@ -93,15 +103,40 @@ au BufNewFile ~/vimwiki/diary/*.md :silent 0r !~/.config/nvim/generate-vimwiki-d let NERDTreeMapOpenInTab='' +" Tex +let g:vimtex_complete_enabled = 1 +let g:livepreview_previewer = 'zathura' +autocmd Filetype tex setl updatetime=1 + +" Fzf let g:fzf_nvim_statusline = 0 " disable statusline overwriting "remaps for fzf nnoremap :Files nnoremap w :Windows nnoremap h :History -nnoremap g :GFiles -nnoremap gs :GFiles? - +nnoremap G :GFiles +nnoremap GS :GFiles? + +" Easy to update and reload nvim init file +nnoremap e :e $MYVIMRC +nnoremap S :source $MYVIMRC + +" Deoplete +let g:deoplete#enable_at_startup = 1 +autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif +let g:jedi#completions_enabled = 0 +let g:jedi#use_splits_not_buffers = "right" + +" Limeligt Binds +nnoremap l :Limelight!! +let g:limelight_conceal_guifg = 'DarkGray' +let g:limelight_conceal_guifg = '#777777' +let g:limelight_conceal_ctermfg = 'gray' +let g:limelight_conceal_ctermfg = 240 + +" : completion. +inoremap pumvisible() ? "\" : "\" " Switching windows nnoremap h nnoremap j @@ -109,12 +144,12 @@ nnoremap k nnoremap l " Move tabs -nnoremap :tabp -nnoremap :tabn +nnoremap :tabp +nnoremap :tabn " Basic cmd commands -nnoremap :!touch -nnoremap :tabe +nnoremap :!touch +nnoremap :tabe nnoremap :vsplit " Screenshot command @@ -130,7 +165,7 @@ vmap < >gv " Open NERDTree -nnoremap n :NERDTreeToggle +nnoremap N :NERDTreeToggle " Vimwiki md2html let g:vimwiki_list = [{ diff --git a/qutebrowser/autoconfig.yml b/qutebrowser/autoconfig.yml index 6e83a9f..e40a6ad 100644 --- a/qutebrowser/autoconfig.yml +++ b/qutebrowser/autoconfig.yml @@ -22,10 +22,10 @@ settings: scrolling.smooth: global: true statusbar.show: - global: never + global: always tabs.position: global: left tabs.show: - global: never + global: always tabs.width: global: 2%