mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
rename website var
This commit is contained in:
parent
1024ac2aa3
commit
2c14a5c5e7
2 changed files with 3 additions and 4 deletions
|
|
@ -1,11 +1,10 @@
|
||||||
_G.LazyVim = require("lazyvim.util")
|
_G.LazyVim = require("lazyvim.util")
|
||||||
|
|
||||||
local LAZYVIM_DOC = "https://www.lazyvim.org"
|
|
||||||
|
|
||||||
---@class LazyVimConfig: LazyVimOptions
|
---@class LazyVimConfig: LazyVimOptions
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.version = "12.27.0" -- x-release-please-version
|
M.version = "12.27.0" -- x-release-please-version
|
||||||
|
M.WEBSITE = "https://www.lazyvim.org"
|
||||||
LazyVim.config = M
|
LazyVim.config = M
|
||||||
|
|
||||||
---@class LazyVimOptions
|
---@class LazyVimOptions
|
||||||
|
|
@ -194,7 +193,7 @@ function M.setup(opts)
|
||||||
-- end, { desc = "Open Lazy Document" })
|
-- end, { desc = "Open Lazy Document" })
|
||||||
|
|
||||||
vim.api.nvim_create_user_command("LazyVimDocument", function()
|
vim.api.nvim_create_user_command("LazyVimDocument", function()
|
||||||
require("lazy.util").open(LAZYVIM_DOC)
|
require("lazy.util").open(M.WEBSITE)
|
||||||
end, { desc = "Open LazyVim Document" })
|
end, { desc = "Open LazyVim Document" })
|
||||||
|
|
||||||
vim.api.nvim_create_user_command("LazyExtras", function()
|
vim.api.nvim_create_user_command("LazyExtras", function()
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,7 @@ function X:open()
|
||||||
local pos = vim.api.nvim_win_get_cursor(self.float.win)
|
local pos = vim.api.nvim_win_get_cursor(self.float.win)
|
||||||
for _, extra in ipairs(self.extras) do
|
for _, extra in ipairs(self.extras) do
|
||||||
if extra.row == pos[1] then
|
if extra.row == pos[1] then
|
||||||
require("lazy.util").open(("https://www.lazyvim.org/%s"):format(extra.name:gsub("%.", "/")))
|
require("lazy.util").open(("%s/%s"):format(LazyVim.config.WEBSITE, extra.name:gsub("%.", "/")))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue