add rust and some config updates to vim

This commit is contained in:
Barak Michener 2021-02-13 16:50:00 -08:00
parent a26d681c2d
commit 728378eb2a
4 changed files with 17 additions and 7 deletions

View file

@ -2,8 +2,9 @@
"dependencies": { "dependencies": {
"coc-json": ">=1.3.2", "coc-json": ">=1.3.2",
"coc-pyright": ">=1.1.97", "coc-pyright": ">=1.1.97",
"coc-rust-analyzer": ">=0.32.0",
"coc-snippets": ">=2.2.3", "coc-snippets": ">=2.2.3",
"coc-svelte": ">=0.1.1", "coc-svelte": "https://github.com/codechips/coc-svelte",
"coc-tailwindcss": ">=0.7.0", "coc-tailwindcss": ">=0.7.0",
"coc-tsserver": ">=1.6.0", "coc-tsserver": ">=1.6.0",
"coc-ultisnips": ">=1.2.3" "coc-ultisnips": ">=1.2.3"

View file

@ -12,6 +12,8 @@
"python.analysis.typeCheckingMode": "off", "python.analysis.typeCheckingMode": "off",
"suggest.detailField": "abbr", "suggest.detailField": "abbr",
"suggest.snippetIndicator": "", "suggest.snippetIndicator": "",
"rust-analyzer.server.path": "/bin/rust-analyzer",
"rust-analyzer.inlayHints.enable": false,
"languageserver": { "languageserver": {
"ccls": { "ccls": {
"command": "ccls", "command": "ccls",

13
.vimrc
View file

@ -171,13 +171,17 @@ Plug 'ervandew/supertab'
Plug 'lunaru/vim-less' Plug 'lunaru/vim-less'
Plug 'hylang/vim-hy', {'for': 'hy'} Plug 'hylang/vim-hy', {'for': 'hy'}
"Plug 'mhartington/nvim-typescript' "Plug 'mhartington/nvim-typescript'
Plug 'leafgarland/typescript-vim'
Plug 'leafOfTree/vim-svelte-plugin' Plug 'leafOfTree/vim-svelte-plugin'
"Plug 'posva/vim-vue' "Plug 'posva/vim-vue'
Plug 'Shougo/context_filetype.vim' Plug 'Shougo/context_filetype.vim'
Plug 'idris-hackers/idris-vim', {'for': 'idris'} "Plug 'idris-hackers/idris-vim', {'for': 'idris'}
Plug 'edwinb/idris2-vim', {'for': 'idris'}
Plug 'fedorenchik/AnsiEsc'
Plug 'derekwyatt/vim-scala', {'for': 'scala'} Plug 'derekwyatt/vim-scala', {'for': 'scala'}
Plug 'hwayne/tla.vim' Plug 'hwayne/tla.vim'
Plug 'zchee/vim-goasm' Plug 'zchee/vim-goasm'
Plug 'cakebaker/scss-syntax.vim'
"Plug 'cappyzawa/starlark.vim' "Plug 'cappyzawa/starlark.vim'
" Plugins that autocomplete " Plugins that autocomplete
@ -206,6 +210,7 @@ Plug 'whonore/coquille', {'branch': 'pathogen-bundle', 'for': 'coq'}
Plug 'gabrielelana/vim-markdown' Plug 'gabrielelana/vim-markdown'
Plug 'lervag/vimtex' Plug 'lervag/vimtex'
Plug 'Shougo/echodoc.vim' Plug 'Shougo/echodoc.vim'
Plug 'python-rope/ropevim'
" Unclear " Unclear
@ -246,8 +251,9 @@ syntax enable
" If you prefer the Omni-Completion tip window to close when a selection is " If you prefer the Omni-Completion tip window to close when a selection is
" made, these lines close it on movement in insert mode or when leaving " made, these lines close it on movement in insert mode or when leaving
" insert mode " insert mode
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif "autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif "autocmd InsertLeave * if pumvisible() == 0|pclose|endif
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<CR>"
" Sources " Sources
"source ~/.vim/supertab.vim "source ~/.vim/supertab.vim
@ -276,6 +282,7 @@ syntax on
" baraknew is my own colorscheme. I used to use slate or dante. " baraknew is my own colorscheme. I used to use slate or dante.
"colorscheme baraknew "colorscheme baraknew
"let g:codedark_conservative = 1 "let g:codedark_conservative = 1
let g:codedark_null_background=1
colorscheme codedark colorscheme codedark
"colorscheme slate "colorscheme slate
"colorscheme dante "colorscheme dante

View file

@ -1,11 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ -n "`which gnome-terminal`" ]; then if [ -n "`which terminator`" ]; then
terminator $@
elif [ -n "`which gnome-terminal`" ]; then
gnome-terminal $@ gnome-terminal $@
elif [ -n "`which xfce4-terminal`" ]; then elif [ -n "`which xfce4-terminal`" ]; then
xfce4-terminal $@ xfce4-terminal $@
elif [ -n "`which terminator`" ]; then
terminator $@
elif [ -n "`which urxvt`" ]; then elif [ -n "`which urxvt`" ]; then
urxvt $@ urxvt $@
else else