Minor comment changes in init.lua
This commit is contained in:
@@ -32,8 +32,7 @@ M.delete_comment = ensureState(comment.delete_comment)
|
||||
M.reply = ensureState(discussions.reply)
|
||||
M.state = state
|
||||
|
||||
-- Builds the binary (if not built); starts the Go server; calls the /info endpoint,
|
||||
-- which sets the Gitlab project's information in gitlab.nvim's INFO module
|
||||
-- Builds the binary (if not built); starts the Go server; sets the keymaps
|
||||
M.setup = function(args)
|
||||
if args == nil then args = {} end
|
||||
local file_path = u.current_file_path()
|
||||
@@ -44,7 +43,7 @@ M.setup = function(args)
|
||||
local binary_exists = vim.loop.fs_stat(state.BIN)
|
||||
if binary_exists == nil then M.build() end
|
||||
|
||||
if not M.setPluginState(args) then return end -- Return if not a valid gitlab project
|
||||
if not M.setPluginConfiguration(args) then return end -- Return if not a valid gitlab project
|
||||
|
||||
local command = state.BIN
|
||||
.. " "
|
||||
@@ -87,7 +86,7 @@ end
|
||||
|
||||
-- Initializes state for the project based on the arguments
|
||||
-- provided in the `.gitlab.nvim` file per project, and the args provided in the setup function
|
||||
M.setPluginState = function(args)
|
||||
M.setPluginConfiguration = function(args)
|
||||
local config_file_path = vim.fn.getcwd() .. "/.gitlab.nvim"
|
||||
local config_file_content = u.read_file(config_file_path)
|
||||
if config_file_content == nil then
|
||||
|
||||
Reference in New Issue
Block a user