mirror of
https://github.com/cap153/nvim.git
synced 2025-12-30 05:55:32 +08:00
添加vscode neovim相关配置
This commit is contained in:
parent
59f0ba6a45
commit
d1f5f0a2c8
12 changed files with 217 additions and 57 deletions
|
|
@ -1,9 +1,20 @@
|
|||
-- ===
|
||||
-- === explorer tree 文件列表
|
||||
-- ===
|
||||
|
||||
-- 判断当前环境是否是vscode映射不同命令打开yazi
|
||||
if vim.g.vscode then
|
||||
-- VSCode Neovim environment
|
||||
local vscode = require("vscode")
|
||||
vim.keymap.set("n", "tt", function()
|
||||
vscode.action("yazi-vscode.toggle")
|
||||
end, { noremap = true, silent = true, desc = "Toggle Yazi (VSCode)" })
|
||||
end
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"mikavilpas/yazi.nvim",
|
||||
enabled = not vim.g.vscode,
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
-- check the installation instructions at
|
||||
|
|
@ -34,17 +45,3 @@ return {
|
|||
vim.g.loaded_netrwPlugin = 1
|
||||
end,
|
||||
}
|
||||
-- return {
|
||||
-- "rolv-apneseth/tfm.nvim",
|
||||
-- event = "VeryLazy",
|
||||
-- opts = {
|
||||
-- enable_cmds = true,
|
||||
-- },
|
||||
-- keys = {
|
||||
-- {
|
||||
-- "tt",
|
||||
-- ":Tfm<CR>",
|
||||
-- desc = "TFM - new tab",
|
||||
-- },
|
||||
-- },
|
||||
-- }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue