Code Monkey home page Code Monkey logo

Comments (7)

A-Lamia avatar A-Lamia commented on June 12, 2024 1

You are probably having a load order issue, where those highlights are being set then the theme is loading overwriting your changes, so it seems you have 2 options to resolve this:

  1. Setup and autocmd that will set your highlights every time a theme is set.
  2. Most themes including Astrotheme have settings that allow you to override the themes highlights.

I'll be closing this now as the original issue is resolved.

from astrotheme.

A-Lamia avatar A-Lamia commented on June 12, 2024

oh i think i know what might be wrong.

EDIT: nope actually this error would error in lazy as well, that's confusing

from astrotheme.

promitheas17j avatar promitheas17j commented on June 12, 2024

If there is any further info you need let me know

from astrotheme.

A-Lamia avatar A-Lamia commented on June 12, 2024

I can't really test with packer right now, does packer run require("astrotheme").setup() automatically ?

Could you also try to run colorscheme astrotheme

edit: it seems like for what ever reason the setup logic is unable to find the palettes folder that is really strange.

from astrotheme.

promitheas17j avatar promitheas17j commented on June 12, 2024

Last night is when I first started playing around with neovim and configuring it, so I'm not sure what you mean. Here is my nvim/lua/user/packer.lua file contents so far:

-- This file can be loaded by calling `lua require('plugins')` from your init.vim

-- Only required if you have packer configured as `opt`
vim.cmd [[packadd packer.nvim]]

return require('packer').startup(function(use)
  -- Packer can manage itself
  use 'wbthomason/packer.nvim'

  use "AstroNvim/astrotheme"

  --[[ Used this theme to test whether it was a general problem with my setup, or just with that specific theme.
  Nightfly works fine
  use { "bluz71/vim-nightfly-colors", as = "nightfly" }
  vim.cmd [[colorscheme nightfly ]]
  --]]
  use {
	  'nvim-telescope/telescope.nvim', tag = '0.1.1',
	  -- or                            , branch = '0.1.x',
	  requires = { {'nvim-lua/plenary.nvim'} }
  }

  use('nvim-treesitter/nvim-treesitter', {run =  ':TSUpdate'})

end)

Also, running the command colorscheme astrotheme give me the error in my original issue post. However, if I try to use tab completion after typing :colorscheme astrotheme does show up in the list, as well as astrolight and astrodark.

from astrotheme.

A-Lamia avatar A-Lamia commented on June 12, 2024

try

use {
    "AstroNvim/astrotheme",
     config = function() 
     	require("astrotheme").setup()
     end,
}

from astrotheme.

promitheas17j avatar promitheas17j commented on June 12, 2024

That seems to work, however previously I had the following lines for transparency:

vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })

to make the background transparent in a colors.lua file in the after/ directory. The only way the astrotheme will enable on starting nvim is if I comment those lines out. Any idea why that is, and how I can get transparency to work with this theme?

Thank you.

from astrotheme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.