Skip to content

LexeyKhom/nvconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nvconfig

Stub for using base46 without NvChad

Config examples

return {
  "LexeyKhom/nvconfig",
  dependencies = {
    { "NvChad/base46", branch = "v3.0" }, -- Important! Only works with branch "v3.0"
    "nvim-lua/plenary.nvim",
  },
  lazy = false,
  opts = function()
    -- Default config from [NvChad/ui](https://github.com/NvChad/ui/blob/v3.0/lua/nvconfig.lua)
    return {
      local M = {}

      M.path = "plugins/nvconfig/init.lua" -- config path. Need for cmd "Telescope themes"

      M.base46 = {
        theme = "onedark", -- default theme
        hl_add = {},
        hl_override = {},
        integrations = {
          -- "blankline",
          -- "cmp",
          -- "defaults",
          -- "devicons",
          -- "git",
          -- "lsp",
          -- "mason",
          -- "nvcheatsheet",
          -- "nvdash",
          -- "nvimtree",
          -- "statusline",
          -- "syntax",
          -- "treesitter",
          -- "tbline",
          -- "telescope",
          -- "whichkey",
        },
        changed_themes = {},
        transparency = false,
        theme_toggle = { "onedark", "one_light" },
      }

      M.ui = {
        cmp = {
          icons_left = false,  -- only for non-atom styles!
          lspkind_text = true,
          style = "flat_dark", -- default/flat_light/flat_dark/atom/atom_colored
          format_colors = {
            tailwind = false,  -- will work for css lsp too
            icon = "󱓻",
          },
        },

        telescope = { style = "borderless" }, -- borderless / bordered

        statusline = {
          enabled = true,
          theme = "default", -- default/vscode/vscode_colored/minimal
          -- default/round/block/arrow separators work only for default statusline theme
          -- round and block will work for minimal theme only
          separator_style = "default",
          order = nil,
          modules = nil,
        },

        -- lazyload it when there are 1+ buffers
        tabufline = {
          enabled = true,
          lazyload = true,
          order = { "treeOffset", "buffers", "tabs", "btns" },
          modules = nil,
        },
      }

      M.nvdash = {
        load_on_startup = false,
        header = {
          "                            ",
          "     ▄▄         ▄ ▄▄▄▄▄▄▄   ",
          "   ▄▀███▄     ▄██ █████▀    ",
          "   ██▄▀███▄   ███           ",
          "   ███  ▀███▄ ███           ",
          "   ███    ▀██ ███           ",
          "   ███      ▀ ███           ",
          "   ▀██ █████▄▀█▀▄██████▄    ",
          "     ▀ ▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀   ",
          "                            ",
          "     Powered By  eovim    ",
          "                            ",
        },

        buttons = {
          { txt = "  Find File", keys = "ff", cmd = "Telescope find_files" },
          { txt = "  Recent Files", keys = "fo", cmd = "Telescope oldfiles" },
          { txt = "󰈭  Find Word", keys = "fw", cmd = "Telescope live_grep" },
          { txt = "󱥚  Themes", keys = "th", cmd = ":lua require('nvchad.themes').open()" },
          { txt = "  Mappings", keys = "ch", cmd = "NvCheatsheet" },

          { txt = "", hl = "NvDashFooter", no_gap = true, rep = true },

          {
            txt = function()
              local stats = require("lazy").stats()
              local ms = math.floor(stats.startuptime) .. " ms"
              return "  Loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms
            end,
            hl = "NvDashFooter",
            no_gap = true,
          },

          { txt = "", hl = "NvDashFooter", no_gap = true, rep = true },
        },
      }

      M.term = {
        winopts = { number = false, relativenumber = false },
        sizes = { sp = 0.3, vsp = 0.2, ["bo sp"] = 0.3, ["bo vsp"] = 0.2 },
        float = {
          relative = "editor",
          row = 0.3,
          col = 0.25,
          width = 0.5,
          height = 0.4,
          border = "single",
        },
      }

      M.lsp = { signature = true }

      M.cheatsheet = {
        theme = "grid",                                                     -- simple/grid
        excluded_groups = { "terminal (t)", "autopairs", "Nvim", "Opens" }, -- can add group name or with mode
      }

      M.mason = { pkgs = {}, skip = {} }

      M.colorify = {
        enabled = true,
        mode = "virtual", -- fg, bg, virtual
        virt_text = "󱓻 ",
        highlight = { hex = true, lspvars = true },
      }

      return M
    }
  end,
  config = function(_, opts)
    require("nvconfig.opts").setup(opts)
  end,
}

Options

All other options can be found in the NvChad/Base46 repository.

About

Stub for using base46 without NvChad

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages