repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

❣ another daring attempt at dorkfiles...

62f03a441017513ffba951ff4546e3cbb389ce28

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (28)

EJ-PC-00363.symlinks

Added
new file mode 100644
1 +neovim
2 +~/.config/nvim
4 +git/.gitconfig
5 +~/.gitconfig
7 +git/.gitconfig.EJ-PC-00363
8 +~/.gitconfig.include

README.md

Added
new file mode 100644
1 +# bugabingas personal dotfiles, 33rd attempt
3 +Rough plan: Build a [cosmopolitan] install executable for true cross-plattform bootrap of my configuration.
5 +[cosmopolitan]: https://justine.lol/cosmopolitan/index.html

git/.gitconfig

Added
new file mode 100644
1 +# This is Git's per-user configuration file.
2 +[user]
3 + name = Oliver Jan Krylow
4 + email = olver@bugabinga.net
6 +[commit]
7 + gpgsign = true
9 +[core]
10 + editor = nvim
11 + quotepath = false
12 + autocrlf = input
13 + pager = delta
15 +[diff]
16 + colorMoved = default
17 + tool = nvimdiff
19 +[difftool]
20 + prompt = false
22 +[difftool "nvimdiff"]
23 + cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
25 +[merge]
26 + tool = nvimmerge
28 +[mergetool]
29 + prompt = true
31 +[mergetool "nvimmerge"]
32 + cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" -c 'wincmd w' -c 'wincmd J'"
34 +[pull]
35 + rebase = false
37 +[interactive]
38 + diffFilter = delta --color-only
40 +[delta]
41 + side-by-side = true
42 + line-numbers = true
43 + decorations = true
44 + navigate = true
45 + syntax-theme = none
47 +[interactive]
48 + diffFilter = delta --color-only
50 +[init]
51 + defaultBranch = trunk
53 +# In order to have host-specific configuration, I include additional settings here.
54 +# On each host a different file might be symlinked into '.gitconfig.include'.
55 +[include]
56 + path = .gitconfig.include

git/.gitconfig.EJ-PC-00363

Added
new file mode 100644
1 +#vim: ft=gitconfig
2 +[user]
3 + name = Oliver Krylow
4 + email = o.krylow@isp-insoft.de
5 + singingkey = B9F54F87A249A85D8538CAAB8DCEC7C339E72EE3
7 +[gpg]
8 + program = "C:/Users/okr/AppData/Local/gnupg/bin/gpg.exe"
10 +[credential]
11 + helper = manager-core

neovim/.luacheckrc

Added
new file mode 100644
1 +-- vim: ft=lua tw=80
2 +stds.nvim = {
3 + read_globals = { 'jit' },
4 +}
5 +std = 'lua51+nvim'
6 +self = false
7 +ignore = {
8 + -- max_line_length
9 + '631',
10 + -- unused argument, for vars with "_" prefix
11 + '212/_.*',
12 + '241/_.*',
14 +globals = {
15 + 'cheatsheet',
17 +read_globals = {
18 + vim = {
19 + other_fields = true,
20 + fields = {
21 + g = {
22 + read_only = false,
23 + other_fields = true,
24 + },
25 + },
26 + },
28 +files['.luacheckrc'] = { only = { '1' } }

neovim/.stylua.toml

Added
new file mode 100644
1 +column_width = 80
2 +line_endings = "Unix"
3 +indent_type = "Spaces"
4 +indent_width = 2
5 +quote_style = "AutoPreferSingle"
6 +no_call_parentheses = true

neovim/init.lua

Added
new file mode 100644
1 +-- The times of glory are upon us!
2 +-- Will Lua save us from the wraths of Vimscript?
3 +-- Or will it, yet again, become the next overlord?
5 +-- The configuration is split into thematic modules.
6 +-- Because, why shouldn`t we overengineer our config files
7 +-- when it works so charmingly well for software as well...
9 +-- A `module` is a lua file, that returns a function
10 +-- Typically, lua developers use tables as modules,
11 +-- but we strive to innovate here.
13 +-- The NVIM lua configuration APIs are still in flux.
14 +-- So basically, anything but control flow and low level editor commands
15 +-- are a pain in the butt right now.
16 +-- That is why we invent our own abstractions over the current API.
17 +-- These roughly emulate what we are used to from Vimscript:
18 +-- - options => use metaaccessors: vim.o, vim.bo, vim.wo
19 +-- - commands => use function vim.cmd
20 +-- - autocommands => use module `autocommand`
21 +-- - highlights and groups => use plugin colorbuddy
23 +-- import `dump` into the global namespace, so that we can use it in a running vim instance: `:lua dump(vim.fn)`
24 +_G.dump = require 'dump'
25 +-- import `syntax_stack` into global namespace. shows the highlight group under cursor
26 +_G.syntax_stack = require 'syntax_stack'
27 +-- Define some standard path locations where we will put stuff into.
28 +-- `data` is for persistent data like logs, backups and file states.
29 +-- `config` is for configuration code itself and plugins.
30 +-- `cache` is for fleeting, temporary data.
31 +local data_path = vim.fn.stdpath 'data'
32 +local config_path = vim.fn.stdpath 'config'
33 +local cache_path = vim.fn.stdpath 'cache'
35 +local autocommand = require 'autocommand'
37 +-- My cheatsheet is an initial buffer (if none was specified) where I put stuff to remember/learn.
38 +-- Keybinds, commands, TODOs are all fair game.
39 +local cheatsheet, setup_cheatsheet = require 'cheatsheet'()
40 +-- make cheatsheet globally available for easy access in plugins configurations blocks of packer
41 +_G.cheatsheet = cheatsheet
42 +cheatsheet ''
43 +cheatsheet 'Stuff for bugabinga to remember about NeoVim'
44 +cheatsheet ''
45 +local settings = require 'general_editor_settings'
46 +settings(cheatsheet, autocommand, data_path)
47 +-- when started with '--headless', there will be no attached UIs
48 +local non_interactive = #vim.api.nvim_list_uis() == 0
49 +-- Put the plugins module into the global scope, so that it can be used more easily in commands
50 +_G.plugins = require 'plugins'(autocommand, data_path, non_interactive)
51 +-- setup my own keybindings
52 +require 'keybinds'(cheatsheet)
54 +-- some file specific settings
55 +require'filetype.yaml'(autocommand)
57 +-- Commands have no nvim API yet, so we use vimscript...
58 +cheatsheet ':WhatHighlight => This command shows the highlight group under the cursor'
59 +vim.cmd [[command! WhatHighlight lua syntax_stack()]]
60 +cheatsheet ':TSHighlightCapturesUnderCursor => This command shows the highlight group under the cursor, when TreeSitter is used'
62 +-- Lazy load the plugin manager packer, when using these commands
63 +-- cheatsheet':PluginsInstall => Install the specified plugins if they are not already installed'
64 +vim.cmd [[command! PluginsInstall packadd packer.nvim | lua plugins.install()]]
66 +-- cheatsheet':PluginsUpdate => Update the specified plugins, installing any that are missing'
67 +vim.cmd [[command! PluginsUpdate packadd packer.nvim | lua plugins.update()]]
69 +cheatsheet ':PluginsSync => Perform a clean followed by an update'
70 +vim.cmd [[command! PluginsSync packadd packer.nvim | lua plugins.sync()]]
72 +-- cheatsheet':PluginsClean => Remove any disabled or no longer managed plugins'
73 +vim.cmd [[command! PluginsClean packadd packer.nvim | lua plugins.clean()]]
75 +-- cheatsheet':PluginsCompile => Compile lazy-loader code and save to path'
76 +vim.cmd [[command! PluginsCompile packadd packer.nvim | lua plugins.compile()]]
78 +cheatsheet ':PluginsProfile => Show the measured startup times of plugins'
79 +vim.cmd [[command! PluginsProfile packadd packer.nvim | lua plugins.profile_output()]]
81 +vim.cmd [[command! PluginsStatus packadd packer.nvim | lua plugins.status()]]
83 +-- Should be the last call
84 +setup_cheatsheet()

neovim/lua/autocommand.lua

Added
new file mode 100644
1 +-- This function creates a custom API over autocommands in nvim.
2 +-- Since an official API is not present yet, I simply stole one from norcalli.
3 +-- groups: a map of group name to list of vimscript commands (table of string), or a single vimscript command (string).
4 +return function(groups)
5 + for name, commands in pairs(groups) do
6 + -- wrap autocommands in a group and..
7 + vim.cmd('augroup ' .. name)
8 + -- ... undefine the groups commands, so that they become idempotent.
9 + -- This prevents nvim from reexecuting these when reloading the configuration.
10 + vim.cmd 'autocmd!'
11 + if type(commands) == 'string' then
12 + vim.cmd('autocmd ' .. commands)
13 + elseif type(commands) == 'table' then
14 + for _, command in ipairs(commands) do
15 + vim.cmd('autocmd ' .. command)
16 + end
17 + end
18 + vim.cmd 'augroup END'
19 + end
20 +end

neovim/lua/cheatsheet.lua

Added
new file mode 100644
1 +-- The cheatsheet module takes over the initial buffer of neovim and displays my personal cheat sheet
2 +-- and other stuff I wish to remember about neovim.
3 +-- Calling this module returns two functions.
4 +-- The first one can be used to add to the cheatsheet buffer.
5 +-- Throughout the configuration code, this function is expected to be called and given lines of text to display.
6 +-- The second one sets up the custom intro screen, if nvim was started without any arguments.
7 +return function()
8 + local cheatsheet_lines = { 'CHEATSHEET VIM COMMANDS' }
9 + local is_setup = false
10 + return function(message)
11 + table.insert(cheatsheet_lines, message)
12 + if is_setup and vim.api.nvim_buf_get_name(0):match 'cheatsheet' then
13 + vim.cmd [[noautocmd setlocal modifiable]]
14 + -- Adds message by appending to the end of current buffer
15 + vim.api.nvim_buf_set_lines(0, -1, -1, false, { message })
16 + vim.cmd [[noautocmd setlocal nomodifiable nomodified]]
17 + end
18 + end,
19 + function()
20 + if
21 + -- program arguments were given
22 + vim.fn.argc() ~= 0
23 + -- the buffer is not empty
24 + or vim.fn.line2byte '$' ~= -1
25 + -- vim is already in insert mode
26 + or vim.o.insertmode
27 + -- buffer is not modifiable
28 + or not vim.o.modifiable
29 + then
30 + -- simply do nothing, which results in the normal nvim behaviour
31 + return
32 + end
33 + -- disables the default intro screen
34 + vim.o.shortmess = vim.o.shortmess .. 'I'
35 + -- ignore all autocommand event while we setup our start screen
36 + vim.o.eventignore = 'all'
37 + vim.cmd [[noautocmd silent! setlocal bufhidden=wipe colorcolumn= foldcolumn=0 matchpairs= nobuflisted nocursorcolumn nocursorline nolist nonumber norelativenumber nospell noswapfile signcolumn=no synmaxcol& statusline=cheatsheet filetype=intro]]
38 + -- add lines here to buffer
39 + vim.api.nvim_buf_set_name(0, 'cheatsheet')
40 + vim.api.nvim_buf_set_lines(
41 + 0,
42 + 0,
43 + #cheatsheet_lines,
44 + false,
45 + cheatsheet_lines
46 + )
47 + vim.cmd [[noautocmd setlocal nomodifiable nomodified]]
48 + vim.cmd [[silent! %foldopen!]]
49 + vim.cmd [[normal! zb]]
50 + -- when entering insert mode, open new buffer
51 + vim.cmd [[nnoremap <buffer><nowait><silent> i :enew <bar> startinsert<cr>]]
52 + vim.o.eventignore = ''
54 + -- remember if the cheatsheet was already set up, so that the messenger function can instead modify the buffer
55 + is_setup = true
56 + end
57 +end

neovim/lua/dump.lua

Added
new file mode 100644
1 +-- This function prints the contents of any lua value into the vim output command stream.
2 +-- It is meant to aid in debugging and understanding the state of a running Vim instance.
3 +-- As such it should be imported into the global namespace `_G`, if one wishes to use it
4 +-- live.
5 +-- In essence, this is a shorter way to write: `print(vim.inspect(...))`
6 +return function(...)
7 + -- vim.inspect converts lua values to something human readable
8 + local objects = vim.tbl_map(vim.inspect, { ... })
9 + print(unpack(objects))
10 +end

neovim/lua/filetype/yaml.lua

Added
new file mode 100644
1 +return function(autocommand)
2 + -- YAML is very whitespace-sensite
3 + autocommand{yaml_settings = [[ FileType yaml setlocal tabstop=2 softtabstop=2 shiftwidth=2 ]]}
4 +end

neovim/lua/general_editor_settings.lua

Added
new file mode 100644
1 +-- This function sets up neovim with general configuration options.
2 +-- "General" means, valid for all use-cases, file types etc.
3 +return function(_, autocommand, data_path)
4 + -- nvim lacks the vimscript equivalent of ":set".
5 + -- "set" does automagic, when setting non-global options,
6 + -- which we try to replicate here.
7 + local _scopes = { global = vim.o, window = vim.wo, buffer = vim.bo }
8 + local set = function(scope, key, value)
9 + -- first, set the option in the given scope
10 + _scopes[scope][key] = value
11 + -- then, if the option was not global, also set it globally.
12 + -- otherwise buffer options only apply to the current buffer.
13 + if scope ~= 'global' then
14 + _scopes['global'][key] = value
15 + end
16 + end
17 + -- Setting the width of the tab character to 2
18 + local tab_size = 2
19 + set('buffer', 'tabstop', tab_size)
20 + set('buffer', 'shiftwidth', tab_size)
21 + set('buffer', 'softtabstop', tab_size)
22 + -- convert tabs to spaces
23 + set('buffer', 'expandtab', true)
24 + -- Keep indentation of new lines in line with previuos lines
25 + set('buffer', 'autoindent', true)
26 + set('buffer', 'copyindent', true)
27 + set('buffer', 'smartindent', true)
29 + -- I do not care for folding
30 + set('window', 'foldenable', false)
31 + set('window', 'cursorline', true)
32 + -- Highlight the cursor line in the current buffer
33 + autocommand {
34 + show_cursor_line_in_active_window = {
35 + [[WinLeave * set nocursorline]],
36 + [[WinEnter * set cursorline]],
37 + [[InsertEnter * set nocursorline]],
38 + [[InsertLeave * set cursorline]],
39 + },
40 + }
42 + -- integrate Powershell Core with nvim
43 + set('global', 'shell', 'powershell')
44 + set('global', 'shellquote', '')
45 + set('global', 'shellxquote', '')
46 + set(
47 + 'global',
48 + 'shellcmdflag',
49 + '-NoLogo -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -Command'
50 + )
51 + set('global', 'shellredir', '| Out-File -Encoding UTF8')
52 + set('global', 'shellpipe', '| Out-File -Encoding UTF8')
53 + -- insert whitespace type based on whitespace on previous line
54 + set('global', 'smarttab', true)
55 + set('global', 'hlsearch', true)
56 + set('global', 'ignorecase', true)
57 + set('global', 'smartcase', true)
58 + set('global', 'incsearch', true)
59 + set('global', 'showmatch', true)
60 + set('global', 'hidden', true)
61 + -- Show the effects of substitutions incrementally
62 + set('global', 'inccommand', 'nosplit')
63 + -- enable mouse support, in a terminal app... i know crazy...
64 + set('global', 'mouse', 'a')
65 + -- Show certain whitespace characters
66 + set('window', 'list', true)
67 + set(
68 + 'global',
69 + 'listchars',
70 + 'tab:⯈ ,trail: ,nbsp:␠,extends:⋯,precedes:⋯,space:⸱'
71 + )
72 + set('global', 'scrolloff', 3)
73 + -- do not spam the cmdline with every little input
74 + set('global', 'showcmd', false)
75 + set('global', 'wildmode', 'list:longest')
76 + -- Set the current working directory to the parent of the active buffer
77 + set('global', 'autochdir', true)
78 + -- Keep track of file changes outside of vim
79 + set('global', 'autoread', true)
80 + -- Make backups of all touched files in a special directory
81 + set('global', 'backup', true)
82 + set('global', 'writebackup', true)
83 + set('global', 'backupcopy', 'auto')
84 + -- The magic slash at the end is important.
85 + -- It tells vim to use the absolute path in encoded form as the backup file
86 + -- name.
87 + set('global', 'backupdir', data_path .. '/backup/')
88 + local global = vim.o
89 + if vim.fn.empty(vim.fn.glob(global.backupdir)) > 0 then
90 + vim.cmd('!mkdir ' .. global.backupdir)
91 + end
92 + autocommand {
93 + backup_timestamp = [[BufWritePre * let &backupext = '@' . strftime("%F.%H:%M") . '.bak']],
94 + }
95 + -- set global swap directory, so that swap files do not pollute my workspace
96 + set('global', 'directory', data_path .. '/swap/')
97 + -- persit undo states across vim restarts
98 + set('buffer', 'undofile', true)
99 + set('global', 'undodir', data_path .. '/undo/')
100 + -- ask me to force failed commands
101 + set('global', 'confirm', true)
102 + set('global', 'completeopt', 'menuone,noinsert,noselect')
103 + -- avoid showing messages during automomplete
104 + set('global', 'shortmess', global.shortmess .. 'c')
105 + -- open splits below and to the right of current buffers
106 + set('global', 'splitbelow', true)
107 + set('global', 'splitright', true)
108 + -- Use true colors
109 + set('global', 'termguicolors', true)
110 + set('global', 'guifont', 'BlexMono NF:h13:1')
111 + -- Set cursor position to last known position, when entering a window
112 + autocommand {
113 + restore_cursor_position = [[ BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif ]],
115 + -- Automatically enter and leave insert mode when opening/closing terminal buffers.
116 + autocommand {
117 + auto_enter_insert_on_terminal = {
118 + [[TermOpen,TermEnter * startinsert]],
119 + [[TermClose,TermLeave * stopinsert]],
120 + },
122 + -- Disable some built-in plugins we don't want
123 + local disabled_built_ins = {
124 + 'gzip',
125 + 'man',
126 + 'matchit',
127 + 'matchparen',
128 + 'shada_plugin',
129 + 'tarPlugin',
130 + 'tar',
131 + 'zipPlugin',
132 + 'zip',
133 + 'netrwPlugin',
135 + for _, built_in in ipairs(disabled_built_ins) do
136 + vim.g['loaded_' .. built_in] = 1
137 + end
138 + -- briefly highlight yanked text
139 + autocommand {
140 + highlight_yanked_text = [[TextYankPost * silent! lua vim.highlight.on_yank()]],
142 + -- use ripgrep instead of grep
143 + set('global', 'grepprg', [[rg --vimgrep --no-heading --smart-case]])
144 + set('global', 'grepformat', '%f:%1:%c:%m')
145 +end

neovim/lua/highlight.lua

Added
new file mode 100644

No text changes.

neovim/lua/keybinds.lua

Added
new file mode 100644
1 +-- Set up all my favorite keybindings and list them in my cheatsheet.
2 +-- This module assumes a lot of pre configured state, i.e. already installed and enabled plugins.
3 +-- The benefit of assembling all keybinds here is, that they are easy to find.
4 +-- But unfortunataly, by collecting them here, they are placed "far" from their logical place, i.e. the plugins configuration.
5 +return function(cheatsheet)
6 + -- Delegator over nvim_set_keymap, that sets some default options
7 + local map = function(mode, left_hand_side, right_hand_side, options)
8 + local default_options = { noremap = true, unique = true }
9 + if options then
10 + default_options = vim.tbl_extend('force', default_options, options)
11 + end
12 + vim.api.nvim_set_keymap(
13 + mode,
14 + left_hand_side,
15 + right_hand_side,
16 + default_options
17 + )
18 + end
19 + -- Let the <LEADER> key be <SPACE>
20 + vim.g.mapleader = ' '
22 + map('n', '<LEADER><F12>', [[:lua require('glow').glow('<f-args>')<CR>]])
23 + cheatsheet 'LEADER + F12 => Render Markdown Preview'
25 + map('n', '<LEADER><F9>', [[:tabnew ~/.config/nvim/init.lua<CR>]])
26 + cheatsheet 'LEADER + F9 => Open nvim configuration in a new tab!'
28 + -- Change behaviour of :terminal to be less like a vim buffer and more what I am used to
29 + map('t', '<ESC>', '<C-\\><C-n>')
30 + map('t', '<C-w>', '<ESC><C-w>')
32 + -- Clear highlighted search results whenever ESC is hit
33 + map('n', '<ESC>', ':nohlsearch<CR>', { unique = false, silent = true })
35 + map('n', '<LEADER>b', [[:Telescope buffers<CR>]])
36 + cheatsheet 'LEADER + b => Select a buffer'
37 + map('n', '<LEADER>f', [[:Telescope file_browser<CR>]])
38 + cheatsheet 'LEADER + f => Select a file'
39 + map('n', '<LEADER>e', [[:NvimTreeToggle<CR>]])
40 + cheatsheet 'LEADER + e => Toggle file explorer'
42 + --Open up a URL under the cursor
43 + local opener_program = ''
44 + if vim.fn.has("mac") == 1 then
45 + opener_program = 'open'
46 + elseif vim.fn.has("unix") == 1 then
47 + opener_program = 'xdg-open'
48 + elseif vim.fn.has('win32') == 1 then
49 + opener_program = 'explorer'
50 + else
51 + -- What should we do on unknown platforms? We guess...
52 + opener_program = 'firefox'
53 + end
54 + map('n', 'gx', [[<CMD>lua require'spawn'(']] .. opener_program .. [[',{ vim.fn.expand('<cfile>') } )<CR>]])
55 + cheatsheet'gx => Open URL under cursor'
56 +end

neovim/lua/lsp.lua

Added
new file mode 100644
1 +-- This function configures all the LSP clients that i might care about.
2 +-- It is expected to be called in the 'config' step of the 'lspconfig' plugin.
3 +return function()
4 + local integrate_into_neovim = function(client, buffer_number)
5 + print("LSP started.", vim.inspect(client), buffer_number);
6 + local chain_complete_list = {
7 + default = {
8 + {complete_items = {'lsp', 'snippet'}},
9 + {complete_items = {'path'}, triggered_only = {'/'}},
10 + {complete_items = {'buffers'}},
11 + },
12 + string = {
13 + {complete_items = {'path'}, triggered_only = {'/'}},
14 + },
15 + comment = {},
16 + }
17 + require'completion'.on_attach{
18 + sorting = 'length',
19 + enable_auto_popup = false,
20 + chain_complete_list = chain_complete_list
21 + }
23 + local map = function(type, key, value)
24 + vim.api.nvim_buf_set_keymap(buffer_number,type,key,value,{noremap = true, silent = true});
25 + end
26 + map('n','gD','<CMD>lua vim.lsp.buf.declaration()<CR>')
27 + map('n','gd','<CMD>lua vim.lsp.buf.definition()<CR>')
28 + map('n','K','<CMD>lua vim.lsp.buf.hover()<CR>')
29 + map('n','gr','<CMD>lua vim.lsp.buf.references()<CR>')
30 + map('n','gs','<CMD>lua vim.lsp.buf.signature_help()<CR>')
31 + map('n','gi','<CMD>lua vim.lsp.buf.implementation()<CR>')
32 + map('n','gt','<CMD>lua vim.lsp.buf.type_definition()<CR>')
33 + map('n','<LEADER>gw','<CMD>lua vim.lsp.buf.document_symbol()<CR>')
34 + map('n','<LEADER>gW','<CMD>lua vim.lsp.buf.workspace_symbol()<CR>')
35 + map('n','<LEADER>ah','<CMD>lua vim.lsp.buf.hover()<CR>')
36 + map('n','<LEADER>af','<CMD>lua vim.lsp.buf.code_action()<CR>')
37 + map('n','<LEADER>ar','<CMD>lua vim.lsp.buf.rename()<CR>')
38 + map('n','<LEADER>=', '<CMD>lua vim.lsp.buf.formatting()<CR>')
39 + map('n','<LEADER>ai','<CMD>lua vim.lsp.buf.incoming_calls()<CR>')
40 + map('n','<LEADER>ao','<CMD>lua vim.lsp.buf.outgoing_calls()<CR>')
42 + map('n','<LEADER>n','<CMD>lua vim.lsp.diagnostic.goto_next()<CR>')
43 + map('n','<LEADER>N','<CMD>lua vim.lsp.diagnostic.goto_prev()<CR>')
44 + map('n','<LEADER><LEADER>','<CMD>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>')
45 + end
47 + local lsp = require'lspconfig'
49 + -- Nvim lua configuration LSP
50 + local neovim_runtime_path = vim.split(package.path, ';')
51 + table.insert(neovim_runtime_path, 'lua/?.lua')
52 + table.insert(neovim_runtime_path, 'lua/?/init.lua')
53 + local sumneko_home = os.getenv'SUMNEKO_HOME'
54 + local system_name
55 + if vim.fn.has("mac") == 1 then
56 + system_name = "macOS"
57 + elseif vim.fn.has("unix") == 1 then
58 + system_name = "Linux"
59 + elseif vim.fn.has('win32') == 1 then
60 + system_name = "Windows"
61 + else
62 + print("Unsupported system for sumneko")
63 + end
64 + --TODO: How to switch this configuration based upon if we are editing neovim configuration or just any Lua file/project?
65 + lsp.sumneko_lua.setup {
66 + on_attach = integrate_into_neovim,
67 + cmd = { sumneko_home .. '/bin/' .. system_name .. '/lua-language-server','-E','-W', sumneko_home .. '/main.lua'},
68 + settings = {
69 + Lua = {
70 + runtime = {
71 + version = 'LuaJIT',
72 + path = neovim_runtime_path,
73 + },
74 + diagnostics = {
75 + enable = true,
76 + globals = { 'vim' },
77 + },
78 + hint = {
79 + enable = true,
80 + },
81 + workspace = {
82 + library = vim.api.nvim_get_runtime_file("", true),
83 + },
84 + telemetry = {
85 + enable = true,
86 + },
87 + globals = {
88 + 'cheatsheet',
89 + }
90 + }
91 + }
92 + }
93 + -- Markdown Notes (Zettelkasten) LSP
94 + lsp.zeta_note.setup{
95 + on_attach = integrate_into_neovim,
96 + cmd = { 'zeta-note' }
97 + }
99 + -- YAML LSP
100 + lsp.yamlls.setup{
101 + on_attach = integrate_into_neovim,
102 + --FIXME: Only works on Windows
103 + cmd = { 'yaml-language-server.cmd', '--stdio' },
104 + root_dir = function() return vim.fn.getcwd() end
107 + -- Zig LSP
108 + lsp.zls.setup{ on_attach = integrate_into_neovim }
110 + -- JSON LSP
111 + lsp.jsonls.setup {
112 + on_attach = integrate_into_neovim,
113 + cmd = { 'vscode-json-language-server.cmd', '--stdio' },
114 + commands = {
115 + Format = {
116 + -- Apply the ranged formatting to the whole file
117 + function()
118 + vim.lsp.buf.range_formatting({},{0,0},{vim.fn.line("$"),0})
119 + end
124 + -- GraphViz Dot LSP
125 + lsp.dotls.setup { on_attach = integrate_into_neovim }
126 +end

neovim/lua/plugins.lua

Added
new file mode 100644
1 +-- This module installs a plugin manager `packer`, that provides a
2 +-- convenient API over the nvim package feature.
3 +-- After installation, `packer` is configured to load all my favorite nvim plugins.
4 +-- The module plugins extends packer via a metatable that delegates all calls from plugin to packer.
5 +-- This way we can pretend that plugins do all the work and fine tune packer configuration.
6 +--
7 +-- autocommand:function => API to create vim autocmds
8 +-- data_path:string => root directory into which packer can be installed, if not already done
9 +-- non_interactive:boolean => wether to show a display when updating plugins or not. Typically set to true, when nvim is used for scripting.
10 +return function(autocommand, data_path, non_interactive)
11 + local plugin_package = 'plugins'
12 + -- packer will be loaded into the optionals folder and loaded later on demand by `packadd packer.nvim`
13 + -- glob will normalize the path with respect to path separators.
14 + -- mixing those seems to sometimes trip up packer, though the reason is unknown.
15 + local packer_installation_path = vim.fn.glob(
16 + data_path .. '/site/pack/' .. plugin_package .. '/opt/packer.nvim'
17 + )
18 + if vim.fn.empty(packer_installation_path) == 1 then
19 + vim.cmd(
20 + '!git clone https://github.com/wbthomason/packer.nvim "'
21 + .. packer_installation_path
22 + .. '"'
23 + )
24 + end
25 + local packer = nil
26 + local init = function()
27 + -- lazy init the loading and configuration of packer
28 + if packer == nil then
29 + packer = require 'packer'
30 + packer.init {
31 + -- Do not create vim commands, because we will create our own, that delegate to the plugins module
32 + disable_commands = true,
33 + plugin_package = plugin_package,
34 + display = {
35 + non_interactive = non_interactive,
36 + open_fn = require('packer.util').float,
37 + },
38 + profile = {
39 + enable = true,
40 + threshold = 1, -- the amount in ms that a plugins load time must be over for it to be included in the profile
41 + },
42 + }
43 + end
44 + autocommand{ compile_plugin_glue = 'BufWritePost plugins.lua PluginsCompile' }
45 + local use = packer.use
46 + -- reset packer in case we are reloading the whole configuration
47 + packer.reset()
49 + -- Packer can manage itself
50 + use { 'wbthomason/packer.nvim', opt = true }
51 + -- Closes brackets automatically upon hitting Enter
52 + use 'rstacruz/vim-closer'
53 + -- Nice file tree browser
54 + use {
55 + 'kyazdani42/nvim-tree.lua',
56 + requires = 'kyazdani42/nvim-web-devicons',
57 + config = function()
58 + vim.g.nvim_tree_side = 'left'
59 + vim.g.nvim_tree_width = 42
60 + vim.g.nvim_tree_auto_open = 1
61 + vim.g.nvim_tree_ignore_ft = {'cheatsheet'}
62 + end,
63 + }
64 + -- NVIM API for defining color schemes
65 + -- TODO: when profiling, this plugins loading times are high
66 + -- maybe the cause is that it loads a bunch of files
67 + -- should those be merged into one file?
68 + use {
69 + 'tjdevries/colorbuddy.vim',
70 + config = function()
71 + require'theme'(require'colorbuddy'.setup())
72 + end,
73 + }
74 + -- Advanced parsers for better syntax highlighting
75 + use {
76 + 'nvim-treesitter/nvim-treesitter',
77 + run = ':TSUpdateSync',
78 + config = function()
79 + require'nvim-treesitter.install'.compilers = {"clang"}
80 + require'nvim-treesitter.configs'.setup{
81 + ensure_installed = 'maintained',
82 + highlight = { enable = true },
83 + incremental_selection = { enable = true },
84 + indent = { enable = true },
85 + query_linter = { enable = true },
86 + }
87 + end,
88 + }
89 + use { 'nvim-treesitter/playground', run = ':TSInstall query' }
90 + -- Basic integration of ziglang
91 + use { 'ziglang/zig.vim', opt = true, ft = 'zig' }
92 + -- Move around the buffer with easy motions
93 + use 'phaazon/hop.nvim'
94 + -- Show the actual color of color codes and names
95 + -- #f00 => red
96 + -- #00ff00 => green
97 + -- Blue => blue
98 + --
99 + use {
100 + 'norcalli/nvim-colorizer.lua',
101 + config = function()
102 + require'colorizer'.setup()
103 + end,
105 + -- An attempt to clone magit
106 + use { 'TimUntersberger/neogit', opt= true, cmd = 'Neogit' }
107 + -- Fuzzy matcher
108 + use {
109 + 'nvim-telescope/telescope.nvim',
110 + requires = { 'nvim-lua/popup.nvim', 'nvim-lua/plenary.nvim' },
112 + -- Render markdown previews in the terminal
113 + use { 'npxbr/glow.nvim', opt = true, cmd = 'Glow' }
114 + -- Type :<number> to jump to line numbers
115 + use {
116 + 'nacro90/numb.nvim',
117 + config = function()
118 + require'numb'.setup{
119 + show_numbers = false,
120 + show_cursorline = true,
122 + end,
124 + -- Repository and API for configuring LSP servers in nvim
125 + use { 'neovim/nvim-lspconfig', config = function()
126 + require'lsp'()
127 + end}
128 + -- Utility functions to glue the status messages of LSP servers with the status line in nvim together
129 + use 'nvim-lua/lsp-status.nvim'
130 + -- Deeper integration of JDTLS from Eclipse with nvim
131 + -- DO NOT use simultanously with jdtls from lspconfig!
132 + -- TODO: integrate with nvim-dap debugger
133 + -- use { 'mfussenegger/nvim-jdtls', opt = true }
134 + -- Completions support, that integrates advanced nvim features (LSP+treesitter)
135 + use { 'nvim-lua/completion-nvim' }
136 + -- trim trailing whitespace on save
137 + use {
138 + 'cappyzawa/trim.nvim',
139 + config = function()
140 + require'trim'.setup{
141 + disable = {"markdown"}
143 + end,
145 + -- comment and uncomment lines
146 + use {
147 + 'b3nj5m1n/kommentary',
148 + config = function()
149 + cheatsheet'Use gcc to toggle line comment'
150 + end,
152 + -- smooth scrolling
153 + -- TODO: configure mappings to overide duration
154 + -- currently the scroll steps a pretty slow
155 + use {
156 + 'karb94/neoscroll.nvim',
157 + config = function()
158 + require('neoscroll').setup({
159 + -- All these keys will be mapped. Pass an empty table ({}) for no mappings
160 + mappings = {'<C-u>', '<C-d>', '<C-b>', '<C-f>', '<C-y>', '<C-e>', 'zt', 'zz', 'zb'},
161 + hide_cursor = true, -- Hide cursor while scrolling
162 + stop_eof = true, -- Stop at <EOF> when scrolling downwards
163 + respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file
164 + cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further
165 + easing_function = 'circular', -- Interpolation of scroll animation steps
166 + })
167 + end,
169 + -- fancy status line below
170 + use {
171 + 'hoob3rt/lualine.nvim',
172 + requires = { 'kyazdani42/nvim-web-devicons', opt = true },
173 + config = function()
174 + require'lualine'.setup{
175 + options = {
176 + theme = 'modus_vivendi',
177 + icons_enabled = true,
178 + extensions = { 'nvim-tree', 'quickfix' }
179 + },
180 + sections = { lualine_c = { "os.data('%a')", 'data', require'lsp-status'.status } }
182 + end,
184 + end
185 + -- the plugin module always delegates to packer, ensuring that at all times init configures packer correctly
186 + local plugins = setmetatable({}, {
187 + __index = function(_, key)
188 + init()
189 + return packer[key]
190 + end,
191 + })
192 + return plugins
193 +end

neovim/lua/spawn.lua

Added
new file mode 100644
1 +-- Fires a one-off process, that is intended to run some programm, independently of nvim.
2 +-- The process is opened asynchronously and detached from the nvim process.
3 +-- This is most useful for opening files or URLs, because no communication between nvim and the process is necessary.
4 +return function(program, arguments)
5 + local handle = vim.loop.spawn(
6 + program,
7 + {
8 + args = arguments,
9 + -- Detach process from nvim so it does not get killed, when nvim closes
10 + detached = true,
11 + -- On Windows, hide the console window
12 + hide = true,
13 + })
14 + if(handle) then
15 + -- Break the process from its parent child relationship
16 + vim.loop.unref(handle)
17 + --Closing the handle now should not kill the process but free the ressource
18 + vim.loop.close(handle)
19 + else
20 + error('Could not start "' .. program .. '" ' .. table.concat(arguments, ' ') .. '.')
21 + end
22 +end

neovim/lua/statusline.lua

Added
new file mode 100644
1 +return function() end

neovim/lua/syntax_stack.lua

Added
new file mode 100644
1 +-- Prints the highlight group name of the syntax element under the cursor.
2 +return function()
3 + local syntax_id = vim.fn.synID(vim.fn.line '.', vim.fn.col '.', 1)
4 + print(
5 + vim.fn.synIDattr(syntax_id, 'name')
6 + .. ' -> '
7 + .. vim.fn.synIDattr(vim.fn.synIDtrans(syntax_id), 'name')
8 + )
9 +end

neovim/lua/theme/diff_colors.lua

Added
new file mode 100644
1 +return function(Group, groups, colors, styles)
2 + Group.new('DiffAdd', colors.normal, colors.none, styles.NONE)
3 + Group.new('DiffChange', colors.normal, colors.none, styles.NONE)
4 + Group.new('DiffDelete', colors.normal, colors.none, styles.NONE)
5 + Group.new('DiffText', colors.normal, colors.none, styles.NONE)
6 +end

neovim/lua/theme/init.lua

Added
new file mode 100644
1 +return function(Color, colors, Group, groups, styles)
2 + -- TODO: manage background light and dark
3 + --
4 + -- let us first create some colors, that will later be mapped to highlight groups
5 + -- these will be saved in the `colors` table
6 + Color.new('important', '#e0e0e0')
7 + Color.new('normal', '#adadad')
8 + Color.new('minor', '#7c7c7c')
9 + Color.new('nonessential', '#4f4f4f')
11 + Color.new('error', '#e080a8')
12 + Color.new('warning', '#e0d996')
13 + Color.new('information', '#69cde0')
15 + Color.new('accent_strong', '#cfa1e6')
16 + Color.new('accent_weak', '#574461')
18 + Color.new('ui_normal', '#5e5e5e')
19 + Color.new('ui_important', '#78aba9')
20 + Color.new('ui_minor', '#547877')
22 + --intentionally ugly and easy to spot color, so that i can find out where it is used
23 + Color.new('debug', '#f111e1')
25 + require 'theme.terminal_colors'(Group, groups, colors, styles)
26 + require 'theme.nvim_editor_colors'(Group, groups, colors, styles)
27 + require 'theme.lsp_colors'(Group, groups, colors, styles)
28 + require 'theme.treesitter_colors'(Group, groups, colors, styles)
29 + require 'theme.java_colors'(Group, groups, colors, styles)
30 + require 'theme.lua_colors'(Group, groups, colors, styles)
31 + require 'theme.nvim_tree_colors'(Group, groups, colors, styles)
32 + require 'theme.diff_colors'(Group, groups, colors, styles)
33 +end

neovim/lua/theme/java_colors.lua

Added
new file mode 100644
1 +return function(Group, groups, colors, styles)
2 + Group.new('javaParen', colors.normal, colors.none, no)
3 + Group.new('javaOperator', colors.normal, colors.none, no)
4 + Group.new('javaVarArg', colors.normal, colors.none, no)
5 + Group.new('javaParen1', colors.normal, colors.none, no)
6 + Group.new('javaParen2', colors.normal, colors.none, no)
7 + Group.new('javaParen3', colors.normal, colors.none, no)
8 + Group.new('javaParen4', colors.normal, colors.none, no)
9 + Group.new('javaParen5', colors.normal, colors.none, no)
10 + Group.new('javaAnnotation', colors.normal, colors.none, no)
11 + Group.new('javaDocTags', colors.normal, colors.none, no)
12 + Group.new(
13 + 'javaCommentTitle',
14 + colors.important,
15 + colors.none,
16 + styles.bold + styles.underline
17 + )
18 +end

neovim/lua/theme/lsp_colors.lua

Added
new file mode 100644
1 +return function(Group, groups, colors, styles)
2 + Group.new(
3 + 'LspDiagnosticsVirtualTextHint',
4 + colors.normal,
5 + colors.none,
6 + styles.NONE
7 + )
8 + Group.new(
9 + 'LspDiagnosticsSignWarning',
10 + colors.normal,
11 + colors.none,
12 + styles.NONE
13 + )
14 + Group.new(
15 + 'LspDiagnosticsSignInformation',
16 + colors.normal,
17 + colors.none,
18 + styles.NONE
19 + )
20 + Group.new('LspDiagnosticsSignHint', colors.normal, colors.none, styles.NONE)
21 + Group.new(
22 + 'LspDiagnosticsFloatingHint',
23 + colors.normal,
24 + colors.none,
25 + styles.underline
26 + )
27 + Group.new('LspDiagnosticsSignError', colors.normal, colors.none, styles.NONE)
28 + Group.new(
29 + 'LspDiagnosticsDefaultWarning',
30 + colors.normal,
31 + colors.none,
32 + styles.NONE
33 + )
34 + Group.new(
35 + 'LspDiagnosticsDefaultError',
36 + colors.normal,
37 + colors.none,
38 + styles.NONE
39 + )
40 + Group.new(
41 + 'LspDiagnosticsFloatingError',
42 + colors.normal,
43 + colors.none,
44 + styles.underline
45 + )
46 + Group.new(
47 + 'LspDiagnosticsFloatingWarning',
48 + colors.normal,
49 + colors.none,
50 + styles.underline
51 + )
52 + Group.new(
53 + 'LspDiagnosticsFloatingInformation',
54 + colors.normal,
55 + colors.none,
56 + styles.underline
57 + )
58 + Group.new(
59 + 'LspDiagnosticsUnderlineInformation',
60 + colors.normal,
61 + colors.none,
62 + styles.underline
63 + )
64 + Group.new(
65 + 'LspDiagnosticsUnderlineHint',
66 + colors.normal,
67 + colors.none,
68 + styles.underline
69 + )
70 + Group.new(
71 + 'LspDiagnosticsDefaultInformation',
72 + colors.normal,
73 + colors.none,
74 + styles.NONE
75 + )
76 + Group.new(
77 + 'LspDiagnosticsDefaultHint',
78 + colors.normal,
79 + colors.none,
80 + styles.NONE
81 + )
82 + Group.new(
83 + 'LspDiagnosticsUnderlineError',
84 + colors.normal,
85 + colors.none,
86 + styles.underline
87 + )
88 + Group.new(
89 + 'LspDiagnosticsVirtualTextError',
90 + colors.normal,
91 + colors.none,
92 + styles.NONE
93 + )
94 + Group.new(
95 + 'LspDiagnosticsVirtualTextWarning',
96 + colors.normal,
97 + colors.none,
98 + styles.NONE
99 + )
100 + Group.new(
101 + 'LspDiagnosticsVirtualTextInformation',
102 + colors.normal,
103 + colors.none,
104 + styles.NONE
106 + Group.new(
107 + 'LspDiagnosticsUnderlineWarning',
108 + colors.normal,
109 + colors.none,
110 + styles.underline
112 +end

neovim/lua/theme/lua_colors.lua

Added
new file mode 100644
1 +return function(Group, groups, colors, styles)
2 + Group.new('luaFunction', colors.normal, colors.none, styles.NONE)
3 + Group.new('luaTable', colors.normal, colors.none, styles.NONE)
4 + Group.new('luaIn', colors.normal, colors.none, styles.NONE)
5 + Group.new('luastatement', colors.normal, colors.none, styles.NONE)
6 +end

neovim/lua/theme/nvim_editor_colors.lua

Added
new file mode 100644
1 +return function(Group, groups, colors, styles)
2 + -- SYNTAX
3 + Group.new('Normal', colors.normal, colors.none, styles.NONE)
4 + Group.new('NormalNC', colors.minor, colors.none, styles.NONE)
5 + Group.new('NormalFloat', colors.important, colors.none, styles.NONE)
7 + Group.new(
8 + 'Comment',
9 + colors.important,
10 + colors.none,
11 + styles.bold + styles.italic
12 + )
14 + Group.new('Constant', colors.debug, colors.none, styles.NONE)
15 + Group.new('String', colors.normal, colors.none, styles.bold + styles.italic)
16 + Group.new('Character', groups.String, groups.String, groups.String)
17 + Group.new('Number', groups.String, groups.String, groups.String)
18 + Group.new('Float', groups.String, groups.String, groups.String)
19 + Group.new('Boolean', groups.String, groups.String, groups.String)
21 + Group.new('Identifier', colors.normal, colors.none, styles.none)
22 + Group.new('Function', groups.Identifier, groups.Identifier, groups.Identifier)
24 + Group.new('Statement', colors.minor, colors.none, styles.italic)
25 + Group.new('Conditional', groups.Statement, groups.Statement, groups.Statement)
26 + Group.new('Repeat', groups.Statement, groups.Statement, groups.Statement)
27 + Group.new(
28 + 'Label',
29 + groups.Statement,
30 + groups.Statement,
31 + groups.Statement + styles.underline
32 + )
33 + Group.new('Operator', groups.Statement, groups.Statement, groups.Statement)
34 + Group.new('Keyword', groups.Statement, groups.Statement, groups.Statement)
35 + Group.new('Exception', groups.Statement, groups.Statement, groups.Statement)
37 + Group.new('PreProc', groups.Statement, groups.Statement, groups.Statement)
38 + Group.new('Include', groups.PreProc, groups.PreProc, groups.PreProc)
39 + Group.new('Define', groups.PreProc, groups.PreProc, groups.PreProc)
40 + Group.new('Macro', groups.PreProc, groups.PreProc, groups.PreProc)
41 + Group.new('PreCondit', groups.PreProc, groups.PreProc, groups.PreProc)
43 + Group.new('Type', colors.normal, colors.none, styles.bold)
44 + Group.new(
45 + 'StorageClass',
46 + groups.Statement,
47 + groups.Statement,
48 + groups.Statement
49 + )
50 + Group.new('Structure', groups.Statement, groups.Statement, groups.Statement)
51 + Group.new('Typedef', groups.Type, groups.Type, groups.Type)
53 + Group.new('Special', colors.minor, colors.none, styles.NONE)
54 + Group.new('SpecialKey', colors.normal, colors.none, styles.italic)
55 + Group.new('SpecialComment', colors.accent_strong, colors.none, styles.bold)
56 + Group.new('Tag', groups.Special, groups.Special, groups.Special)
57 + Group.new('Delimiter', groups.Special, groups.Special, groups.Special)
58 + Group.new('Debug', groups.Special, groups.Special, groups.Special)
60 + Group.new('Underlined', colors.accent_strong, colors.none, styles.underline)
61 + Group.new('Ignore', colors.debug, colors.none, styles.NONE)
62 + Group.new('Error', colors.error, colors.none, styles.bold + styles.underline)
63 + Group.new(
64 + 'Todo',
65 + colors.accent_strong,
66 + colors.none,
67 + styles.bold + styles.underline
68 + )
70 + Group.new('Whitespace', colors.nonessential, colors.none, styles.NONE)
71 + Group.new('NonText', colors.debug, colors.none, styles.NONE)
73 + -- NVIM UI
74 + Group.new(
75 + 'NvimInternalError',
76 + colors.error,
77 + colors.none,
78 + styles.bold + styles.underline
79 + )
80 + Group.new('ErrorMsg', colors.error, colors.none, styles.bold)
81 + Group.new('WarningMsg', colors.warning, colors.none, styles.bold)
82 + Group.new('MoreMsg', colors.information, colors.none, styles.NONE)
83 + Group.new('ModeMsg', colors.information, colors.none, styles.NONE)
84 + Group.new('Question', colors.information, colors.none, styles.bold)
85 + Group.new('MsgSeparator', colors.ui_minor, colors.none, styles.NONE)
86 + Group.new('MsgArea', colors.ui_normal, colors.none, styles.NONE)
88 + Group.new('EndOfBuffer', colors.nonessential, colors.none, styles.NONE)
89 + Group.new('LineNr', colors.nonessential, colors.none, styles.NONE)
90 + Group.new('CursorLineNr', colors.ui_normal, colors.none, styles.NONE)
91 + Group.new('CursorColumn', colors.none, colors.none, styles.inverse)
92 + Group.new('CursorLine', colors.none, colors.accent_weak, styles.NONE)
93 + Group.new('TermCursor', colors.none, colors.none, styles.inverse)
94 + Group.new('TermCursorNC', colors.none, colors.none, styles.NONE)
95 + Group.new('Cursor', colors.none, colors.none, styles.reverse)
96 + Group.new('lCursor', groups.Cursor, groups.Cursor, groups.Cursor)
97 + Group.new('ColorColumn', colors.none, colors.ui_normal, styles.NONE)
98 + Group.new('Visual', colors.accent_strong, colors.none, styles.NONE)
99 + Group.new('VisualNC', colors.accent_weak, colors.none, styles.NONE)
100 + Group.new('Conceal', colors.debug, colors.none, styles.NONE)
101 + Group.new('Substitute', colors.information, colors.none, styles.NONE)
102 + Group.new('MatchParen', colors.accent_strong, colors.none, styles.bold)
104 + Group.new('Directory', colors.normal, colors.none, styles.bold)
105 + Group.new(
106 + 'Title',
107 + colors.ui_normal,
108 + colors.none,
109 + styles.bold + styles.underline
112 + Group.new('IncSearch', colors.ui_important, colors.none, styles.underline)
113 + Group.new('Search', colors.important, colors.ui_important, styles.NONE)
114 + Group.new('VertSplit', colors.ui_normal, colors.none, styles.NONE)
115 + Group.new('WildMenu', colors.ui_normal, colors.none, styles.NONE)
116 + Group.new('Folded', colors.nonessential, colors.none, styles.NONE)
117 + Group.new('FoldColumn', colors.ui_normal, colors.none, styles.NONE)
118 + Group.new('SignColumn', colors.ui_normal, colors.none, styles.NONE)
119 + Group.new('StatusLine', colors.nonessential, colors.none, styles.NONE)
120 + Group.new('StatusLineNC', colors.none, colors.none, styles.NONE)
121 + Group.new('Pmenu', colors.ui_normal, colors.none, styles.NONE)
122 + Group.new('PmenuSel', colors.ui_important, colors.none, styles.underline)
123 + Group.new('PmenuSbar', colors.ui_minor, colors.none, styles.NONE)
124 + Group.new('PmenuThumb', colors.ui_important, colors.none, styles.NONE)
125 + Group.new('TabLine', colors.ui_normal, colors.none, styles.none)
126 + Group.new(
127 + 'TabLineSel',
128 + colors.ui_important,
129 + colors.none,
130 + styles.bold + styles.underline
132 + Group.new('TabLineFill', colors.ui_minor, colors.none, styles.NONE)
133 + Group.new('QuickFixLine', colors.ui_normal, colors.none, styles.NONE)
135 + Group.new('SpellBad', colors.warning, colors.none, styles.undercurl)
136 + Group.new('SpellCap', colors.debug, colors.none, styles.NONE)
137 + Group.new('SpellRare', colors.debug, colors.none, styles.NONE)
138 + Group.new('SpellLocal', colors.debug, colors.none, styles.NONE)
140 + Group.new('RedrawDebugNormal', colors.debug, colors.none, styles.NONE)
141 + Group.new('RedrawDebugClear', colors.debug, colors.none, styles.NONE)
142 + Group.new('RedrawDebugComposed', colors.debug, colors.none, styles.NONE)
143 + Group.new('RedrawDebugRecompose', colors.debug, colors.none, styles.NONE)
144 +end

neovim/lua/theme/nvim_tree_colors.lua

Added
new file mode 100644
1 +return function(Group, groups, colors, styles)
2 + Group.new('NvimTreeFolderName', colors.normal, colors.none, styles.NONE)
3 + Group.new('NvimTreeFolderIcon', colors.normal, colors.none, styles.NONE)
4 + Group.new('NvimTreeExecFile', colors.normal, colors.none, styles.NONE)
5 + Group.new('NvimTreeImageFile', colors.normal, colors.none, styles.NONE)
6 + Group.new('NvimTreeEmptyFolderName', colors.normal, colors.none, styles.NONE)
7 + Group.new('NvimTreeIndentMarker', colors.normal, colors.none, styles.NONE)
8 +end

neovim/lua/theme/terminal_colors.lua

Added
new file mode 100644
1 +return function(...)
2 + vim.g.terminal_color_0 = '#555555'
3 + vim.g.terminal_color_1 = '#FB467B'
4 + vim.g.terminal_color_2 = '#B8EE92'
5 + vim.g.terminal_color_3 = '#FFCC00'
6 + vim.g.terminal_color_4 = '#56D6D6'
7 + vim.g.terminal_color_5 = '#B954B8'
8 + vim.g.terminal_color_6 = '#00D5A7'
9 + vim.g.terminal_color_7 = '#CED5E5'
10 + vim.g.terminal_color_8 = '5555555'
11 + vim.g.terminal_color_9 = '#FB467B'
12 + vim.g.terminal_color_10 = '#B8EE92'
13 + vim.g.terminal_color_11 = '#FFCC00'
14 + vim.g.terminal_color_12 = '#56D6D6'
15 + vim.g.terminal_color_13 = '#B954B8'
16 + vim.g.terminal_color_14 = '#00D5A7'
17 + vim.g.terminal_color_15 = '#CED5E5'
18 +end

neovim/lua/theme/treesitter_colors.lua

Added
new file mode 100644
1 +return function(Group, groups, colors, styles)
2 + Group.new('TSFloat', groups.Float, groups.Float, groups.Float)
3 + Group.new('TSFunction', groups.Function, groups.Function, groups.Function)
4 + Group.new('TSType', groups.Type, groups.Type, groups.Type)
5 + Group.new('TSTypeBuiltin', groups.Type, groups.Type, groups.Type)
6 + Group.new('TSLabel', groups.Label, groups.Label, groups.Label)
7 + Group.new('TSCharacter', groups.Character, groups.Character, groups.Character)
8 + Group.new(
9 + 'TSConditional',
10 + groups.Conditional,
11 + groups.Conditional,
12 + groups.Conditional
13 + )
14 + Group.new('TSConstant', groups.Constant, groups.Constant, groups.Constant)
15 + Group.new('TSConstBuiltin', groups.Constant, groups.Constant, groups.Constant)
16 + Group.new('TSConstMacro', groups.Constant, groups.Constant, groups.Constant)
17 + Group.new('TSFuncBuiltin', groups.Function, groups.Function, groups.Function)
18 + Group.new('TSMethod', groups.Function, groups.Function, groups.Function)
19 + Group.new('TSStructure', groups.Structure, groups.Structure, groups.Structure)
20 + Group.new(
21 + 'TSTagDelimiter',
22 + groups.Delimiter,
23 + groups.Delimiter,
24 + groups.Delimiter
25 + )
26 + Group.new('TSNumber', groups.Number, groups.Number, groups.Number)
27 + Group.new('TSFuncMacro', groups.Function, groups.Function, groups.Function)
28 + Group.new('TSInclude', groups.Include, groups.Include, groups.Include)
29 + Group.new('TSKeyword', groups.Keyword, groups.Keyword, groups.Keyword)
30 + Group.new('TSException', groups.Exception, groups.Exception, groups.Exception)
31 + Group.new('TSBoolean', groups.Boolean, groups.Boolean, groups.Boolean)
32 + Group.new('TSError', groups.Error, groups.Error, groups.Error)
33 + Group.new('TSString', groups.String, groups.String, groups.String)
34 + Group.new('TSStringEscape', colors.normal, colors.none, styles.NONE)
35 + Group.new('TSStringRegex', colors.normal, colors.none, styles.NONE)
36 + Group.new('TSField', colors.normal, colors.none, styles.NONE)
37 + Group.new('TSParameter', colors.normal, colors.none, styles.NONE)
38 + Group.new('TSVariable', colors.normal, colors.none, styles.bold)
39 + Group.new('TSPunctBracket', colors.normal, colors.none, styles.NONE)
40 + Group.new('TSOperator', colors.normal, colors.none, styles.NONE)
41 + Group.new('TSProperty', colors.normal, colors.none, styles.NONE)
42 +end