mirror of
https://github.com/cap153/nvim.git
synced 2026-05-10 08:36:14 +08:00
适配我的termux、架构判断提取为全局变量、重写ufo使用lsp折叠相关配置
This commit is contained in:
parent
08a226d9ee
commit
ca576a6090
7 changed files with 33 additions and 37 deletions
|
|
@ -13,11 +13,16 @@ vim.api.nvim_create_user_command("PeekToggle", function()
|
|||
local peek = require("peek")
|
||||
if not peek.is_open() and vim.bo[vim.api.nvim_get_current_buf()].filetype == 'markdown' then
|
||||
PackUtils.load(P, function()
|
||||
local app = { "chromium", "--app=http://localhost:9000/?theme=dark", "--incognito" }
|
||||
if IS_ARM then
|
||||
app = { "chromium", "--no-sandbox", "--app=http://localhost:9000/?theme=dark", "--incognito", "--test-type",
|
||||
"--force-device-scale-factor=1.75" }
|
||||
end
|
||||
require("peek").setup({
|
||||
port = 9000,
|
||||
-- app = { "zen", "-private-window" },
|
||||
-- app = { "firefox-esr", "-private-window" },
|
||||
app = { "chromium", "--app=http://localhost:9000/?theme=dark", "--incognito" },
|
||||
app = app
|
||||
})
|
||||
end)
|
||||
peek.open()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue