mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
3 commits
f5586af58c
...
7fb0e122db
Author | SHA1 | Date | |
---|---|---|---|
|
7fb0e122db | ||
|
2f7a6eaf62 | ||
|
2bc37c16b3 |
4 changed files with 33 additions and 13 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit fbe9dab3e36f272c910143dd72bf4e8ae4c627df
|
Subproject commit bf96e553764e3a166286f5a6a8017e01dadcf6f9
|
|
@ -8,12 +8,11 @@ vim.g.loaded_airline = 1
|
||||||
-- \ }
|
-- \ }
|
||||||
|
|
||||||
-- Enable the clearly superior mode.
|
-- Enable the clearly superior mode.
|
||||||
vim.g.vim_ide = 1
|
|
||||||
vim.g.dotfiles_build_coc_from_source = 1
|
vim.g.dotfiles_build_coc_from_source = 1
|
||||||
|
|
||||||
-- Small plugin configs
|
-- Small plugin configs
|
||||||
vim.g.dashboard_default_executive ='fzf'
|
vim.g.dashboard_default_executive ='fzf'
|
||||||
|
|
||||||
-- Styling
|
-- Styling
|
||||||
vim.g.termguicolors = 1
|
vim.o.termguicolors = true
|
||||||
vim.g.airline_powerline_fonts = 1
|
vim.g.airline_powerline_fonts = 1
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
let g:k_nvim_dotfiles_dir = expand('<sfile>:p:h')
|
let g:k_nvim_dotfiles_dir = expand('<sfile>:p:h')
|
||||||
let g:k_dotfiles_dir = expand('<sfile>:p:h:h')
|
let g:k_dotfiles_dir = expand('<sfile>:p:h:h')
|
||||||
let &runtimepath = g:k_nvim_dotfiles_dir.','.&runtimepath.','.g:k_nvim_dotfiles_dir.'/after'
|
let &runtimepath = g:k_nvim_dotfiles_dir.','.&runtimepath.','.g:k_nvim_dotfiles_dir.'/after'
|
||||||
|
|
||||||
|
let g:vim_ide = 1
|
||||||
|
|
||||||
source <sfile>:p:h/../dmitmel-dotfiles/nvim/init.vim
|
source <sfile>:p:h/../dmitmel-dotfiles/nvim/init.vim
|
||||||
luafile <sfile>:p:h/init.lua
|
luafile <sfile>:p:h/init.lua
|
||||||
|
|
|
@ -1,23 +1,41 @@
|
||||||
local dotfiles_gruv = require'lualine.themes.gruvbox'
|
local dotfiles_gruv = require'lualine.themes.gruvbox'
|
||||||
local colors = vim.g.dotfiles_colorscheme_base16_colors
|
local theme = require'dotfiles.colorscheme'
|
||||||
|
|
||||||
|
-- https://github.com/dmitmel/dotfiles/commit/bf96e553764e3a166286f5a6a8017e01dadcf6f9
|
||||||
|
-- https://ptb.discord.com/channels/382339402338402315/382339402338402317/885864846892077086
|
||||||
|
function get_color(index)
|
||||||
|
local color = theme.base16_colors[index]
|
||||||
|
local r, g, b = unpack(color, 1, 3)
|
||||||
|
return string.format('#%02x%02x%02x', r, g, b)
|
||||||
|
end
|
||||||
|
|
||||||
-- Structure of themes is as follows:
|
-- Structure of themes is as follows:
|
||||||
-- a: Outer components, such as `NORMAL` text and line counts
|
-- a: Outer components, such as `NORMAL` text and line counts
|
||||||
-- b: secondary components, such git branch info
|
-- b: secondary components, such git branch info
|
||||||
-- c: Middle components, basically everything in the middle
|
-- c: Middle components, basically everything in the middle
|
||||||
|
|
||||||
dotfiles_gruv.normal.a.bg = colors[12].gui
|
dotfiles_gruv.normal.a.bg = get_color(12)
|
||||||
|
|
||||||
dotfiles_gruv.insert.a.bg = colors[14].gui
|
dotfiles_gruv.insert.a.bg = get_color(14)
|
||||||
dotfiles_gruv.insert.c.bg = colors[2].gui
|
dotfiles_gruv.insert.c.bg = get_color(2)
|
||||||
|
|
||||||
dotfiles_gruv.visual.a.bg = colors[15].gui
|
dotfiles_gruv.visual.a.bg = get_color(15)
|
||||||
dotfiles_gruv.visual.c.bg = colors[2].gui
|
dotfiles_gruv.visual.c.bg = get_color(2)
|
||||||
dotfiles_gruv.visual.c.fg = colors[7].gui
|
dotfiles_gruv.visual.c.fg = get_color(7)
|
||||||
|
|
||||||
dotfiles_gruv.command.a.bg = colors[16].gui
|
dotfiles_gruv.command.a.bg = get_color(16)
|
||||||
dotfiles_gruv.command.c.bg = colors[2].gui
|
dotfiles_gruv.command.c.bg = get_color(2)
|
||||||
dotfiles_gruv.command.c.fg = colors[7].gui
|
dotfiles_gruv.command.c.fg = get_color(7)
|
||||||
|
|
||||||
|
dotfiles_gruv.replace.a.bg = get_color(9)
|
||||||
|
dotfiles_gruv.replace.c.bg = get_color(2)
|
||||||
|
|
||||||
|
-- Displays the currently selected Arduino board
|
||||||
|
local function showBoard()
|
||||||
|
if vim.g.arduino_board then
|
||||||
|
return '[' .. vim.g.arduino_board .. ']'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
require('lualine').setup{
|
require('lualine').setup{
|
||||||
options = {
|
options = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue