Skip to content

Instantly share code, notes, and snippets.

@sauercrowd
Created October 21, 2019 13:48
Show Gist options
  • Save sauercrowd/f1ce1628c9bb0cf91152319c7215df0b to your computer and use it in GitHub Desktop.
Save sauercrowd/f1ce1628c9bb0cf91152319c7215df0b to your computer and use it in GitHub Desktop.
call plug#begin('~/.vim/plugged') [36/884]
Plug 'airblade/vim-gitgutter', {'do': 'UpdateRemotePlugins'}
Plug 'evanleck/vim-svelte'
Plug 'sakhnik/nvim-gdb', { 'do': ':!./install.sh \| UpdateRemotePlugins' }
Plug 'vim-scripts/taglist.vim'
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
call plug#end()
"Install missing Plugins on startup
autocmd VimEnter *
\ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | q
\| endif
let g:LanguageClient_settingsPath = ".config/nvim/settings.json"
" Required for operations modifying multiple buffers like rename.
set hidden
let g:LanguageClient_serverCommands = {
\ 'python': ['pyls'],
\ 'go': ['gopls'],
\ }
let g:LanguageClient_diagnosticsDisplay = {
\ 1: {
\ "name": "Error",
\ "texthl": "ALEError",
\ "signText": "X",
\ "signTexthl": "ALEErrorSign",
\ "texthl": "ALEWarning",
\ "signText": "⚠",
\ "signTexthl": "ALEWarningSign",
\ },
\ 2: {
\ "name": "Warning",
\ "texthl": "ALEWarning",
\ "signText": "⚠",
\ "signTexthl": "ALEWarningSign",
\ },
\ 3: {
\ "name": "Information",
\ "texthl": "ALEInfo",
\ "signText": "ℹ",
\ "signTexthl": "ALEInfoSign",
\ },
\ 4: {
\ "name": "Hint",
\ "texthl": "ALEInfo",
\ "signText": "➤",
\ "signTexthl": "ALEInfoSign",
\ },
\ }
autocmd BufWritePre *.go :call LanguageClient#textDocument_formatting_sync()
nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
map <silent><Leader>gt :!ctags -R<CR>
map <silent><Leader>t :TlistToggle<CR>
map <silent><Leader>s :set spelllang=en_gb<CR>
set tabstop=2
set softtabstop=0 noexpandtab
set shiftwidth=2
set-option -g allow-rename off
set -g default-terminal "tmux-256color"
# VSCode colors for tmux
set -g window-active-style 'bg=colour235,fg=colour253'
set -g window-style 'bg=colour235,fg=colour253'
set -g pane-border-style 'bg=colour235, fg=colour59'
set -g pane-active-border-style 'bg=colour235, fg=colour59'
set -g status-style 'bg=colour32, fg=colour15'
set -g window-status-style 'bg=default, fg=default'
set -g window-status-current-style 'bg=colour39, fg=default'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment