Skip to content

Commit

Permalink
refactor: assume enabled state in core logic
Browse files Browse the repository at this point in the history
This change splits the core logic of the plugin into separate class, so
that it can be easily enabled/disabled, so we do not have to check for
enabled state in sync functions all the time.

This also have an advantage of plugin "hot-reloadiing": we do not need
to restart Qt Creator if we want to reconnect to neovim, if the
connection failed for some reason.
  • Loading branch information
gikari authored and sassanh committed Apr 19, 2023
1 parent 9348132 commit d3fdf2f
Show file tree
Hide file tree
Showing 5 changed files with 1,216 additions and 1,165 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ add_qtc_plugin(QNVim
qnvimconstants.h
qnvimplugin.cpp
qnvimplugin.h
qnvimcore.cpp
qnvimcore.h
)
Loading

0 comments on commit d3fdf2f

Please sign in to comment.