Switch to coc and add env vars

This commit is contained in:
Devon Tingley 2021-10-03 07:50:16 -04:00
parent 2b772c13b5
commit f7a7360003
3 changed files with 11 additions and 34 deletions

View file

@ -13,6 +13,9 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
bindsym XF86MonBrightnessDown exec sudo xbacklight -dec 5
bindsym XF86MonBrightnessUp exec sudo xbacklight -inc 5
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

View file

@ -1,13 +1,7 @@
call plug#begin('~/.local/share/nvim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'morhetz/gruvbox'
Plug 'ms-jpq/chadtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'ryanoasis/vim-devicons'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/nvim-compe'
Plug 'windwp/nvim-autopairs'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
"Theme
@ -17,30 +11,8 @@ colorscheme gruvbox
set number relativenumber
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
set splitright
set scrolloff=10
tnoremap <Esc> <C-\><C-n>
command TMK w | call system("latexmk -pdf && latexmk -c")
"Language Servers
set completeopt=menuone,noselect "Autocomplete
let g:compe = {}
let g:compe.source = {}
let g:compe.source.nvim_lsp = v:true
inoremap <silent><expr> <C-Space> compe#complete()
inoremap <silent><expr> <CR> compe#confirm('<CR>')
inoremap <silent><expr> <C-e> compe#close('<C-e>')
inoremap <silent><expr> <C-f> compe#scroll({ 'delta': +4 })
inoremap <silent><expr> <C-d> compe#scroll({ 'delta': -4 })
lua << EOF
require'lspconfig'.gopls.setup{}
require'lspconfig'.rust_analyzer.setup{}
require'lspconfig'.pyright.setup{}
require('nvim-autopairs').setup({})
require('nvim-autopairs.completion.compe').setup({
map_cr = true,
map_complete = true,
auto_select = false,
})
EOF

8
.zshrc
View file

@ -23,8 +23,10 @@ plugins=(
yarn
)
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export GDK_SCALE=1.5
export GDK_DPI_SCALE=1.5
export QT_AUTO_SCREEN_SCALE_FACTOR=1.5
source $ZSH/oh-my-zsh.sh
export $(grep -v '^#' .env | tr -d '"' | xargs -d '\n')