1
0
mirror of https://github.com/amix/vimrc synced 2025-07-10 03:25:00 +08:00

Updated plugins

This commit is contained in:
Amir
2021-10-11 11:30:43 +02:00
parent 83980d8f24
commit 92c794cc2b
100 changed files with 3555 additions and 1631 deletions

View File

@ -0,0 +1,9 @@
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: cd test && ./run-tests
shell: bash

View File

@ -1,7 +0,0 @@
---
sudo: required
services:
- docker
language: generic
script: |
cd test && ./run-tests

View File

@ -23,5 +23,6 @@ _?_
Paste debugging info from the Rust Vim plugin via _one_ of the following
commands: `:RustInfo`, `:RustInfoToClipboard`, or `:RustInfoToFile <filename>`.
<!-- To ensure these commands are available, open a Rust source file first. -->
_?_

View File

@ -157,14 +157,7 @@ function! s:RunRustfmt(command, tmpname, from_writepre)
endif
call s:DeleteLines(len(l:content), line('$'))
if has('nvim') && exists('*nvim_buf_set_lines')
" setline() gets called for every item on the array,
" this results on the neovim buffer callbacks being called n times,
" using nvim_buf_set_lines() makes the change in one call.
call nvim_buf_set_lines(0, 0, -1, v:true, l:content)
else
call setline(1, l:content)
endif
call setline(1, l:content)
" only clear location list if it was previously filled to prevent
" clobbering other additions

View File

@ -24,6 +24,8 @@ setlocal indentkeys=0{,0},!^F,o,O,0[,0],0(,0)
setlocal indentexpr=GetRustIndent(v:lnum)
let b:undo_indent = "setlocal cindent< cinoptions< cinkeys< cinwords< lisp< autoindent< indentkeys< indentexpr<"
" Only define the function once.
if exists("*GetRustIndent")
finish

View File

@ -67,9 +67,9 @@ def image_exists():
def tests_on_docker():
res = docker_run("bash -lc 'python /home/vimtest/run-tests inside-docker'", ok_fail=True)
if res == 0:
print "Tests OK"
print("Tests OK")
else:
print "Tests Failed"
print("Tests Failed")
sys.exit(1)
def inside_docker():
@ -92,7 +92,7 @@ def main():
return
if not image_exists():
print "Need to take image from remote"
print("Need to take image from remote")
system("docker pull %s" % (IMAGE, ))
if "-i" in sys.argv[1:]: