File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ use 'kiran94/s3edit.nvim'
15
15
- [ ` aws ` ] ( https://github.com/aws/aws-cli ) in your ` PATH ` and configured
16
16
- Neovim 0.8+
17
17
18
+ Once installed you can run a health check via ` :checkhealth s3edit `
19
+
18
20
### Usage
19
21
20
22
Setup the plugin
Original file line number Diff line number Diff line change
1
+ local M = {}
2
+
3
+ M .check = function ()
4
+ vim .health .report_start (" s3edit.nvim" )
5
+
6
+ local executable = " aws"
7
+ local is_executable = vim .fn .executable (executable ) > 0
8
+
9
+ if is_executable then
10
+ vim .health .report_ok (executable .. " found!" )
11
+ vim .health .report_info (" make sure it is configured. You can check this by running: aws s3 ls" )
12
+ else
13
+ vim .health .report_error (executable .. " is either not installed or is not within path" )
14
+ end
15
+ end
16
+
17
+ return M
You can’t perform that action at this time.
0 commit comments