change things to use tinty theme
This commit is contained in:
parent
9873905af2
commit
db5afcc9d9
8 changed files with 120 additions and 37 deletions
64
lua/config/generated.lua
Normal file
64
lua/config/generated.lua
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
-- Generated by Matugen
|
||||
|
||||
require('base16-colorscheme').setup({
|
||||
base00 = "#0b0e12",
|
||||
base01 = "#0b0e12",
|
||||
base02 = "#181c20",
|
||||
base03 = "#42474e",
|
||||
base04 = "#c2c7cf",
|
||||
base05 = "#e0e2e8",
|
||||
base06 = "#2d3135",
|
||||
base07 = "#36393e",
|
||||
|
||||
base08 = "#c8acdf",
|
||||
base09 = "#d4bee6",
|
||||
base0A = "#b9c8da",
|
||||
base0B = "#9dcbfb",
|
||||
base0C = "#504060",
|
||||
base0D = "#124a73",
|
||||
base0E = "#3a4857",
|
||||
base0F = "#98aec8",
|
||||
})
|
||||
|
||||
|
||||
-- We first theme base16, but we also need to fix some other colors that don't
|
||||
-- contrast well by default
|
||||
|
||||
-- Helper function to set multiple highlight groups at once
|
||||
local function set_hl_mutliple(groups, value)
|
||||
for _, v in pairs(groups) do
|
||||
vim.api.nvim_set_hl(0, v, value)
|
||||
end
|
||||
end
|
||||
|
||||
-- Make selected text stand out more
|
||||
vim.api.nvim_set_hl(0, 'Visual', {
|
||||
bg = '#124a73',
|
||||
fg = '#cfe5ff', -- normal text contrast
|
||||
})
|
||||
|
||||
-- Make "string" text contrast better
|
||||
set_hl_mutliple({ 'String', 'TSString' }, {
|
||||
fg = '#af87d1',
|
||||
})
|
||||
|
||||
-- Grey out comments
|
||||
set_hl_mutliple({ 'TSComment', 'Comment' }, {
|
||||
fg = '#8c9199',
|
||||
italic = true,
|
||||
})
|
||||
|
||||
-- Color in other highlight groups as you see fit!
|
||||
|
||||
set_hl_mutliple({ 'TSMethod', 'Method' }, {
|
||||
fg = '#d4bee6',
|
||||
})
|
||||
|
||||
|
||||
set_hl_mutliple({ 'TSFunction', 'Function' }, {
|
||||
fg = '#b9c8da',
|
||||
})
|
||||
|
||||
set_hl_mutliple({ 'Keyword', 'TSKeyword', 'TSKeywordFunction', 'TSRepeat' }, {
|
||||
fg = '#31628d',
|
||||
})
|
||||
|
|
@ -18,24 +18,6 @@ vim.opt.rtp:prepend(lazypath)
|
|||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
local opt = vim.opt
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
opt.cursorline = true
|
||||
opt.termguicolors = true
|
||||
opt.winborder = "single"
|
||||
opt.signcolumn = "yes"
|
||||
vim.lsp.inlay_hint.enable = true
|
||||
opt.tabstop = 8
|
||||
opt.shiftwidth = 8
|
||||
vim.diagnostic.config({
|
||||
virtual_text = {
|
||||
spacing = 2,
|
||||
source = true,
|
||||
},
|
||||
})
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
local opt = vim.opt
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ return {
|
|||
opts = {
|
||||
display = {
|
||||
theme = "atom",
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,8 +106,6 @@ return {
|
|||
},
|
||||
},
|
||||
notifier = { enabled = true },
|
||||
indent = { enabled = true },
|
||||
picker = { enabled = true },
|
||||
statuscolumn = { enabled = true },
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -8,16 +8,12 @@ return {
|
|||
},
|
||||
opts = {},
|
||||
},
|
||||
{ "RRethy/base16-nvim" },
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
local has_lualine, lualine = pcall(require, "lualine")
|
||||
if not has_lualine then
|
||||
return
|
||||
end
|
||||
require("lualine").setup({
|
||||
theme = "base16",
|
||||
options = {
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
|
|
@ -45,6 +41,10 @@ return {
|
|||
border = "rounded",
|
||||
},
|
||||
symbol_in_winbar = { enable = true },
|
||||
lightbulb = {
|
||||
enable = true,
|
||||
sign = false,
|
||||
},
|
||||
hover = {
|
||||
max_width = 0.6,
|
||||
open_link = "gx",
|
||||
|
|
|
|||
Loading…
Reference in a new issue