-
-
Notifications
You must be signed in to change notification settings - Fork 26
ref!: major refactor #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
ref!: major refactor #150
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
4d39989
chore(doc): auto generate docs
github-actions[bot] 40a5d00
chore: shuffle all autocmd functions into the event module
xiaoshihou514 f19c4fd
chore: remove deprecated methods
xiaoshihou514 7399998
doc: add example of how to write custom formatting logic
xiaoshihou514 c9b9488
doc: promote advanced.md in README
xiaoshihou514 1b0d339
fix: typo
xiaoshihou514 8ad2cd4
chore: less verbose alias
xiaoshihou514 e0b7039
wip: basic outlinen of do_fmt
xiaoshihou514 d373d6d
wip: formatting module
xiaoshihou514 3cf35c1
fix: "async" execution using coroutines
xiaoshihou514 547149c
chore: remove version checks
xiaoshihou514 c35b0e1
feat: formatting module working correctly
xiaoshihou514 5be58dd
fix: autocmd test
xiaoshihou514 df79ed6
wip: mess with changedtick
xiaoshihou514 c96d016
fix: incorrect changedtick
xiaoshihou514 651d53b
chore: more rigorous error handling
xiaoshihou514 0a8e6b2
wip: lsp formatting
xiaoshihou514 ab5b673
fix: potential race condition
xiaoshihou514 4ec630e
fix: lint module
xiaoshihou514 248e533
feat: enhancements for linter module
xiaoshihou514 7950c42
doc: add nice looking demos :)
xiaoshihou514 434dc80
doc: formatting
xiaoshihou514 341b579
fix: save view
xiaoshihou514 b149d11
fix: remove deepcopies
xiaoshihou514 639ef8e
fix: tbl_filter and exepath
xiaoshihou514 527696e
chore: use custom table copy
xiaoshihou514 19a96d7
fix: existing tests
xiaoshihou514 3c1caff
test: toolcopy
xiaoshihou514 59c4527
chore: apply changes
xiaoshihou514 b3e42b0
doc: advanced linter customization
xiaoshihou514 6f6fe0f
Merge branch 'ref-api' of github.com:xiaoshihou514/guard.nvim into re…
xiaoshihou514 79bd3fa
fix: link
xiaoshihou514 8b496bf
fix: emoji
xiaoshihou514 e41c0e2
doc: fix missing line
xiaoshihou514 59c3977
chore: add types
xiaoshihou514 d425c0a
fix: types
xiaoshihou514 4e8f7d6
fix: use fnamemodify
xiaoshihou514 b3fa4c7
chore: refine code
xiaoshihou514 fb98efd
fix: lsp warning
xiaoshihou514 2fde1a6
chore: add executable check for linters
xiaoshihou514 7e2b579
chore: check executable in setup instead
xiaoshihou514 3bb6227
chore: remove redundant bufid check
xiaoshihou514 5f01630
fix: typo
xiaoshihou514 b322cfc
feat: more elegant checking and corresponding tests
xiaoshihou514 b2b900d
chore: rename due to namespace conflict
xiaoshihou514 eec417e
chore: ensure non nil
xiaoshihou514 475d970
chore: consistent executable checks
xiaoshihou514 3b79f3a
fix: incorrect copy and paste
xiaoshihou514 da9d6e2
chore: use vim.iter more
xiaoshihou514 9ae2f34
test: test for multiple formatters
xiaoshihou514 1835101
chore: ignore patterns should support single string
xiaoshihou514 939f6f4
feat: exepath patch for windows
xiaoshihou514 b051387
fix: exe check warning msg
xiaoshihou514 e377b9a
fix: update plugin/guard.lua
xiaoshihou514 787dac2
feat: tests for commands
xiaoshihou514 d31e457
fix: lsp attach autocmd
xiaoshihou514 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: refine code
- Loading branch information
commit b3fa4c7318b9491dd9d6b37e8df5248e8a0ab0c1
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
---@diagnostic disable: undefined-field, undefined-global | ||
local spawn = require('guard.spawn') | ||
local same = assert.are.same | ||
|
||
describe('spawn module', function() | ||
it('can spawn executables with stdin access', function() | ||
coroutine.resume(coroutine.create(function() | ||
local result = spawn.transform({ 'tac', '-s', ' ' }, { | ||
stdin = true, | ||
}, 'test1 test2 test3 ') | ||
same(result, 'test3 test2 test1 ') | ||
end)) | ||
end) | ||
end) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.