Skip to content

Repository files navigation

🖌️ ghostty-default-style-dark.nvim

Important

This work is totally based of folke/tokyonight.nvim theme and I want no credit for it, leave the love for her/him!

Neovim theme using the ghostty-default-style-dark palette.

Ocaml code Screenshot

✨ Features

  • supports TreeSitter and LSP
  • vim terminal colors
  • lualine theme

Plugin Support

Your preferred plugin is missing? Open an issue or, even better, open a pull request 😉.

⚡️ Requirements

  • Neovim >= 0.8.0

📦 Installation

Install the theme with your preferred package manager:

lazy

{
  "nkxxll/ghostty-default-style-dark.nvim",
  lazy = false,
  priority = 1000,
  config = function()
    require("ghostty-default-style-dark").setup({})
    vim.cmd.colorscheme("ghostty-default-style-dark")
  end
}

🚀 Usage

Enable the colorscheme:

" Vim Script
colorscheme ghostty-default-style-dark
-- Lua
vim.cmd.colorscheme("ghostty-default-style-dark")

⚙️ Configuration

❗️ configuration needs to be set BEFORE loading the color scheme with colorscheme ghostty-default-style-dark

ghostty-default-style-dark.nvim will use the default options, unless you call setup.

require("ghostty-default-style-dark").setup({
  -- your configuration comes here
  -- or leave it empty to use the default settings
  transparent = false, -- Enable this to disable setting the background color
  terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim
  styles = {
    -- Style to be applied to different syntax groups
    -- Value is any valid attr-list value for `:help nvim_set_hl`
    comments = { italic = true },
    keywords = { italic = true },
    functions = {},
    variables = {},
    -- Background styles. Can be "dark", "transparent" or "normal"
    sidebars = "dark", -- style for sidebars, see below
    floats = "dark", -- style for floating windows
  },
  dim_inactive = false, -- dims inactive windows
  lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold

  --- You can override specific color groups to use other groups or a hex color
  --- function will be called with a ColorScheme table
  ---@param colors ColorScheme
  on_colors = function(colors) end,

  --- You can override specific highlights to use other groups or a hex color
  --- function will be called with a Highlights and ColorScheme table
  ---@param highlights Highlights
  ---@param colors ColorScheme
  on_highlights = function(highlights, colors) end,
})

🤝 Integrations

nvim-lualine/lualine.nvim To enable the `ghostty-default-style-dark` theme for `Lualine`, simply specify it in your lualine settings:
require('lualine').setup {
  options = {
    -- ... your lualine config
    theme = 'ghostty-default-style-dark'
    -- ... your lualine config
  }
}
dnlhc/glance.nvim ghostty-default-style-dark provide default options for `glance.nvim` to have a better integration:
require("lazy").setup({
    {
      "dnlhc/glance.nvim",
      opts = require("ghostty-default-style-dark.plugins.glance").make_opts({
        folds = {
          folded = false,
        },
      }),
    }
  }
)
akinsho/bufferline.nvim To use this theme for `bufferline`, add this to your config:
require("bufferline").setup({
    options = {
        separator_style = "thin",
    },
    highlights = require("ghostty-default-style-dark.plugins.bufferline").akinsho(),
})
akinsho/toggleterm.nvim ghostty-default-style-dark provide default options for `toggleterm.nvim` to have a better integration:
require("toggleterm").setup(
    require("ghostty-default-style-dark.plugins.toggleterm").make_opts({
      -- your custom options
    })
)

Credit

  • folke/tokyonight.nvim: for the code base.

Todo

  • update the readme the readme is not up to date with the features that I stole from folke

About

Ghostty Default Style Dark colorscheme port for neovim. Base on the work of the nord.nvim theme.

Resources

Code of conduct

Contributing

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages