Skip to content

Commit fab84a7

Browse files
committed
feat(logger): Add a log module
Currently the plugin uses vim.notify for almost all logging and can get quite noisy. Many neovim systems and plugins log to files in $XDG_STATE_DIR. This introduces a logging module and logs to a default file. There is also some bookkeeping stuff in here too. - Add `config.log` - Default log file is `$XDG_STATE_DIR/nvim/eca.log` - Default display mode is a buffer, can also display in a popup - Default log level is vim.log.levels.INFO - Default max file size before warning is 10MB - Remove `config.debug` - Create `Logger` module. Has the regular logging functions as well as `Logger.notify` for displaying a notification via `vim.notify` - Add subcommands to EcaLogs ("show", "log_path", "clear", "stats"), `EcaLogs` called with no arguments runs `EcaLogs show` - Replace calls to Utils logging functions with Logger - Fix the github action to run the tests
1 parent f0ace79 commit fab84a7

15 files changed

Lines changed: 1237 additions & 515 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- uses: actions/checkout@v4
1818

1919
- name: Install Neovim
20-
uses: rhymond/setup-neovim@v1
20+
uses: rhysd/action-setup-vim@v1
2121
with:
22-
neovim-version: ${{ matrix.neovim_version }}
22+
neovim: true
2323

2424
- name: Run tests
25-
run: make test
25+
run: make test

0 commit comments

Comments
 (0)