Skip to content

Commit 0f1bc61

Browse files
committed
Added my custom theme, can definitely change in the future, want to work on implementing transparency effects to it at the moment.
1 parent c109dcf commit 0f1bc61

File tree

4 files changed

+111
-22
lines changed

4 files changed

+111
-22
lines changed

init.lua

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ vim.o.number = true
114114
-- Enable mouse mode, can be useful for resizing splits for example!
115115
vim.o.mouse = 'a'
116116

117-
-- Sets the theme to dark mode
118-
vim.o.background = 'dark'
119-
120117
-- Don't show the mode, since it's already in the status line
121118
vim.o.showmode = false
122119

@@ -191,6 +188,7 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
191188
-- Diagnostic keymaps
192189
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
193190
vim.keymap.set('n', '<C-n>', ':Neotree<CR>', { desc = 'Toggles Neotree' })
191+
vim.keymap.set('n', '<C-t>', ':colorscheme theme<CR>', { desc = 'Toggles the theme bc wow its annoying asf' })
194192
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
195193
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
196194
-- is not what someone will guess without a bit more experience.
@@ -255,7 +253,6 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
255253
end
256254
end
257255

258-
259256
---@type vim.Option
260257
local rtp = vim.opt.rtp
261258
rtp:prepend(lazypath)
@@ -280,17 +277,17 @@ require('lazy').setup({
280277
config = function()
281278
require('lualine').setup {
282279
options = {
283-
theme = 'tomorrow_night',
280+
theme = 'ayu_light',
284281
},
285282
}
286283
end,
287284
},
288285
{
289-
"mason-org/mason-lspconfig.nvim",
286+
'mason-org/mason-lspconfig.nvim',
290287
opts = {},
291288
dependencies = {
292-
{ "mason-org/mason.nvim", opts = {} },
293-
"neovim/nvim-lspconfig",
289+
{ 'mason-org/mason.nvim', opts = {} },
290+
'neovim/nvim-lspconfig',
294291
},
295292
},
296293
{
@@ -903,7 +900,7 @@ require('lazy').setup({
903900
-- <c-k>: Toggle signature help
904901
--
905902
-- See :h blink-cmp-config-keymap for defining your own keymap
906-
preset = 'default',
903+
preset = 'super-tab',
907904

908905
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
909906
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
@@ -944,7 +941,7 @@ require('lazy').setup({
944941
},
945942
},
946943

947-
{ -- You can easily change to a different colorscheme.
944+
--[[{ -- You can easily change to a different colorscheme.
948945
-- Change the name of the colorscheme plugin below, and then
949946
-- change the command in the config to whatever the name of that colorscheme is.
950947
--
@@ -962,9 +959,10 @@ require('lazy').setup({
962959
-- Load the colorscheme here.
963960
-- Like many other themes, this one has different styles, and you could load
964961
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
965-
vim.cmd.colorscheme 'tokyonight-night'
962+
vim.cmd.colorscheme 'theme'
966963
end,
967-
},
964+
},]]
965+
--
968966

969967
-- Highlight todo, notes, etc in comments
970968
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
@@ -1031,7 +1029,6 @@ require('lazy').setup({
10311029
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
10321030
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
10331031
},
1034-
10351032
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
10361033
-- init.lua. If you want these files, they are in the repository, so you can just download them and
10371034
-- place them in the correct locations.
@@ -1058,6 +1055,9 @@ require('lazy').setup({
10581055
-- Or use telescope!
10591056
-- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
10601057
-- you can continue same window with `<space>sr` which resumes last telescope search
1058+
{
1059+
dir = '~/AppData/Local/nvim/theme',
1060+
},
10611061
}, {
10621062
ui = {
10631063
-- If you are using a Nerd Font: set icons to an empty table which will use the
@@ -1140,8 +1140,11 @@ require('luau-lsp').setup {
11401140
},
11411141
}
11421142

1143-
1144-
1143+
vim.api.nvim_create_autocmd('Colorscheme', {
1144+
callback = function()
1145+
require('theme').setup()
1146+
end,
1147+
})
11451148

11461149
-- The line beneath this is called `modeline`. See `:help modeline`
11471150
-- vim: ts=2 sts=2 sw=2 et

lua/custom/plugins/init.lua

Lines changed: 0 additions & 7 deletions
This file was deleted.

theme/colors/theme.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('theme').setup()

theme/lua/theme/init.lua

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
local M = {}
2+
3+
function M.setup()
4+
local colors = {
5+
purple = '#7f8cff',
6+
black = '#000000',
7+
white = '#ededed',
8+
orange = '#ffaa00',
9+
green = '#00c427',
10+
red = '#e60000',
11+
blue = '#00a6ff',
12+
}
13+
14+
local highlights = {
15+
16+
Normal = { fg = colors.black, bg = colors.white },
17+
CursorLine = { bg = '#e6e6e6' },
18+
LineNr = { fg = colors.purple },
19+
20+
-- Neovim text configurations --
21+
Function = { fg = colors.purple },
22+
Identifier = { fg = colors.purple },
23+
MoreMsg = { fg = colors.purple },
24+
String = { fg = colors.purple },
25+
QuickFixLine = { fg = colors.purple },
26+
Question = { fg = colors.purple },
27+
28+
-- Other configuratiosn --
29+
Special = { fg = colors.purple },
30+
31+
-- Todo configurations --
32+
TodoFgTODO = { fg = colors.blue },
33+
TodoFgNOTE = { fg = colors.blue },
34+
35+
TodoBgTODO = { fg = colors.white, bg = colors.blue },
36+
TodoBgNOTE = { fg = colors.white, bg = colors.blue },
37+
38+
-- [ TREESITTER RELATED / TEXT CONFIGURATIONS ] --
39+
40+
-- Literals --
41+
['@string'] = { fg = colors.purple },
42+
['@boolean'] = { fg = colors.purple },
43+
['@character'] = { fg = colors.purple },
44+
['@number'] = { fg = colors.orange },
45+
46+
-- Identifiers --
47+
['@variable'] = { fg = colors.black },
48+
['@module'] = { fg = colors.black },
49+
50+
-- Types --
51+
['@type'] = { fg = colors.purple },
52+
['@property'] = { fg = colors.purple },
53+
54+
-- Keyword related --
55+
['@keyword'] = { fg = colors.purple },
56+
57+
-- Comment related --
58+
['@comment'] = { fg = colors.orange },
59+
['@comment.warning'] = { fg = colors.orange },
60+
['@comment.todo'] = { fg = colors.green },
61+
['@comment.documentation'] = { fg = colors.blue },
62+
['@comment.note'] = { fg = colors.blue },
63+
['@comment.error'] = { fg = colors.red },
64+
65+
-- Functions --
66+
['@function'] = { fg = colors.purple },
67+
['@function.builtin'] = { fg = colors.black },
68+
['@constructor'] = { fg = colors.black },
69+
['@operator'] = { fg = colors.black },
70+
71+
-- Punctuation --
72+
['@punctuation'] = { fg = colors.black },
73+
74+
-- [ NEOTREE COLOR CONFIGURATIONS ] --
75+
Removed = { fg = colors.red },
76+
NeoTreeGitUntracked = { fg = colors.purple },
77+
Changed = { fg = colors.purple },
78+
Directory = { fg = colors.purple },
79+
Added = { fg = colors.green },
80+
81+
-- Diagnostic colors --
82+
DiagnosticInfo = { fg = colors.purple },
83+
DiagnosticOk = { fg = colors.purple },
84+
DiagnosticWarn = { fg = colors.orange },
85+
}
86+
87+
for group, opts in pairs(highlights) do
88+
vim.api.nvim_set_hl(0, group, opts)
89+
end
90+
end
91+
92+
return M

0 commit comments

Comments
 (0)