From 8c61adf486db5234535a3c087c31b2315b5e02a9 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 9 May 2024 02:48:12 +0545 Subject: [PATCH] . --- lua/plugins/lazy.lua | 2 +- lua/plugins/list.lua | 4 +-- lua/plugins/ui/dracula.lua | 69 -------------------------------------- lua/plugins/ui/onedark.lua | 43 ++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 72 deletions(-) delete mode 100644 lua/plugins/ui/dracula.lua create mode 100644 lua/plugins/ui/onedark.lua diff --git a/lua/plugins/lazy.lua b/lua/plugins/lazy.lua index db4a45b..fb69861 100644 --- a/lua/plugins/lazy.lua +++ b/lua/plugins/lazy.lua @@ -26,7 +26,7 @@ lazy.setup({ lockfile = vim.fn.stdpath('config') .. '/lua/plugins/lock.json', concurrency = 8, dev = { path = '~/Projects/GitHub/', patterns = {}, fallback = false }, - install = { missing = true, colorscheme = { 'dracula' } }, + install = { missing = true, colorscheme = { 'onedark' } }, git = { log = { '--since=3 days ago' }, diff --git a/lua/plugins/list.lua b/lua/plugins/list.lua index 327ec6a..927f62f 100644 --- a/lua/plugins/list.lua +++ b/lua/plugins/list.lua @@ -7,8 +7,8 @@ end local plugins = { -- UI { - 'Mofiqul/dracula.nvim', - config = load_config('ui.dracula'), + 'navarasu/onedark.nvim', + config = load_config('ui.onedark'), lazy = false, priority = 1000, }, diff --git a/lua/plugins/ui/dracula.lua b/lua/plugins/ui/dracula.lua deleted file mode 100644 index 2eeb2b7..0000000 --- a/lua/plugins/ui/dracula.lua +++ /dev/null @@ -1,69 +0,0 @@ -local dracula = require("dracula") - -dracula.setup({ - colors = { - bg = "#282A36", - fg = "#F8F8F2", - selection = "#44475A", - comment = "#6272A4", - red = "#FF5555", - orange = "#FFB86C", - yellow = "#F1FA8C", - green = "#50fa7b", - purple = "#BD93F9", - cyan = "#8BE9FD", - pink = "#FF79C6", - bright_red = "#FF6E6E", - bright_green = "#69FF94", - bright_yellow = "#FFFFA5", - bright_blue = "#D6ACFF", - bright_magenta = "#FF92DF", - bright_cyan = "#A4FFFF", - bright_white = "#FFFFFF", - menu = "#21222C", - visual = "#3E4452", - gutter_fg = "#4B5263", - nontext = "#3B4048", - }, - -- show the '~' characters after the end of buffers - show_end_of_buffer = true, -- default false - -- use transparent background - transparent_bg = true, -- default false - -- set custom lualine background color - lualine_bg_color = "#44475a", -- default nil - -- set italic comment - italic_comment = true, -- default false - -- overrides the default highlights see `:h synIDattr` - overrides = { - PmenuSel = {link = "lualine_a_insert"}, - TelescopeSelection = {link = "lualine_a_insert"}, - BufferTabpages = {link = "lualine_a_visual"} - -- Nothing = {} -- clear highlight of Nothing - }, - - integrations = { - cmp = true, - fidget = true, - gitsigns = true, - harpoon = true, - indent_blankline = { - enabled = false, - colored_indent_levels = false, - }, - mason = true, - native_lsp = { enabled = true }, - noice = true, - notify = true, - symbols_outline = true, - telescope = true, - treesitter = true, - treesitter_context = true, - }, - }) - - vim.cmd.colorscheme("dracula") - - -- Hide all semantic highlights until upstream issues are resolved (https://github.com/catppuccin/nvim/issues/480) - for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do - vim.api.nvim_set_hl(0, group, {}) - end diff --git a/lua/plugins/ui/onedark.lua b/lua/plugins/ui/onedark.lua new file mode 100644 index 0000000..fb3b13d --- /dev/null +++ b/lua/plugins/ui/onedark.lua @@ -0,0 +1,43 @@ +local onedark = require('onedark') + +onedark.setup({ + style = 'deep', + transparent = true, + term_colors = false, + ending_tildes = false, + cmp_itemkind_reverse = false, + + toggle_style_key = 'ct', + toggle_style_list = { 'dark', 'darker', 'cool', 'warm', 'warmer', 'deep', 'light' }, + + -- Options are italic, bold, underline, none and combos 'italic,bold' + code_style = { + comments = 'italic', + keywords = 'none', + functions = 'none', + strings = 'none', + variables = 'none', + }, + + lualine = { transparent = true }, + diagnostics = { darker = true, undercurl = true, background = false }, +}) +onedark.load() + +-- transparent background +vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) +vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' }) +vim.api.nvim_set_hl(0, 'FloatBorder', { bg = 'none' }) +vim.api.nvim_set_hl(0, 'Pmenu', { bg = 'none' }) + +-- set hlsearch color +vim.api.nvim_set_hl(0, 'Search', { bg = '#8BCD5B', fg = '#202020' }) +vim.api.nvim_set_hl(0, 'CurSearch', { bg = '#EFBD5D', fg = '#000000' }) +vim.api.nvim_set_hl(0, 'IncSearch', { bg = '#F15664', fg = '#000000' }) + +-- set cursorline color +vim.api.nvim_set_hl(0, 'CursorLine', { bg = '#1A1A1F' }) +vim.api.nvim_set_hl(0, 'CursorColumn', { bg = '#1A1A1F' }) + +-- set visual highlight +vim.api.nvim_set_hl(0, 'Visual', { bg = '#103070' })