Many users may want to use the vscode-neovim extension in VS Code. You can easily configure AstroNvim to play nicely with this instance and disable plugins that do not interact well with VS Code when in an active VS Code instance.
vscode-neovim
-- don't do anything in non-vscode instancesif not vim.g.vscode then return {}end -- a list of known working plugins with vscode-neovim, update with your own pluginslocal plugins = { "lazy.nvim", "AstroNvim", "astrocore", "astroui", "Comment.nvim", "nvim-autopairs", "nvim-treesitter", "nvim-ts-autotag", "nvim-treesitter-textobjects", "nvim-ts-context-commentstring",} local Config = require("lazy.core.config")-- disable plugin update checkingConfig.options.checker.enabled = falseConfig.options.change_detection.enabled = false-- replace the default `cond`Config.options.defaults.cond = function(plugin) return vim.tbl_contains(plugins, plugin.name)end ---@type LazySpecreturn { -- add a few keybindings { "AstroNvim/astrocore", ---@type AstroCoreOpts opts = { mappings = { n = { ["<Leader>ff"] = "<CMD>Find<CR>", ["<Leader>fw"] = "<CMD>call VSCodeNotify('workbench.action.findInFiles')<CR>", ["<Leader>ls"] = "<CMD>call VSCodeNotify('workbench.action.gotoSymbol')<CR>", }, }, }, }, -- disable colorscheme setting { "AstroNvim/astroui", opts = { colorscheme = false } }, -- disable treesitter highlighting { "nvim-treesitter/nvim-treesitter", opts = { highlight = { enable = false } }, },}