Skip to content

Commit

Permalink
refactor: config module name
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Sep 10, 2024
1 parent 5d0cec6 commit 1997658
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/rustaceanvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ rustaceanvim.dap.config.requests.custom*rustaceanvim.dap.config.requests.custom*



*M.get_codelldb_adapter*
M.get_codelldb_adapter({codelldb_path}, {liblldb_path})
*config.get_codelldb_adapter*
config.get_codelldb_adapter({codelldb_path}, {liblldb_path})
For the heroes who want to use it.

Parameters: ~
Expand Down
2 changes: 1 addition & 1 deletion doc/tags
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
M.get_codelldb_adapter rustaceanvim.txt /*M.get_codelldb_adapter*
config.get_codelldb_adapter rustaceanvim.txt /*config.get_codelldb_adapter*
rustaceanvim rustaceanvim.txt /*rustaceanvim*
rustaceanvim.EnvironmentMap rustaceanvim.txt /*rustaceanvim.EnvironmentMap*
rustaceanvim.Executor rustaceanvim.txt /*rustaceanvim.Executor*
Expand Down
6 changes: 3 additions & 3 deletions lua/rustaceanvim/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
---
---@brief ]]

local M = {}
local config = {}

---@type rustaceanvim.Opts | fun():rustaceanvim.Opts | nil
vim.g.rustaceanvim = vim.g.rustaceanvim
Expand Down Expand Up @@ -269,7 +269,7 @@ vim.g.rustaceanvim = vim.g.rustaceanvim
---@param codelldb_path string Path to the codelldb executable
---@param liblldb_path string Path to the liblldb dynamic library
---@return rustaceanvim.dap.server.Config
function M.get_codelldb_adapter(codelldb_path, liblldb_path)
function config.get_codelldb_adapter(codelldb_path, liblldb_path)
return {
type = 'server',
port = '${port}',
Expand All @@ -281,4 +281,4 @@ function M.get_codelldb_adapter(codelldb_path, liblldb_path)
}
end

return M
return config

0 comments on commit 1997658

Please sign in to comment.