Skip to content

diegoulloao/neofusion.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sponsor


neofusion.nvim

Made with Lua

Neofusion theme compatible with treesitter inspired by ellisonleao/gruvbox.nvim

neofusion 👉 Showcase 👈

1. Prerequisites 📦

Neovim 0.8.0+

2. Installation ⚡️

lazy.nvim

{ "diegoulloao/neofusion.nvim", priority = 1000 , config = true, opts = ... }

packer

use { "diegoulloao/neofusion.nvim" }

vim-plug

Plug 'diegoulloao/neofusion.nvim'

3. Basic usage ✨

init.vim

set background=dark
colorscheme neofusion

init.lua

vim.o.background = "dark"
vim.cmd([[ colorscheme neofusion ]])

4. Configuration 💎

All settings are:

-- Default options:
require("neofusion").setup({
  terminal_colors = true, -- add neovim terminal colors
  undercurl = true,
  underline = true,
  bold = true,
  italic = {
    strings = true,
    emphasis = true,
    comments = true,
    operators = false,
    folds = true,
  },
  strikethrough = true,
  invert_selection = false,
  invert_signs = false,
  invert_tabline = false,
  invert_intend_guides = false,
  inverse = true, -- invert background for search, diffs, statuslines and errors
  palette_overrides = {},
  overrides = {},
  dim_inactive = false,
  transparent_mode = false,
})

vim.cmd([[ colorscheme neofusion ]])

Important

Make sure to call setup() before the colorscheme command

Lualine

You can apply the built-in lualine theme like so:

require("lualine").setup({
  options = {
    theme = require("neofusion.lualine"),
    -- rest,
  }
})

5. Overriding 👾

a. Palette

You can customize the palette colors like:

require("neofusion").setup({
  palette_overrides = {
    bright_green = "#ec30ac",
    -- rest,
  }
})

vim.cmd([[ colorscheme neofusion ]])

b. Highlight groups

For more flexibility, you can override a specific highlight group:

require("neofusion").setup({
  overrides = {
    SignColumn = { bg = "#ec30ac" },
    -- rest,
  }
})

vim.cmd([[ colorscheme neofusion ]])

It also works with treesitter groups and lsp semantic highlight tokens:

require("neofusion").setup({
  overrides = {
    ["@lsp.type.method"] = { bg = "#ec30ac" },
    ["@comment.lua"] = { bg = "#000000" },
    -- rest,
  }
})

vim.cmd([[ colorscheme neofusion ]])

For more details check here

6. Advanced 🔥

Get the nice looking from the captures by following the wiki tutorial

7. Ports ⭐

neofusion.iterm

iTerm2 theme version. Check it out!

neofusion.alacritty

Alacritty theme version. Check it out!

neofusion.kitty

Kitty theme version. Check it out!

neofusion.wezterm

WezTerm theme version. Check it out!

neofusion.winterm

Windows Terminal theme version. Check it out!

neofusion.bat

Bat theme version Check it out!

neofusion.fzf

FZF theme version Check it out!

neofusion.k9s

K9s theme version. Check it out!

neofusion.sp

Spotify Player (Terminal) theme version Check it out!

neofusion.posting

Posting theme version. Check it out!

neofusion.vscode

VS Code theme version Check it out!

neofusion-wallpapers

Beautiful wallpapers that match your setup. Check available resolutions

Sponsors ❤️

Check out our awesome sponsors!

Adam Stracener