Chris hace 5 años
padre
commit
1688fdbe9d
Se han modificado 4 ficheros con 0 adiciones y 143 borrados
  1. 0 37
      .old/deoplete.vim
  2. 0 63
      .old/install/install.sh
  3. 0 21
      .old/language_server.vim
  4. 0 22
      .old/neosnippets.vim

+ 0 - 37
.old/deoplete.vim

@@ -1,37 +0,0 @@
-" Enable deoplete
-let g:deoplete#enable_at_startup = 1
-let g:deoplete#complete_method = "omnifunc"
-let g:deoplete#auto_complete_delay = 0
-""let g:deoplete#max_menu_width = 10
-" let g:deoplete#ignore_sources = ['buffer']
-" Close previews immediately
-autocmd CompleteDone * silent! pclose!
-
-"better nav for omnicomplete
-inoremap <expr> <c-j> ("\<C-n>")
-inoremap <expr> <c-k> ("\<C-p>")
-
-"<TAB>: completion.
-""inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
-"use TAB as the mapping
-inoremap <silent><expr> <TAB>
-      \ pumvisible() ?  "\<C-n>" :
-      \ <SID>check_back_space() ? "\<TAB>" :
-      \ deoplete#mappings#manual_complete()
-function! s:check_back_space() abort ""     
-  let col = col('.') - 1
-  return !col || getline('.')[col - 1]  =~ '\s'
-endfunction ""   
-inoremap <silent><expr><S-TAB>  pumvisible() ? "\<C-p>" : "\<TAB>"
-inoremap <expr><BS>  deoplete#smart_close_popup()."\<C-h>"
-
-
-" Only get completion candidates from these
-"call deoplete#custom#option('sources', {
-  "\ 'python': ['file', 'LanguageClient', 'neosnippet'],
-  "\ })
-
-" Sort matches alphabetically
-call deoplete#custom#source('_', 'sorters', ['sorter_word'])
-" Disable shorter or equal length matches
-call deoplete#custom#source('_', 'matchers', ['matcher_fuzzy', 'matcher_length'])

+ 0 - 63
.old/install/install.sh

@@ -1,63 +0,0 @@
-#!/bin/sh
-
-#if [ "$(uname)" == "Darwin" ]; then
-    #echo 'MacOS Detected'
-    #echo "installing miniconda"
-    #wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O ~/.config/nvim/install/miniconda.sh
-    #echo " Grabbing a font to use foe devicons "
-    #brew tap homebrew/cask-fonts
-    #brew cask install font-hack-nerd-font
-    #brew install ranger
-#elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
-    #echo 'Linux Detected'
-    #wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/.config/nvim/install/miniconda.sh
-    #mkdir -p ~/.local/share/fonts
-    #cd ~/.local/share/fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete.otf
-#fi
-
-#chmod +x ~/.config/nvim/install/miniconda.sh
-
-#sh ~/.config/nvim/install/miniconda.sh -b -f -p  $HOME/.miniconda
-
-#echo '# Miniconda' >> ~/.zshrc
-#echo 'export PATH="$HOME/.miniconda/bin:$PATH"' >> ~/.zshrc
-
-#. ~/.zshrc
-
-#conda create --name neovim python=3.8 --yes
-
-#. activate neovim 
-
-#pip install neovim
-
-#. deactivate
-
-#conda create --name pyls python=3.7 --yes
-
-#. activate pyls
-
-#pip install 'python-language-server[all]'
-#pip install vim-vint
-
-#. deactivate
-
-#pip install 'python-language-server[all]'
-
-#if [ ! -f ~/.bash_aliases ]; then
-#    echo ".bash_aliases not found!"
-#    touch ~/.bash_aliases
-#    echo 'source ~/.bash_aliases' >> ~/.bashrc
-#fi
-
-#echo 'alias mkenv="conda create --clone pyls --name"' >> ~/.bash_aliases
-
-#echo 'let g:python3_host_prog = expand("~/.miniconda/envs/neovim/bin/python3.8")' > ~/.config/nvim/modules/pythonpath.vim     
-
-if [ ! -d ~/.config/nvim/dein ]; then
-    echo "dein  package manager not found"
-    sh ~/.config/nvim/install/utils/installer.sh ~/.config/nvim/dein
-fi
-
-# Cleanup
-
-#rm ~/.config/nvim/install/miniconda.sh

+ 0 - 21
.old/language_server.vim

@@ -1,21 +0,0 @@
-" Required for operations modifying multiple buffers like rename.
-set hidden
-" always show signcolumns
-set signcolumn=yes
-let g:LanguageClient_autoStart = 1
-
-let g:LanguageClient_serverCommands = {
-    \ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
-    \ 'javascript': ['javascript-typescript-stdio'],
-    \ 'javascript.jsx': ['javascript-typescript-stdio'],
-    \ 'python': ['~/.miniconda/envs/neovim/bin/pyls'], 
-    \ 'sh': ['bash-language-server', 'start'],
-    \ 'c' : ['cquery'],
-    \ 'cpp' : ['cquery'],
-    \ }
-nnoremap <silent> <leader>gh :call LanguageClient_textDocument_hover()<CR>
-nnoremap <silent> <leader>gd :call LanguageClient_textDocument_definition()<CR>
-nnoremap <silent> <leader>gr :call LanguageClient_textDocument_rename()<CR>
-nnoremap <silent> <leader>gc :call LanguageClient_contextMenu()<CR>
-nnoremap <silent> <leader>fr :call LanguageClient_textDocument_references()<CR>
-""nnoremap <silent> <leader>fix :call LanguageClient#textDocument_formatting()<CR>

+ 0 - 22
.old/neosnippets.vim

@@ -1,22 +0,0 @@
-" Plugin key-mappings.
-" Note: It must be "imap" and "smap".  It uses <Plug> mappings.
-imap <C-l>     <Plug>(neosnippet_expand_or_jump)
-smap <C-l>     <Plug>(neosnippet_expand_or_jump)
-xmap <C-l>     <Plug>(neosnippet_expand_target)
-
-imap <F4>     <Plug>(neosnippet_expand_or_jump)
-smap <F4>     <Plug>(neosnippet_expand_or_jump)
-xmap <F4>     <Plug>(neosnippet_expand_target)
-" SuperTab like snippets behavior.
-" Note: It must be "imap" and "smap".  It uses <Plug> mappings.
-"imap <expr><TAB>
-" \ pumvisible() ? "\<C-n>" :
-" \ neosnippet#expandable_or_jumpable() ?
-" \    "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
-smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
-\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
-
-" For conceal markers.
-""if has('conceal')
-""  set conceallevel=2 concealcursor=niv
-""endif