micro/internal/config
Dmytro Maluka d67ce731ed Don't initialize plugins in buffer test and rtfiles test
Adding InitPlugins() to tests has caused noisy error logs when running
the buffer_test.go test (although the test result is still PASS):

2024/03/23 15:14:30 Plugin does not exist: autoclose at autoclose : &{autoclose autoclose <nil> [runtime/plugins/autoclose/autoclose.lua] false true}
2024/03/23 15:14:30 Plugin does not exist: comment at comment : &{comment comment <nil> [runtime/plugins/comment/comment.lua] false true}
2024/03/23 15:14:30 Plugin does not exist: diff at diff : &{diff diff <nil> [runtime/plugins/diff/diff.lua] false true}
2024/03/23 15:14:30 Plugin does not exist: ftoptions at ftoptions : &{ftoptions ftoptions <nil> [runtime/plugins/ftoptions/ftoptions.lua] false true}
...

These errors are caused simply by the fact that plugins are initialized
but not loaded. Adding config.LoadAllPlugins() to buffer_test.go "fixes"
this problem.

However, at the moment it doesn't seem a good idea to load plugins in
buffer_test.go, since buffer_test.go doesn't properly initialize Lua. It
only does ulua.L = lua.NewState() but doesn't do the other stuff that
init() in cmd/micro/initlua.go does. As a result, plugins will not be
able to do anything correctly.

So in order to initialize Lua correctly we need to be inside cmd/micro/,
so we cannot do it in buffer_test.go or any other tests except
micro_test.go.
2024-04-03 03:04:42 +02:00
..
autosave.go Fix autosave not running by default 2020-10-08 23:33:34 -04:00
colorscheme.go colorscheme: Add capability to include schemes (#2844) 2024-03-21 18:37:51 +01:00
colorscheme_test.go colorscheme: Add capability to include schemes (#2844) 2024-03-21 18:37:51 +01: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 command: Fix reload command to correctly initialize and reload all runtime files (#3062) 2024-03-22 20:47:30 +01:00
rtfiles_test.go Don't initialize plugins in buffer test and rtfiles test 2024-04-03 03:04:42 +02:00
settings.go Reduce the available string option validators and add autocompletion for them (#3021) 2024-03-15 22:20:39 +01:00