micro/internal/config
Dmytro Maluka 59dda01cb7
Make plugins in ~/.config/micro/plug dir override built-in plugins (#3031)
If ~/.config/micro/plug directory contains a plugin with the same name
as a built-in plugin, the expected behavior is that the user-defined
plugin in ~/.config/micro/plug is loaded instead of the built-in one.

Whereas the existing behavior is that the built-in plugin is used
instead of the user-defined one. Even worse, it is buggy: in this case
the plugin is registered twice, so its callbacks are executed twice
(e.g. with the autoclose plugin, a bracket is autoclosed with two
closing brackets instead of one).

Fix this by ensuring that if a plugin with the same name exists in the
~/.config/micro/plug directory, the built-in one is ignored.

Fixes #3029
2024-01-17 00:09:33 -08:00
..
autosave.go Fix autosave not running by default 2020-10-08 23:33:34 -04:00
colorscheme.go Fix regression: non-working direct colors in syntax files (#2252) 2021-10-27 15:12:55 -07:00
colorscheme_test.go Update to tcell v2 2020-09-05 14:52:35 -04:00
config.go Use filepath.Join more 2020-02-11 13:09:17 -05:00
globals.go Fix internal string binding representation 2020-11-05 15:52:25 -05:00
plugin.go plugins: Add capability to dis-/enable them per buffer (#2836) 2023-06-05 17:38:33 -07:00
plugin_installer.go plugins: Add capability to dis-/enable them per buffer (#2836) 2023-06-05 17:38:33 -07:00
plugin_installer_test.go Add plugin manager 2020-02-01 23:54:38 -05:00
plugin_manager.go Add plugin manager 2020-02-01 23:54:38 -05:00
rtfiles.go Make plugins in ~/.config/micro/plug dir override built-in plugins (#3031) 2024-01-17 00:09:33 -08:00
rtfiles_test.go Change project layout and use go.mod 2019-12-25 17:05:10 -05:00
settings.go Add reload setting - finalization of #2627 (#2845) 2023-10-22 00:18:41 +02:00