When you first install the plugin, nvim may complain when trying to read teh config file if the config directory has not been created yet.
vim/_editor.lua:0: /Users/carlfurrow/workspace/dotfiles/nvim-configs/basic/init.lua..nvim_exec2() called at /Users/carlfurrow/workspace/dotfiles/nvim-configs/basic/init.lua:0../Users/carlfurrow/.local/share/nvim-basic/lazy/scratch.nvim/plugin/scratch_plug
in.lua: Vim(source):E5113: Error while calling lua chunk: ...rlfurrow/.local/share/nvim/lazy/scratch.nvim/lua/api.lua:27: attempt to index local 'file' (a nil value)
stack traceback:
^I...rlfurrow/.local/share/nvim/lazy/scratch.nvim/lua/api.lua:27: in function 'getConfig'
^I...rlfurrow/.local/share/nvim/lazy/scratch.nvim/lua/api.lua:36: in main chunk
This PR adds a new method to initialize the config directory before trying to load the configuration file.
When you first install the plugin, nvim may complain when trying to read teh config file if the config directory has not been created yet.
This PR adds a new method to initialize the config directory before trying to load the configuration file.