Browse Source

arrgghh... damn this thing for not working.

main
Cian Butler 1 month ago
parent
commit
34e3612ed4
Signed by: butlerx GPG Key ID: B37CA765BAA89170
5 changed files with 15 additions and 102 deletions
  1. +2
    -3
      config/nvim/init.vim
  2. +12
    -30
      config/nvim/plug.vim
  3. +0
    -25
      config/nvim/plugin/completion.vim
  4. +0
    -43
      config/nvim/veonim.vim
  5. +1
    -1
      config/rofi/config.rasi

+ 2
- 3
config/nvim/init.vim View File

@@ -12,9 +12,6 @@ endif
call plug#begin('~/.local/share/nvim')
runtime plug.vim
call plug#end()
if exists('veonim')
runtime veonim.vim
endif

if has('autocmd')
"Set leader to space
@@ -63,8 +60,10 @@ set comments=

" Add completion options
if exists('+completeopt')
set completeopt+=noinsert
set completeopt+=longest " Insert longest common substring
set completeopt+=menuone " Show the menu even if only one match
set completeopt+=noselect " Show the menu even if only one match
endif




+ 12
- 30
config/nvim/plug.vim View File

@@ -1,49 +1,31 @@
" vim: set syntax=vim:
Plug 'Yggdroot/indentLine'
Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' }
Plug 'cespare/vim-toml', { 'for': 'toml' }
Plug 'chrisbra/csv.vim', { 'for': 'csv' }
Plug 'christoomey/vim-tmux-navigator'
Plug 'dense-analysis/ale'
Plug 'dense-analysis/ale' |
Plug 'nathanmsmith/nvim-ale-diagnostic'
Plug 'ekalinin/Dockerfile.vim', { 'for': ['Dockerfile', 'docker-compose'] }
Plug 'elzr/vim-json'
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries', 'for': ['go', 'gohtmltmpl'] }
Plug 'google/vim-jsonnet'
Plug 'godlygeek/tabular' |
Plug 'plasticboy/vim-markdown'
Plug 'google/vim-jsonnet'
Plug 'gregsexton/gitv'
Plug 'hashivim/vim-terraform'
Plug 'hrsh7th/nvim-cmp' |
Plug 'hrsh7th/vim-vsnip' |
Plug 'hrsh7th/cmp-buffer'
Plug 'leafgarland/typescript-vim', { 'for': ['typescript.tsx', 'typescriptreact', 'typescript', 'vue'] }
Plug 'mhinz/vim-signify'
Plug 'mhinz/vim-startify'
Plug 'moll/vim-node'
Plug 'nvim-treesitter/nvim-treesitter', { 'branch': '0.5-compat', 'do': ':TSUpdate'} " We recommend updating the parsers on update
Plug 'ncm2/ncm2' |
Plug 'ncm2/ncm2-tern', {'do': 'npm install'} |
Plug 'filipekiss/ncm2-look.vim'|
Plug 'mhartington/nvim-typescript', {'do': './install.sh'} |
Plug 'ncm2/ncm2-bufword' |
Plug 'ncm2/ncm2-cssomni'|
Plug 'ncm2/ncm2-github' |
"Plug 'ncm2/ncm2-go', {'do': 'go get -u github.com/mdempsky/gocode' }|
Plug 'ncm2/ncm2-html-subscope'|
Plug 'ncm2/ncm2-jedi'|
Plug 'ncm2/ncm2-markdown-subscope'|
Plug 'ncm2/ncm2-path' |
Plug 'ncm2/ncm2-racer'|
Plug 'ncm2/ncm2-tagprefix'|
Plug 'ncm2/ncm2-tmux' |
Plug 'ncm2/ncm2-vim' |
Plug 'Shougo/neco-vim'|
Plug 'roxma/ncm-flow'
Plug 'roxma/nvim-yarp' |
Plug 'wellle/tmux-complete.vim'|
Plug 'yuki-ycino/ncm2-dictionary'|
Plug 'neovim/nvim-lspconfig' |
Plug 'kabouzeid/nvim-lspinstall'
Plug 'nvim-treesitter/nvim-treesitter', { 'branch': '0.5-compat', 'do': ':TSUpdate'}
Plug 'pangloss/vim-javascript', { 'for': ['typescript.tsx', 'typescriptreact', 'javascript', 'vue'] }
Plug 'racer-rust/vim-racer', { 'for': 'rust' }
Plug 'rodjek/vim-puppet'
if !has('nvim')
Plug 'roxma/vim-hug-neovim-rpc'
endif
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
Plug 'ryanoasis/vim-devicons'
Plug 'scrooloose/nerdcommenter'
@@ -53,5 +35,5 @@ Plug 'sheerun/vim-polyglot'
Plug 'sickill/vim-monokai'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'vim-airline/vim-airline' | Plug 'vim-airline/vim-airline-themes'
" vim: set syntax=vim:
Plug 'vim-airline/vim-airline' |
Plug 'vim-airline/vim-airline-themes'

+ 0
- 25
config/nvim/plugin/completion.vim View File

@@ -1,25 +0,0 @@
" enable ncm2 for all buffer
autocmd BufEnter * call ncm2#enable_for_buffer()

" note that must keep noinsert in completeopt, the others is optional
set completeopt=noinsert,menuone,noselect
let g:ncm2_look_enabled = 1

let g:python_support_python2_require = 0
let g:python_support_python3_requirements = add(get(g:,'python_support_python3_requirements',[]),'jedi')
" language specific completions on markdown file
let g:python_support_python3_requirements = add(get(g:,'python_support_python3_requirements',[]),'mistune')
let g:python_support_python3_requirements = add(get(g:,'python_support_python3_requirements',[]),'psutil')
let g:python_support_python3_requirements = add(get(g:,'python_support_python3_requirements',[]),'setproctitle')

let g:LanguageClient_serverCommands = {
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
\ 'go': ['go-langserver'],
\ 'javascript': ['/usr/local/bin/javascript-typescript-stdio'],
\ 'javascript.jsx': ['tcp://127.0.0.1:2089'],
\ 'python': ['/usr/local/bin/pyls'],
\ }

nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>

+ 0
- 43
config/nvim/veonim.vim View File

@@ -1,43 +0,0 @@
" extensions for web dev
let g:vscode_extensions = [
\'vscode.typescript-language-features',
\'vscode.css-language-features',
\'vscode.html-language-features',
\]

" multiple nvim instances
nno <silent> <c-t>c :Veonim vim-create<cr>
nno <silent> <c-g> :Veonim vim-switch<cr>
nno <silent> <c-t>, :Veonim vim-rename<cr>

" workspace functions
nno <silent> ,f :Veonim files<cr>
nno <silent> ,e :Veonim explorer<cr>
nno <silent> ,b :Veonim buffers<cr>
nno <silent> ,d :Veonim change-dir<cr>
"or with a starting dir: nno <silent> ,d :Veonim change-dir ~/proj<cr>

" searching text
nno <silent> <space>fw :Veonim grep-word<cr>
vno <silent> <space>fw :Veonim grep-selection<cr>
nno <silent> <space>fa :Veonim grep<cr>
nno <silent> <space>ff :Veonim grep-resume<cr>
nno <silent> <space>fb :Veonim buffer-search<cr>

" language features
nno <silent> sr :Veonim rename<cr>
nno <silent> sd :Veonim definition<cr>
nno <silent> si :Veonim implementation<cr>
nno <silent> st :Veonim type-definition<cr>
nno <silent> sf :Veonim references<cr>
nno <silent> sh :Veonim hover<cr>
nno <silent> sl :Veonim symbols<cr>
nno <silent> so :Veonim workspace-symbols<cr>
nno <silent> sq :Veonim code-action<cr>
nno <silent> sk :Veonim highlight<cr>
nno <silent> sK :Veonim highlight-clear<cr>
nno <silent> ,n :Veonim next-usage<cr>
nno <silent> ,p :Veonim prev-usage<cr>
nno <silent> sp :Veonim show-problem<cr>
nno <silent> <c-n> :Veonim next-problem<cr>
nno <silent> <c-p> :Veonim prev-problem<cr>

+ 1
- 1
config/rofi/config.rasi View File

@@ -1,6 +1,6 @@
configuration {
modi: "window,run,ssh";
font: "Hack 14";
font: "Hack 20";
/* location: 0;*/
/* yoffset: 0;*/
/* xoffset: 0;*/


Loading…
Cancel
Save