mirror of
https://github.com/ViViDboarder/wombat.nvim.git
synced 2024-11-12 17:16:26 +00:00
Add base template files
This commit is contained in:
parent
4cb56c5684
commit
906966987c
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) COPYRIGHT_YEAR COPYRIGHT_NAME
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
||||
A Lush Theme for Neovim.
|
||||
|
||||
See: http://git.io/lush.nvim
|
18
colors/lush_template.vim
Normal file
18
colors/lush_template.vim
Normal file
@ -0,0 +1,18 @@
|
||||
" You probably always want to set this in your vim file
|
||||
set background=dark
|
||||
let g:colors_name="lush_template"
|
||||
|
||||
" By setting our module to nil, we clear lua's cache,
|
||||
" which means the require ahead will *always* occur.
|
||||
"
|
||||
" This isn't strictly required but it can be a useful trick if you are
|
||||
" incrementally editing your confit a lot and want to be sure your themes
|
||||
" changes are being picked up without restarting neovim.
|
||||
"
|
||||
" Note if you're working in on your theme and have lush.ify'd the buffer,
|
||||
" your changes will be applied with our without the following line.
|
||||
lua package.loaded['lush_theme.lush_template'] = nil
|
||||
|
||||
" include our theme file and pass it to lush to apply
|
||||
lua require('lush')(require('lush_theme.lush_template'))
|
||||
|
244
lua/lush_theme/lush_template.lua
Normal file
244
lua/lush_theme/lush_template.lua
Normal file
@ -0,0 +1,244 @@
|
||||
--
|
||||
-- Built with,
|
||||
--
|
||||
-- ,gggg,
|
||||
-- d8" "8I ,dPYb,
|
||||
-- 88 ,dP IP'`Yb
|
||||
-- 8888888P" I8 8I
|
||||
-- 88 I8 8'
|
||||
-- 88 gg gg ,g, I8 dPgg,
|
||||
-- ,aa,_88 I8 8I ,8'8, I8dP" "8I
|
||||
-- dP" "88P I8, ,8I ,8' Yb I8P I8
|
||||
-- Yb,_,d88b,,_ ,d8b, ,d8b,,8'_ 8) ,d8 I8,
|
||||
-- "Y8P" "Y888888P'"Y88P"`Y8P' "YY8P8P88P `Y8
|
||||
--
|
||||
|
||||
-- This is a starter colorscheme for use with Lush,
|
||||
-- for usage guides, see :h lush or :LushRunTutorial
|
||||
|
||||
--
|
||||
-- Note: Because this is lua file, vim will append your file to the runtime,
|
||||
-- which means you can require(...) it in other lua code (this is useful),
|
||||
-- but you should also take care not to conflict with other libraries.
|
||||
--
|
||||
-- (This is a lua quirk, as it has somewhat poor support for namespacing.)
|
||||
--
|
||||
-- Basically, name your file,
|
||||
--
|
||||
-- "super_theme/lua/lush_theme/super_theme_dark.lua",
|
||||
--
|
||||
-- not,
|
||||
--
|
||||
-- "super_theme/lua/dark.lua".
|
||||
--
|
||||
-- With that caveat out of the way...
|
||||
--
|
||||
|
||||
-- Enable lush.ify on this file, run:
|
||||
--
|
||||
-- `:Lushify`
|
||||
--
|
||||
-- or
|
||||
--
|
||||
-- `:lua require('lush').ify()`
|
||||
|
||||
local lush = require('lush')
|
||||
local hsl = lush.hsl
|
||||
|
||||
local theme = lush(function()
|
||||
return {
|
||||
-- The following are all the Neovim default highlight groups from
|
||||
-- docs as of 0.5.0-812, to aid your theme creation. Your themes should
|
||||
-- probably style all of these at a bare minimum.
|
||||
--
|
||||
-- Referenced/linked groups must come before being referenced/lined,
|
||||
-- so the order shown ((mostly) alphabetical) is likely
|
||||
-- not the order you will end up with.
|
||||
--
|
||||
-- You can uncomment these and leave them empty to disable any
|
||||
-- styling for that group (meaning they mostly get styled as Normal)
|
||||
-- or leave them commented to apply vims default colouring or linking.
|
||||
|
||||
-- ColorColumn { }, -- used for the columns set with 'colorcolumn'
|
||||
-- Conceal { }, -- placeholder characters substituted for concealed text (see 'conceallevel')
|
||||
-- Cursor { }, -- character under the cursor
|
||||
-- lCursor { }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
|
||||
-- CursorIM { }, -- like Cursor, but used when in IME mode |CursorIM|
|
||||
-- CursorColumn { }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
|
||||
-- CursorLine { }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
|
||||
-- Directory { }, -- directory names (and other special names in listings)
|
||||
-- DiffAdd { }, -- diff mode: Added line |diff.txt|
|
||||
-- DiffChange { }, -- diff mode: Changed line |diff.txt|
|
||||
-- DiffDelete { }, -- diff mode: Deleted line |diff.txt|
|
||||
-- DiffText { }, -- diff mode: Changed text within a changed line |diff.txt|
|
||||
-- EndOfBuffer { }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
|
||||
-- TermCursor { }, -- cursor in a focused terminal
|
||||
-- TermCursorNC { }, -- cursor in an unfocused terminal
|
||||
-- ErrorMsg { }, -- error messages on the command line
|
||||
-- VertSplit { }, -- the column separating vertically split windows
|
||||
-- Folded { }, -- line used for closed folds
|
||||
-- FoldColumn { }, -- 'foldcolumn'
|
||||
-- SignColumn { }, -- column where |signs| are displayed
|
||||
-- IncSearch { }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
|
||||
-- Substitute { }, -- |:substitute| replacement text highlighting
|
||||
-- LineNr { }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
|
||||
-- CursorLineNr { }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
||||
-- MatchParen { }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
|
||||
-- ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ")
|
||||
-- MsgArea { }, -- Area for messages and cmdline
|
||||
-- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
|
||||
-- MoreMsg { }, -- |more-prompt|
|
||||
-- NonText { }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
|
||||
-- Normal { }, -- normal text
|
||||
-- NormalFloat { }, -- Normal text in floating windows.
|
||||
-- NormalNC { }, -- normal text in non-current windows
|
||||
-- Pmenu { }, -- Popup menu: normal item.
|
||||
-- PmenuSel { }, -- Popup menu: selected item.
|
||||
-- PmenuSbar { }, -- Popup menu: scrollbar.
|
||||
-- PmenuThumb { }, -- Popup menu: Thumb of the scrollbar.
|
||||
-- Question { }, -- |hit-enter| prompt and yes/no questions
|
||||
-- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
|
||||
-- Search { }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
|
||||
-- SpecialKey { }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| SpellBad Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. SpellCap Word that should start with a capital. |spell| Combined with the highlighting used otherwise. SpellLocal Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
|
||||
-- SpellRare { }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
|
||||
-- StatusLine { }, -- status line of current window
|
||||
-- StatusLineNC { }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
|
||||
-- TabLine { }, -- tab pages line, not active tab page label
|
||||
-- TabLineFill { }, -- tab pages line, where there are no labels
|
||||
-- TabLineSel { }, -- tab pages line, active tab page label
|
||||
-- Title { }, -- titles for output from ":set all", ":autocmd" etc.
|
||||
-- Visual { }, -- Visual mode selection
|
||||
-- VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection".
|
||||
-- WarningMsg { }, -- warning messages
|
||||
-- Whitespace { }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
|
||||
-- WildMenu { }, -- current match in 'wildmenu' completion
|
||||
|
||||
-- These groups are not listed as default vim groups,
|
||||
-- but they are defacto standard group names for syntax highlighting.
|
||||
-- commented out groups should chain up to their "preferred" group by
|
||||
-- default,
|
||||
-- Uncomment and edit if you want more specific syntax highlighting.
|
||||
|
||||
-- Constant { }, -- (preferred) any constant
|
||||
-- String { }, -- a string constant: "this is a string"
|
||||
-- Character { }, -- a character constant: 'c', '\n'
|
||||
-- Number { }, -- a number constant: 234, 0xff
|
||||
-- Boolean { }, -- a boolean constant: TRUE, false
|
||||
-- Float { }, -- a floating point constant: 2.3e10
|
||||
|
||||
-- Identifier { }, -- (preferred) any variable name
|
||||
-- Function { }, -- function name (also: methods for classes)
|
||||
|
||||
-- Statement { }, -- (preferred) any statement
|
||||
-- Conditional { }, -- if, then, else, endif, switch, etc.
|
||||
-- Repeat { }, -- for, do, while, etc.
|
||||
-- Label { }, -- case, default, etc.
|
||||
-- Operator { }, -- "sizeof", "+", "*", etc.
|
||||
-- Keyword { }, -- any other keyword
|
||||
-- Exception { }, -- try, catch, throw
|
||||
|
||||
-- PreProc { }, -- (preferred) generic Preprocessor
|
||||
-- Include { }, -- preprocessor #include
|
||||
-- Define { }, -- preprocessor #define
|
||||
-- Macro { }, -- same as Define
|
||||
-- PreCondit { }, -- preprocessor #if, #else, #endif, etc.
|
||||
|
||||
-- Type { }, -- (preferred) int, long, char, etc.
|
||||
-- StorageClass { }, -- static, register, volatile, etc.
|
||||
-- Structure { }, -- struct, union, enum, etc.
|
||||
-- Typedef { }, -- A typedef
|
||||
|
||||
-- Special { }, -- (preferred) any special symbol
|
||||
-- SpecialChar { }, -- special character in a constant
|
||||
-- Tag { }, -- you can use CTRL-] on this
|
||||
-- Delimiter { }, -- character that needs attention
|
||||
-- SpecialComment { }, -- special things inside a comment
|
||||
-- Debug { }, -- debugging statements
|
||||
|
||||
-- Underlined { gui = "underline" }, -- (preferred) text that stands out, HTML links
|
||||
-- Bold { gui = "bold" },
|
||||
-- Italic { gui = "italic" },
|
||||
|
||||
-- ("Ignore", below, may be invisible...)
|
||||
-- Ignore { }, -- (preferred) left blank, hidden |hl-Ignore|
|
||||
|
||||
-- Error { }, -- (preferred) any erroneous construct
|
||||
|
||||
-- Todo { }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX
|
||||
|
||||
-- These groups are for the native LSP client. Some other LSP clients may use
|
||||
-- these groups, or use their own. Consult your LSP client's documentation.
|
||||
|
||||
-- LspDiagnosticsError { }, -- used for "Error" diagnostic virtual text
|
||||
-- LspDiagnosticsErrorSign { }, -- used for "Error" diagnostic signs in sign column
|
||||
-- LspDiagnosticsErrorFloating { }, -- used for "Error" diagnostic messages in the diagnostics float
|
||||
-- LspDiagnosticsWarning { }, -- used for "Warning" diagnostic virtual text
|
||||
-- LspDiagnosticsWarningSign { }, -- used for "Warning" diagnostic signs in sign column
|
||||
-- LspDiagnosticsWarningFloating { }, -- used for "Warning" diagnostic messages in the diagnostics float
|
||||
-- LspDiagnosticsInformation { }, -- used for "Information" diagnostic virtual text
|
||||
-- LspDiagnosticsInformationSign { }, -- used for "Information" signs in sign column
|
||||
-- LspDiagnosticsInformationFloating { }, -- used for "Information" diagnostic messages in the diagnostics float
|
||||
-- LspDiagnosticsHint { }, -- used for "Hint" diagnostic virtual text
|
||||
-- LspDiagnosticsHintSign { }, -- used for "Hint" diagnostic signs in sign column
|
||||
-- LspDiagnosticsHintFloating { }, -- used for "Hint" diagnostic messages in the diagnostics float
|
||||
-- LspReferenceText { }, -- used for highlighting "text" references
|
||||
-- LspReferenceRead { }, -- used for highlighting "read" references
|
||||
-- LspReferenceWrite { }, -- used for highlighting "write" references
|
||||
|
||||
-- These groups are for the neovim tree-sitter highlights.
|
||||
-- As of writing, tree-sitter support is a WIP, group names may change.
|
||||
-- By default, most of these groups link to an appropriate Vim group,
|
||||
-- TSError -> Error for example, so you do not have to define these unless
|
||||
-- you explicitly want to support Treesitter's improved syntax awareness.
|
||||
|
||||
-- TSError { }, -- For syntax/parser errors.
|
||||
-- TSPunctDelimiter { }, -- For delimiters ie: `.`
|
||||
-- TSPunctBracket { }, -- For brackets and parens.
|
||||
-- TSPunctSpecial { }, -- For special punctutation that does not fall in the catagories before.
|
||||
-- TSConstant { }, -- For constants
|
||||
-- TSConstBuiltin { }, -- For constant that are built in the language: `nil` in Lua.
|
||||
-- TSConstMacro { }, -- For constants that are defined by macros: `NULL` in C.
|
||||
-- TSString { }, -- For strings.
|
||||
-- TSStringRegex { }, -- For regexes.
|
||||
-- TSStringEscape { }, -- For escape characters within a string.
|
||||
-- TSCharacter { }, -- For characters.
|
||||
-- TSNumber { }, -- For integers.
|
||||
-- TSBoolean { }, -- For booleans.
|
||||
-- TSFloat { }, -- For floats.
|
||||
-- TSFunction { }, -- For function (calls and definitions).
|
||||
-- TSFuncBuiltin { }, -- For builtin functions: `table.insert` in Lua.
|
||||
-- TSFuncMacro { }, -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
|
||||
-- TSParameter { }, -- For parameters of a function.
|
||||
-- TSParameterReference { }, -- For references to parameters of a function.
|
||||
-- TSMethod { }, -- For method calls and definitions.
|
||||
-- TSField { }, -- For fields.
|
||||
-- TSProperty { }, -- Same as `TSField`.
|
||||
-- TSConstructor { }, -- For constructor calls and definitions: `{ }` in Lua, and Java constructors.
|
||||
-- TSConditional { }, -- For keywords related to conditionnals.
|
||||
-- TSRepeat { }, -- For keywords related to loops.
|
||||
-- TSLabel { }, -- For labels: `label:` in C and `:label:` in Lua.
|
||||
-- TSOperator { }, -- For any operator: `+`, but also `->` and `*` in C.
|
||||
-- TSKeyword { }, -- For keywords that don't fall in previous categories.
|
||||
-- TSKeywordFunction { }, -- For keywords used to define a fuction.
|
||||
-- TSException { }, -- For exception related keywords.
|
||||
-- TSType { }, -- For types.
|
||||
-- TSTypeBuiltin { }, -- For builtin types (you guessed it, right ?).
|
||||
-- TSNamespace { }, -- For identifiers referring to modules and namespaces.
|
||||
-- TSInclude { }, -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
|
||||
-- TSAnnotation { }, -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
|
||||
-- TSText { }, -- For strings considered text in a markup language.
|
||||
-- TSStrong { }, -- For text to be represented with strong.
|
||||
-- TSEmphasis { }, -- For text to be represented with emphasis.
|
||||
-- TSUnderline { }, -- For text to be represented with an underline.
|
||||
-- TSTitle { }, -- Text that is part of a title.
|
||||
-- TSLiteral { }, -- Literal text.
|
||||
-- TSURI { }, -- Any URI like a link or email.
|
||||
-- TSVariable { }, -- Any variable name that does not have another highlight.
|
||||
-- TSVariableBuiltin { }, -- Variable names that are defined by the languages, like `this` or `self`.
|
||||
}
|
||||
end)
|
||||
|
||||
-- return our parsed theme for extension or use else where.
|
||||
return theme
|
||||
|
||||
-- vi:nowrap
|
Loading…
Reference in New Issue
Block a user