Skip to content

Latest commit

 

History

History
119 lines (94 loc) · 2.76 KB

README.md

File metadata and controls

119 lines (94 loc) · 2.76 KB

My AstroVim Template

My main reason to start to use nvim, is because I'm tired of using vscode, and the memory that it consume from my computer just to see javascript.

NOTE: This is for AstroNvim v4+

Plugins

Wich-Key

To help me remember the keys

    return {
      "folke/which-key.nvim",
      event = "VeryLazy",
      opts = {
        -- your configuration comes here
        -- or leave it empty to use the default settings
        -- refer to the configuration section below
      },
      keys = {
        {
          "<leader>?",
          function() require("which-key").show { global = false } end,
          desc = "Buffer Local Keymaps (which-key)",
        },
      },
    }

Theme

I'm using catppuccin macchiato, the configuration is inside the file astroui.lua.

  return {
    "AstroNvim/astroui",
    ---@type AstroUIOpts
    opts = {
      -- change colorscheme
      colorscheme = "catppuccin-macchiato",
      -- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes
      highlights = {
        init = { -- this table overrides highlights in all themes
          -- Normal = { bg = "#000000" },
        },
        astrodark = { -- a table of overrides/changes when applying the astrotheme theme
          -- Normal = { bg = "#000000" },
        },
      },
      -- Icons can be configured throughout the interface
      icons = {
        -- configure the loading of the lsp in the status line
        LSPLoading1 = "",
        LSPLoading2 = "",
        LSPLoading3 = "",
        LSPLoading4 = "",
        LSPLoading5 = "",
        LSPLoading6 = "",
        LSPLoading7 = "",
        LSPLoading8 = "",
        LSPLoading9 = "",
        LSPLoading10 = "",
      },
    },
  }

Blame

Gitblame plugin

  return {
    {
      "FabijanZulj/blame.nvim",
      lazy = false,
      config = function() require("blame").setup {} end,
      opts = {
        blame_options = { "-w" },
      },
    },
  }

A template for getting started with AstroNvim

🛠️ Installation

Make a backup of your current nvim and shared folder

mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak
mv ~/.local/state/nvim ~/.local/state/nvim.bak
mv ~/.cache/nvim ~/.cache/nvim.bak

Create a new user repository from this template

Press the "Use this template" button above to create a new repository to store your user configuration.

You can also just clone this repository directly if you do not want to track your user configuration in GitHub.

Clone the repository

git clone https://github.com/<your_user>/<your_repository> ~/.config/nvim

Start Neovim

nvim