From ed876aa4b78bb2256410a8a860bef83d8c941706 Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 5 Sep 2024 09:29:10 +0200 Subject: [PATCH] addet slimline and also addet neovide configurations. Also changed the colorscheme --- init.lua | 2 +- lua/pika/core/options.lua | 7 ++++ lua/pika/plugins/colorschemes.lua | 7 ++-- lua/pika/plugins/slimline.lua | 64 +++++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+), 5 deletions(-) create mode 100644 lua/pika/plugins/slimline.lua diff --git a/init.lua b/init.lua index f63a3e4..4efc920 100644 --- a/init.lua +++ b/init.lua @@ -6,4 +6,4 @@ require("pika.lazy") -- │ themes are under ./lua/pika/plugins/colorschemes.lua │ -- ╰──────────────────────────────────────────────────────╯ -vim.cmd.colorscheme("cyberdream") +vim.cmd.colorscheme("zephyr") diff --git a/lua/pika/core/options.lua b/lua/pika/core/options.lua index 10e404f..53700a9 100644 --- a/lua/pika/core/options.lua +++ b/lua/pika/core/options.lua @@ -68,3 +68,10 @@ vim.cmd([[ autocmd VimLeave * set guicursor=a:ver25 augroup END ]]) + +if vim.g.neovide then + vim.g.neovide_transparency = 1.0 + vim.g.neovide_theme = "auto" + vim.g.neovide_refresh_rate = 90 + vim.g.neovide_cursor_vfx_mode = "torpedo" +end diff --git a/lua/pika/plugins/colorschemes.lua b/lua/pika/plugins/colorschemes.lua index 0a4ce3a..0543597 100644 --- a/lua/pika/plugins/colorschemes.lua +++ b/lua/pika/plugins/colorschemes.lua @@ -5,6 +5,9 @@ return { { "AlexvZyl/nordic.nvim" }, { "eldritch-theme/eldritch.nvim" }, { "sainnhe/sonokai" }, + { "samharju/synthweave.nvim" }, + { "glepnir/zephyr-nvim" }, + { "xero/miasma.nvim" }, { "scottmckendry/cyberdream.nvim", name = "cyberdream", @@ -15,10 +18,6 @@ return { terminal_colors = true, }, }, - { - "xero/miasma.nvim", - lazy = false, - }, { "ribru17/bamboo.nvim", config = function() diff --git a/lua/pika/plugins/slimline.lua b/lua/pika/plugins/slimline.lua new file mode 100644 index 0000000..07a16b0 --- /dev/null +++ b/lua/pika/plugins/slimline.lua @@ -0,0 +1,64 @@ +return { + -- Calls `require('slimline').setup({})` + "sschleemilch/slimline.nvim", + opts = { + bold = true, -- makes primary parts and mode bold + verbose_mode = false, -- Mode as single letter or as a word + style = "bg", -- or "fg". Whether highlights should be applied to bg or fg of components + mode_follow_style = true, -- Whether the mode color components should follow the style option + components = { -- Choose components and their location + left = { + "mode", + -- "path", + -- "git", + }, + center = { + "path", + "git", + }, + right = { + "diagnostics", + "filetype_lsp", + "progress", + }, + }, + spaces = { + components = " ", -- string between components + left = " ", -- string at the start of the line + right = " ", -- string at the end of the line + }, + sep = { + hide = { + first = false, -- hides the first separator + last = false, -- hides the last separator + }, + left = "", -- left separator of components + right = "", -- right separator of components + }, + hl = { + modes = { + normal = "Type", -- highlight base of modes + insert = "Function", + pending = "Boolean", + visual = "Keyword", + command = "String", + }, + base = "Comment", -- highlight of everything in in between components + primary = "Normal", -- highlight of primary parts (e.g. filename) + secondary = "Comment", -- highlight of secondary parts (e.g. filepath) + }, + icons = { + diagnostics = { + ERROR = " ", + WARN = " ", + HINT = " ", + INFO = " ", + }, + git = { + branch = "", + }, + folder = " ", + lines = " ", + }, + }, +}