-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and add get_main_file (#29)
* design-doc and restructuring * wrote some design-doc * server/ * commands.lua * only editor.lua left * completed and vaguely tested * bumpped version in README.md * fixed sync_with_cursor and removed duplicated function definition * updated README with new config * updated doc * smol style
- Loading branch information
Showing
18 changed files
with
574 additions
and
393 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 |
---|---|---|
@@ -1 +1 @@ | ||
test.pdf | ||
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
- `server/` | ||
- `server/factory.lua` makes servers, which are objects each representing a | ||
file that a server is watching. | ||
- `server/inventory.lua` store servers and index them by their absolute path. | ||
- `server/init.lua` contains the class definition and all its methods. The | ||
methods, it encapsulate event specific logic. | ||
- `commands.lua` register user command and map them to functions. It should not | ||
contain too much logic. | ||
- `fetch.lua` do everything that needs to be done in terms of managing binaries. | ||
- `events/` | ||
- `events/editor.lua` handles editor initiated events. It register listeners | ||
through autocmds on all file with filetype `typst`. | ||
- `events/server.lua` handles server initiated events. It register listeners | ||
on all servers. | ||
- All package inside a folder should not be accessed by those outside except for | ||
`init.lua`. |
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.