summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-13 19:17:26 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-13 19:17:26 +0100
commit9d7ba75e7864867398e8fa46fa65b3d6aabed672 (patch)
tree0e6f7988eb3a5933faaba7e0f51b0ca46c240204 /.config
parentAdded vim function to auto export ms files to pdf (diff)
downloaddotfiles-bsd-9d7ba75e7864867398e8fa46fa65b3d6aabed672.tar.gz
dotfiles-bsd-9d7ba75e7864867398e8fa46fa65b3d6aabed672.tar.bz2
dotfiles-bsd-9d7ba75e7864867398e8fa46fa65b3d6aabed672.tar.xz
dotfiles-bsd-9d7ba75e7864867398e8fa46fa65b3d6aabed672.tar.zst
dotfiles-bsd-9d7ba75e7864867398e8fa46fa65b3d6aabed672.zip
New lsp, coc sucks
Diffstat (limited to '.config')
-rw-r--r--.config/env1
-rw-r--r--.config/nvim/init.vim1
-rw-r--r--.config/nvim/plug-config/vim-lsp.vim14
-rw-r--r--.config/nvim/plug.vim2
-rw-r--r--.config/nvim/settings.vim2
-rw-r--r--.config/zsh/alias.zsh1
6 files changed, 20 insertions, 1 deletions
diff --git a/.config/env b/.config/env
index 6178491..6c4084e 100644
--- a/.config/env
+++ b/.config/env
@@ -70,3 +70,4 @@ export LESSHISTFILE='-'
export MANPAGER="less -R -M +Gg"
export MPD_HOST="$HOME"/.local/share/mpd/socket
export RUSTFLAGS="-L /usr/local/lib"
+export WGETRC="$XDG_CONFIG_HOME/wgetrc"
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index e810fe3..2315854 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -20,6 +20,7 @@ source /home/jozan/.config/nvim/bindings.vim
source /home/jozan/.config/nvim/sidebars.vim
source /home/jozan/.config/nvim/langs.vim
source /home/jozan/.config/nvim/plug-config/airline.vim
+source /home/jozan/.config/nvim/plug-config/vim-lsp.vim
" source /home/jozan/.config/nvim/plug-config/coc.vim
source /home/jozan/.config/nvim/plug-config/floaterm.vim
source /home/jozan/.config/nvim/plug-config/nerd-commenter.vim
diff --git a/.config/nvim/plug-config/vim-lsp.vim b/.config/nvim/plug-config/vim-lsp.vim
new file mode 100644
index 0000000..f416557
--- /dev/null
+++ b/.config/nvim/plug-config/vim-lsp.vim
@@ -0,0 +1,14 @@
+if executable('clangd')
+ augroup lsp_clangd
+ autocmd!
+ autocmd User lsp_setup call lsp#register_server({
+ \ 'name': 'clangd',
+ \ 'cmd': {server_info->['clangd']},
+ \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp'],
+ \ })
+ autocmd FileType c setlocal omnifunc=lsp#complete
+ autocmd FileType cpp setlocal omnifunc=lsp#complete
+ autocmd FileType objc setlocal omnifunc=lsp#complete
+ autocmd FileType objcpp setlocal omnifunc=lsp#complete
+ augroup end
+endif
diff --git a/.config/nvim/plug.vim b/.config/nvim/plug.vim
index 4c79aaa..cd22be7 100644
--- a/.config/nvim/plug.vim
+++ b/.config/nvim/plug.vim
@@ -18,6 +18,8 @@ Plug 'mhinz/vim-startify'
Plug 'morhetz/gruvbox'
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'paretje/nvim-man'
+Plug 'prabirshrestha/async.vim'
+Plug 'prabirshrestha/vim-lsp'
Plug 'preservim/tagbar'
Plug 'preservim/nerdcommenter'
Plug 'preservim/nerdtree'
diff --git a/.config/nvim/settings.vim b/.config/nvim/settings.vim
index 71fb2da..160aee9 100644
--- a/.config/nvim/settings.vim
+++ b/.config/nvim/settings.vim
@@ -2,7 +2,7 @@ set noautochdir
set bg=dark
set cindent
set cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l1,b0,gs,h0,N0,E0,p0,t0,i0,+s
-set cinoptions+=c1,C0,/0,(s,us,U0,w0,Ws,k0,m1,M0,)20,*70,#0
+set cinoptions+=c1,C0,/0,(s,us,U0,w0,Ws,k0,m0,M1,)20,*70,#0
set clipboard^=unnamedplus
set cursorline
set encoding=utf-8
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh
index 88c5a8f..fb85c42 100644
--- a/.config/zsh/alias.zsh
+++ b/.config/zsh/alias.zsh
@@ -112,3 +112,4 @@ alias dosbox='dosbox -conf $XDG_CONFIG_HOME/dosbox/dosbox.conf'
alias svn='svn --config-dir $XDG_CONFIG_HOME/subversion'
alias gpg2='gpg2 --homedir $XDG_DATA_HOME/gnupg'
alias yarn='yarn --use-yarnrc $XDG_CONFIG_HOME/yarn/config'
+alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'