Skip to content

Commit

Permalink
nvim: Add starry for colorscheme
Browse files Browse the repository at this point in the history
It allows random theme but only once, see ray-x/starry.nvim#9
  • Loading branch information
dnagir committed Dec 29, 2023
1 parent 20b7160 commit b0b3693
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
1 change: 0 additions & 1 deletion nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
require 'user.plugins'

require 'user.options'
vim.cmd 'colorscheme slate'

require 'user.markdown'
require 'user.keymaps' -- Call early to setup leader key.
Expand Down
2 changes: 1 addition & 1 deletion nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"nvim-treesitter": { "branch": "master", "commit": "7d0b4756aba3b220d38ec0443c6cc10944060dd7" },
"plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" },
"remember.nvim": { "branch": "master", "commit": "b7613e14692478a0428dc69ca380b6fbb2448e60" },
"starry.nvim": { "branch": "master", "commit": "c61379d4dc81572026975db7821aa3bed76f98d5" },
"telescope.nvim": { "branch": "0.1.x", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" },
"vim-illuminate": { "branch": "master", "commit": "3bd2ab64b5d63b29e05691e624927e5ebbf0fb86" },
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
}
39 changes: 39 additions & 0 deletions nvim/lua/user/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,43 @@ require("lazy").setup({
-- Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
-- Adds <a-n> and <a-p> as keymaps to move between references and <a-i> as a textobject for the reference illuminated under the cursor.
'RRethy/vim-illuminate',

-- color schemes: https://github.com/ray-x/starry.nvim
{
'ray-x/starry.nvim',
config = function()
require('starry').setup {
border = false, -- Split window borders
italics = {
comments = true,
strings = false,
keywords = false,
functions = false,
variables = false
},
contrast = { -- Select which windows get the contrast background
enable = false, -- Enable contrast
terminal = true, -- Darker terminal
filetypes = {}, -- Which filetypes get darker? e.g. *.vim, *.cpp, etc.
},
text_contrast = {
lighter = false, -- Higher contrast text for lighter style
darker = false -- Higher contrast text for darker style
},
disable = {
background = false, -- true: transparent background
term_colors = false, -- Disable setting the terminal colors
eob_lines = false -- Make end-of-buffer lines invisible
},
style = {
fix = false, -- fix=true - disable random loading
disable = {}, -- a list of styles to disable, e.g. {'bold', 'underline'}
darker_contrast = false, -- More contrast for darker style
daylight_swith = true, -- Enable day and night style switching
deep_black = false, -- Enable a deeper black background
},
}
vim.cmd 'colorscheme starry'
end
},
})

0 comments on commit b0b3693

Please sign in to comment.