this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Cleanup LSP configuration

+49 -46
+1 -1
fish/config.fish
··· 5 5 and source (eval "$argv" | psub) 6 6 end 7 7 8 - enable hub alias -s 8 + available lab; and alias git=lab 9 9 enable direnv hook fish 10 10 11 11 set fish_user_paths ~/Workspace/hauleth/dotfiles/bin \
+1 -1
nvim/after/ftplugin/elixir.vim
··· 1 1 setlocal makeprg=mix 2 2 setlocal tabstop=2 3 - setlocal omnifunc=lsp#complete 3 + setlocal iskeyword+=!,? 4 4 5 5 command! -buffer ModuleName echo ft#elixir#module_name() 6 6 command! -buffer Function echo ft#elixir#full_ident()
+1 -5
nvim/after/ftplugin/haskell.vim
··· 1 - " Tab specific option 2 - setlocal tabstop=8 "A tab is 8 spaces 3 - setlocal expandtab "Always uses spaces instead of tabs 4 - setlocal shiftround "Round spaces to nearest shiftwidth multiple 5 - setlocal nojoinspaces "Don't convert spaces to tabs 1 + setlocal tabstop=8
+1
nvim/after/ftplugin/javascript.vim
··· 1 1 setlocal tabstop=2 2 + setlocal makeprg=yarn 2 3 3 4 augroup node_projectionist 4 5 au!
-1
nvim/after/ftplugin/rust.vim
··· 1 1 compiler cargo 2 - setlocal omnifunc=lsp#complete 3 2 4 3 setlocal iskeyword+=! 5 4 setlocal formatprg=rustfmt\ --write-mode=display
-1
nvim/after/ftplugin/terraform.vim
··· 4 4 5 5 augroup autoformat 6 6 au! 7 - 8 7 au BufWritePre <buffer> norm! gggqG`` 9 8 augroup END
+1 -1
nvim/after/ftplugin/vim.vim
··· 1 - packadd vim-complimentary 1 + setlocal iskeyword-=#
+1 -10
nvim/after/ftplugin/vue.vim
··· 1 - setlocal tabstop=2 2 - 3 - augroup node_projectionist 4 - au! 5 - autocmd User ProjectionistDetect call projections#node#detect() 6 - augroup END 7 - 8 - ClearSwapList 9 - 10 - SwapList variable let const 1 + runtime! ftplugin/javascript.vim
+20
nvim/autoload/completion.vim
··· 1 + let s:servers = get(g:, 'lsp_servers', []) 2 + 3 + func! s:setup_omnifunc() abort 4 + if len(lsp#get_whitelisted_servers()) > 0 5 + setlocal omnifunc=lsp#complete 6 + endif 7 + endfunc 8 + 9 + func! completion#lsp() abort 10 + let g:lsp_async_completion = 1 11 + 12 + for l:server in s:servers 13 + call lsp#register_server(l:server) 14 + endfor 15 + 16 + augroup lsp_completion 17 + au! 18 + au FileType * call s:setup_omnifunc() 19 + augroup END 20 + endfunc
+1 -1
nvim/autoload/plugins.vim
··· 47 47 call minpac#add('prabirshrestha/async.vim') 48 48 call minpac#add('prabirshrestha/vim-lsp', {'type': 'opt'}) 49 49 call minpac#add('Shougo/echodoc.vim', {'type': 'opt'}) 50 - call minpac#add('fcpg/vim-complimentary', {'type': 'opt'}) 50 + call minpac#add('fcpg/vim-complimentary') 51 51 " }}} 52 52 " Code manipulation {{{ 53 53 call minpac#add('AndrewRadev/splitjoin.vim', {'type': 'opt'})
+22 -25
nvim/init.vim
··· 13 13 set packpath^=~/.local/share/nvim 14 14 " }}} 15 15 " Identation {{{ 16 - set tabstop=4 shiftwidth=0 softtabstop=-1 expandtab 16 + set tabstop=4 shiftwidth=0 expandtab 17 17 18 18 set textwidth=80 19 19 set nowrap linebreak formatoptions+=l ··· 62 62 let &statusline .= ' ' 63 63 let &statusline .= '» %f%{statusline#modified()} «%<' 64 64 let &statusline .= '%=' 65 - let &statusline .= '%4c:%l' 65 + let &statusline .= '%{statusline#quickfix()} %4c:%l' 66 66 let &statusline .= ' ' 67 67 " }}} 68 68 " }}} ··· 166 166 if executable('nvr') 167 167 let $EDITOR = 'nvr -cc split -c "set bufhidden=delete" --remote-wait' 168 168 endif 169 - 170 - augroup terminal_config 171 - au! 172 - au BufEnter,BufWinEnter,WinEnter term://* set scrolloff=0 173 - au BufLeave,BufWinLeave,WinLeave term://* set scrolloff=9999 174 - augroup END 175 169 " }}} 176 170 " Split management {{{ 177 171 augroup align_windows ··· 208 202 " }}} 209 203 " }}} 210 204 " Completions {{{ 211 - set complete=.,w,b,t,i 205 + set complete=.,w,b,t,u 212 206 set completeopt=menu,longest,noselect 213 - let g:lsp_async_completion = 1 214 207 let g:echodoc_enable_at_startup = 1 215 208 let g:cpty_awk_cmd = 'mawk -f' 216 209 210 + let g:lsp_servers = [ 211 + \ { 212 + \ 'name': 'elixir-ls', 213 + \ 'cmd': {server_info->[&shell, &shellcmdflag, 'env ERL_LIBS=/Users/hauleth/Workspace/JakeBecker/elixir-ls/lsp mix elixir_ls.language_server']}, 214 + \ 'whitelist': ['elixir'], 215 + \ }, 216 + \ { 217 + \ 'name': 'rls', 218 + \ 'cmd': {server_info->['rustup', 'run', 'nightly', 'rls']}, 219 + \ 'whitelist': ['rust'], 220 + \ }, 221 + \ { 222 + \ 'name': 'vue-language-server', 223 + \ 'cmd': {server_info->['vls']}, 224 + \ 'whitelist': ['vue'], 225 + \ } 226 + \ ] 227 + 217 228 augroup lsp_servers 218 229 au! 219 - au User lsp_setup call lsp#register_server({ 220 - \ 'name': 'elixir-ls', 221 - \ 'cmd': {server_info->[&shell, &shellcmdflag, 'env ERL_LIBS=/Users/hauleth/Workspace/JakeBecker/elixir-ls/lsp mix elixir_ls.language_server']}, 222 - \ 'whitelist': ['elixir'], 223 - \ }) 224 - au User lsp_setup call lsp#register_server({ 225 - \ 'name': 'rls', 226 - \ 'cmd': {server_info->['rustup', 'run', 'nightly', 'rls']}, 227 - \ 'whitelist': ['rust'], 228 - \ }) 229 - au User lsp_setup call lsp#register_server({ 230 - \ 'name': 'vue-language-server', 231 - \ 'cmd': {server_info->['vls']}, 232 - \ 'whitelist': ['vue'], 233 - \ }) 230 + au User lsp_setup call completion#lsp() 234 231 augroup END 235 232 " }}} 236 233