From 71ea7a60bc93245688a6b42901496b5de863201a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 29 May 2024 21:16:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20perf(nvim):=20import=20lazyvim?= =?UTF-8?q?=20vscode=20extra=20to=20avoid=20duplicate=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nvim/lua/plugins/extras/util/vscode.lua | 43 +------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/util/vscode.lua b/.config/nvim/lua/plugins/extras/util/vscode.lua index e0c62325..8642ec5c 100644 --- a/.config/nvim/lua/plugins/extras/util/vscode.lua +++ b/.config/nvim/lua/plugins/extras/util/vscode.lua @@ -2,43 +2,9 @@ if not vim.g.vscode then return {} end -local config = require("lazy.core.config") local vscode = require("vscode-neovim") - local map = vim.keymap.set --- Add any additional plugins in vscode, you can set vscode=true on a plugin spec. -local enabled = { - "flash.nvim", - "lazy.nvim", - "dial.nvim", - "mini.align", - "nvim-recorder", - "comment-box.nvim", - "text-case.nvim", - "mini.ai", - "mini.comment", - "mini.pairs", - "mini.surround", - "nvim-treesitter", - "wildfire.nvim", - "nvim-treesitter-textobjects", - "nvim-various-textobjs", - "nvim-ts-context-commentstring", - "vim-repeat", - "vim-carbon-now-sh", - "highlight-undo.nvim", - "ts-node-action", - "ts.comments", - "LazyVim", -} - -config.options.checker.enabled = false -config.options.change_detection.enabled = false -config.options.defaults.cond = function(plugin) - return vim.tbl_contains(enabled, plugin.name) or plugin.vscode -end - -- Options vim.o.spell = false vim.opt.timeoutlen = 150 -- To show whichkey without delay @@ -154,6 +120,7 @@ vim.api.nvim_create_autocmd("User", { }) return { + { import = "lazyvim.plugins.extras.vscode" }, { "LazyVim/LazyVim", config = function(_, opts) @@ -163,14 +130,6 @@ return { require("lazyvim").setup(opts) end, }, - { - "nvim-treesitter/nvim-treesitter", - opts = { - highlight = { - enable = false, - }, - }, - }, { "folke/flash.nvim", init = function()