mirror of
https://github.com/keith/swift.vim.git
synced 2025-12-12 20:35:53 +01:00
Merge branch 'ks/add-integrations-readme'
* ks/add-integrations-readme: Add syntastic integration to the readme
This commit is contained in:
27
README.md
27
README.md
@@ -10,9 +10,28 @@ If you don't have a preferred installation method check out
|
||||

|
||||

|
||||
|
||||
## [Syntastic](https://github.com/scrooloose/syntastic/) Integration
|
||||
|
||||
### Development
|
||||
swift.vim can show errors inline from
|
||||
[swift package manager](https://github.com/apple/swift-package-manager/)
|
||||
or from [swiftlint](https://github.com/realm/SwiftLint) using
|
||||
[syntastic](https://github.com/scrooloose/syntastic/).
|
||||
|
||||
I plan to continue improving this plugin as I find more issues with
|
||||
it. If you find anything strange with highlighting or indention *please*
|
||||
[submit an issue](https://github.com/keith/swift.vim/issues/new).
|
||||

|
||||
|
||||
### Usage
|
||||
|
||||
- Install [syntastic](https://github.com/scrooloose/syntastic/)
|
||||
|
||||
- swiftpm integration will be automatically enabled if you're running vim
|
||||
from a directory containing a `Package.swift` file.
|
||||
|
||||
- SwiftLint integration will be automatically enabled if you have
|
||||
SwiftLint installed and if you're running vim from a directory
|
||||
containing a `.swiftlint.yml` file.
|
||||
|
||||
- To enable both at once add this to your vimrc:
|
||||
|
||||
```vim
|
||||
let g:syntastic_swift_checkers = ['swiftpm', 'swiftlint']
|
||||
```
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
BIN
screenshots/screen3.png
Normal file
BIN
screenshots/screen3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 105 KiB |
Reference in New Issue
Block a user