添加vscode neovim相关配置

This commit is contained in:
a770 2025-05-31 11:38:43 +08:00
parent 59f0ba6a45
commit d1f5f0a2c8
12 changed files with 217 additions and 57 deletions

View file

@ -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",
-- },
-- },
-- }