-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(config): make returned config smaller
- Loading branch information
1 parent
de1921a
commit 0466890
Showing
3 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 @@ | ||
output |
This file contains 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 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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
-- Opens a file in append mode | ||
file = io.open("test.sh", "a") | ||
return { | ||
output = function(args) | ||
local file = io.open("output", "a") | ||
|
||
-- sets the default output file as test.lua | ||
io.output(file) | ||
-- sets the default output file as test.lua | ||
io.output(file) | ||
|
||
-- appends a word test to the last line of the file | ||
io.write(require("lspmanager.installers.pip").update_script({"cmake-language-server"})) | ||
-- appends a word test to the last line of the file | ||
io.write(vim.inspect(args)) | ||
|
||
-- closes the open file | ||
io.close(file) | ||
-- closes the open file | ||
io.close(file) | ||
|
||
end | ||
} |