updated to stable astrovim release with my plugins
This commit is contained in:
		@@ -9,6 +9,7 @@ return {
 | 
			
		||||
  "AstroNvim/astrocommunity",
 | 
			
		||||
  { import = "astrocommunity.pack.lua" },
 | 
			
		||||
  -- import/override with your plugins folder
 | 
			
		||||
  { import = "astrocommunity.recipes.vscode" },
 | 
			
		||||
  { import = "astrocommunity.recipes.neovide" },
 | 
			
		||||
  { import = "astrocommunity.colorscheme.tokyonight-nvim" },
 | 
			
		||||
  { import = "astrocommunity.pack.python" },
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
require("lazy").setup({
 | 
			
		||||
  {
 | 
			
		||||
    "AstroNvim/AstroNvim",
 | 
			
		||||
    branch = "^4", -- TODO: change `branch="v4"` to `version="^4"` on release
 | 
			
		||||
    version = "^4", -- Remove version tracking to elect for nighly AstroNvim
 | 
			
		||||
    import = "astronvim.plugins",
 | 
			
		||||
    opts = { -- AstroNvim options must be set here with the `import` key
 | 
			
		||||
      mapleader = " ", -- This ensures the leader key must be configured before Lazy is set up
 | 
			
		||||
 
 | 
			
		||||
@@ -47,14 +47,8 @@ return {
 | 
			
		||||
        -- second key is the lefthand side of the map
 | 
			
		||||
 | 
			
		||||
        -- navigate buffer tabs with `H` and `L`
 | 
			
		||||
        L = {
 | 
			
		||||
          function() require("astrocore.buffer").nav(vim.v.count > 0 and vim.v.count or 1) end,
 | 
			
		||||
          desc = "Next buffer",
 | 
			
		||||
        },
 | 
			
		||||
        H = {
 | 
			
		||||
          function() require("astrocore.buffer").nav(-(vim.v.count > 0 and vim.v.count or 1)) end,
 | 
			
		||||
          desc = "Previous buffer",
 | 
			
		||||
        },
 | 
			
		||||
        L = { function() require("astrocore.buffer").nav(vim.v.count1) end, desc = "Next buffer" },
 | 
			
		||||
        H = { function() require("astrocore.buffer").nav(-vim.v.count1) end, desc = "Previous buffer" },
 | 
			
		||||
 | 
			
		||||
        -- mappings seen under group name "Buffer"
 | 
			
		||||
        ["<Leader>bD"] = {
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ return {
 | 
			
		||||
  ---@type AstroUIOpts
 | 
			
		||||
  opts = {
 | 
			
		||||
    -- change colorscheme
 | 
			
		||||
    colorscheme = "tokyonight-nvim",
 | 
			
		||||
    colorscheme = "tokyonight",
 | 
			
		||||
    -- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes
 | 
			
		||||
    highlights = {
 | 
			
		||||
      init = { -- this table overrides highlights in all themes
 | 
			
		||||
 
 | 
			
		||||
@@ -19,3 +19,4 @@ return {
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -4,3 +4,4 @@ return {
 | 
			
		||||
  event = "VeryLazy",
 | 
			
		||||
  config = function() require("nvim-surround").setup {} end,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,7 @@
 | 
			
		||||
-- don't do anything in non-vscode instances
 | 
			
		||||
if not vim.g.vscode then return {} end
 | 
			
		||||
if not vim.g.vscode then
 | 
			
		||||
  return {}
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- a list of known working plugins with vscode-neovim, update with your own plugins
 | 
			
		||||
local plugins = {
 | 
			
		||||
@@ -13,15 +15,16 @@ local plugins = {
 | 
			
		||||
  "nvim-ts-autotag",
 | 
			
		||||
  "nvim-treesitter-textobjects",
 | 
			
		||||
  "nvim-ts-context-commentstring",
 | 
			
		||||
  "nvim-surround",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local Config = require "lazy.core.config"
 | 
			
		||||
local Config = require("lazy.core.config")
 | 
			
		||||
-- disable plugin update checking
 | 
			
		||||
Config.options.checker.enabled = false
 | 
			
		||||
Config.options.change_detection.enabled = false
 | 
			
		||||
-- replace the default `cond`
 | 
			
		||||
Config.options.defaults.cond = function(plugin) return vim.tbl_contains(plugins, plugin.name) end
 | 
			
		||||
Config.options.defaults.cond = function(plugin)
 | 
			
		||||
  return vim.tbl_contains(plugins, plugin.name)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
---@type LazySpec
 | 
			
		||||
return {
 | 
			
		||||
		Reference in New Issue
	
	Block a user