A theme trying to combine a love of neon space colors and pastel chalk board colors.
Neovim plugin | Description |
---|---|
barbar | tabline |
barbecue | referenceline |
gitsigns | git column |
lualine | status line for neovim |
scrollbar.nvim | scrollbar |
telescope | file browser, currently working on this |
nvim-treesitter | syntax highlighter, currently working on this |
You should be able to install this fine with any neovim plugin manager.
use {'space-chalk/spacechalk.nvim'}
{
'space-chalk/spacechalk.nvim',
lazy = false, -- loaded during startup since it's the main colorscheme
priority = 1000, -- load this before all other start plugins
config = function()
-- set the colorscheme here
vim.cmd.colorscheme('spacechalk')
vim.g.colors_name = 'spacechalk'
end,
}
For more info on how to configure plugins via lazy, checkout folke/lazy.nvim#-plugin-spec.
You can of course use Vim script instead of Lua, but for those new to neovim, this is what you want to do:
-- you will want this after packer has been loaded
vim.cmd.colorscheme("spacechalk")
If you are running neovim inside tmux:
set-option -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ',xterm-256color:Tc'
Note: this plugin is currently written in vimscript, but there are plans to convert to lua in the near future!
Contributions to get the syntax highlighting working everywhere are absolutely welcome. Feel free to open an issue if you need help as well :)
If you're new to vim colorschemes, here's some tips!
To see hex colors highlighted in neovim, I recommend installing nvim-colorizer.lua.
If you're already in a file in neovim, and the highlighting doesn't look quite right, but you're not sure what the variable is called, try some of these steps below:
You can now move your cursor over a word and then type :Inspect
to get highlights for both your LSP and treesitter in one go :) You can check out :h lsp-semantec-highlight
for more info.
If you find that a highlight from your LSP semantec highlights is incorrect, you can disable it with an autocommand. Here's an example of disabling the semantec highlighting for variables/parameters in a Dockerfile
:
-- autocommand to disable lsp semantic highlighting for parameter/variable in
-- Dockerfile because it competes with treesitter and is worse
vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
pattern = {"Dockerfile"},
callback = function()
vim.api.nvim_set_hl(0, '@lsp.type.parameter.dockerfile', {})
vim.api.nvim_set_hl(0, '@lsp.type.variable.dockerfile', {})
end,
})
This will show all highlights for the current file you have open:
:highlight
That will give the exact highlight
commands for all the variables, but unfortunately it's not searchable, so you'll have to page through it ;(
If you know the variable you want to check though, you can do the following
" gets the current highlight for just the Function highlight group
:highlight Function
It may also be helpful to check out more about syntax/colors with:
:help syntax
If you're using nvim-treesitter prior to neovim version 0.9.0
, I highly recommend installing nvim-treesitter/playground, as it can be really helpful for debugging a treesitter highlighting issue. Once installed, you can run the following to get the current highlight group under your cursor:
:TSHighlightCapturesUnderCursor