Hello! This is a small refactor of the project which improves modularity and the management of resources.
Makes it possible to stop supermaven-nvim, which kills the binary and removes all of the autocommands (Fixes #36)
Modularizes the code by introducing supermaven-nvim.api and supermaven-nvim.commands modules
Adds SupermavenStart, SupermavenStop, SupermavenRestart, SupermavenToggle, and SupermavenStatus commands
Makes supermaven-nvim.config the source of truth for the current config, rather than passing a table around from supermaven-nvim.init
Applies stylua formatting
Removes unused imports
Updates README to document these changes
Because this touches a lot of lines of code, this probably conflicts with several other open PRs. I'm happy to split this up into separate PRs, or rebase on top of other PRs if desired.
Hello! This is a small refactor of the project which improves modularity and the management of resources.
supermaven-nvim.api
andsupermaven-nvim.commands
modulesSupermavenStart
,SupermavenStop
,SupermavenRestart
,SupermavenToggle
, andSupermavenStatus
commandssupermaven-nvim.config
the source of truth for the current config, rather than passing a table around fromsupermaven-nvim.init
Because this touches a lot of lines of code, this probably conflicts with several other open PRs. I'm happy to split this up into separate PRs, or rebase on top of other PRs if desired.
Supersedes #40