summaryrefslogtreecommitdiff
path: root/lua/style.lua
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-11-02 19:36:56 +0100
committerHampusM <hampus@hampusmat.com>2024-11-02 19:36:56 +0100
commitd8a0eaca728ef5bf8485a2a321988f05dd79cb7b (patch)
tree8e3a59ecb6b2a9abc990f38827c60aeb4c601ba0 /lua/style.lua
parentb07e45bbeb4a13a3126dcfb659a196df781d9c3b (diff)
move things away from style.lua
Diffstat (limited to 'lua/style.lua')
-rw-r--r--lua/style.lua108
1 files changed, 0 insertions, 108 deletions
diff --git a/lua/style.lua b/lua/style.lua
deleted file mode 100644
index 365ea9a..0000000
--- a/lua/style.lua
+++ /dev/null
@@ -1,108 +0,0 @@
-vim.o.background = "dark"
-
-local ayu_colors = require('ayu.colors')
-
-ayu_colors.generate()
-
-ayu_colors.entity = "#3EB8FF"
-ayu_colors.tag = ayu_colors.fg
-
--- The colors should not be regenerated
-require("ayu.colors").generate = function() end
-
-require('ayu').setup({
- overrides = {
- WinSeparator = { fg = ayu_colors.comment, bg = ayu_colors.bg },
- LineNrAbove = { fg = ayu_colors.comment },
- LineNrBelow = { fg = ayu_colors.comment },
- LineNr = { fg = ayu_colors.accent },
- TerminalWindow = { fg = ayu_colors.fg, bg = ayu_colors.panel_bg },
- ColorColumn = { bg = ayu_colors.error },
- }
-})
-
-vim.cmd("colorscheme ayu-dark")
-
-local ayu_dark_lualine_theme = require'lualine.themes.ayu_dark'
-
-require('lualine').setup({
- options = {
- theme = ayu_dark_lualine_theme,
- globalstatus = true,
- },
-})
-
-local bufferline = require("bufferline")
-
-local selected_buffer_bg = "#1E2126"
-
-bufferline.setup {
- options = {
- style_preset = bufferline.style_preset.no_italic,
- show_buffer_close_icons = false,
- show_close_icon = false,
- indicator = {
- style = "none"
- },
- diagnostics = "coc",
- },
- highlights = {
- buffer_selected = {
- bg = selected_buffer_bg
- },
- buffer_visible = {
- bg = selected_buffer_bg
- },
- diagnostic_selected = {
- bg = selected_buffer_bg
- },
- hint_selected = {
- bg = selected_buffer_bg
- },
- info_selected = {
- bg = selected_buffer_bg
- },
- warning_selected = {
- bg = selected_buffer_bg
- },
- error_selected = {
- bg = selected_buffer_bg
- },
- indicator_selected = {
- fg = ayu_colors.accent
- }
- }
-}
-
-local highlight = {
- "RainbowRed",
- "RainbowYellow",
- "RainbowBlue",
- "RainbowOrange",
- "RainbowGreen",
- "RainbowViolet",
- "RainbowCyan",
-}
-
-local hooks = require "ibl.hooks"
-
--- create the highlight groups in the highlight setup hook, so they are reset
--- every time the colorscheme changes
-hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
- vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
- vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
- vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
- vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
- vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
- vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
- vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
-end)
-
-vim.g.rainbow_delimiters = { highlight = highlight }
-
-require("ibl").setup {
- indent = { char = '¦' },
- scope = { highlight = highlight, show_start = false, show_exact_scope = false }
-}
-
-hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)