Added my custom theme, can definitely change in the future, want to work on implementing transparency effects to it at the moment.
This commit is contained in:
parent
c109dcf3fc
commit
0f1bc61829
33
init.lua
33
init.lua
|
|
@ -114,9 +114,6 @@ vim.o.number = true
|
||||||
-- Enable mouse mode, can be useful for resizing splits for example!
|
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||||
vim.o.mouse = 'a'
|
vim.o.mouse = 'a'
|
||||||
|
|
||||||
-- Sets the theme to dark mode
|
|
||||||
vim.o.background = 'dark'
|
|
||||||
|
|
||||||
-- Don't show the mode, since it's already in the status line
|
-- Don't show the mode, since it's already in the status line
|
||||||
vim.o.showmode = false
|
vim.o.showmode = false
|
||||||
|
|
||||||
|
|
@ -191,6 +188,7 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
||||||
-- Diagnostic keymaps
|
-- Diagnostic keymaps
|
||||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
||||||
vim.keymap.set('n', '<C-n>', ':Neotree<CR>', { desc = 'Toggles Neotree' })
|
vim.keymap.set('n', '<C-n>', ':Neotree<CR>', { desc = 'Toggles Neotree' })
|
||||||
|
vim.keymap.set('n', '<C-t>', ':colorscheme theme<CR>', { desc = 'Toggles the theme bc wow its annoying asf' })
|
||||||
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
|
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
|
||||||
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
|
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
|
||||||
-- is not what someone will guess without a bit more experience.
|
-- 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
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
---@type vim.Option
|
---@type vim.Option
|
||||||
local rtp = vim.opt.rtp
|
local rtp = vim.opt.rtp
|
||||||
rtp:prepend(lazypath)
|
rtp:prepend(lazypath)
|
||||||
|
|
@ -280,17 +277,17 @@ require('lazy').setup({
|
||||||
config = function()
|
config = function()
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
theme = 'tomorrow_night',
|
theme = 'ayu_light',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mason-org/mason-lspconfig.nvim",
|
'mason-org/mason-lspconfig.nvim',
|
||||||
opts = {},
|
opts = {},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "mason-org/mason.nvim", opts = {} },
|
{ 'mason-org/mason.nvim', opts = {} },
|
||||||
"neovim/nvim-lspconfig",
|
'neovim/nvim-lspconfig',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -903,7 +900,7 @@ require('lazy').setup({
|
||||||
-- <c-k>: Toggle signature help
|
-- <c-k>: Toggle signature help
|
||||||
--
|
--
|
||||||
-- See :h blink-cmp-config-keymap for defining your own keymap
|
-- See :h blink-cmp-config-keymap for defining your own keymap
|
||||||
preset = 'default',
|
preset = 'super-tab',
|
||||||
|
|
||||||
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
|
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
|
||||||
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
|
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
|
||||||
|
|
@ -944,7 +941,7 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{ -- You can easily change to a different colorscheme.
|
--[[{ -- You can easily change to a different colorscheme.
|
||||||
-- Change the name of the colorscheme plugin below, and then
|
-- Change the name of the colorscheme plugin below, and then
|
||||||
-- change the command in the config to whatever the name of that colorscheme is.
|
-- change the command in the config to whatever the name of that colorscheme is.
|
||||||
--
|
--
|
||||||
|
|
@ -962,9 +959,10 @@ require('lazy').setup({
|
||||||
-- Load the colorscheme here.
|
-- Load the colorscheme here.
|
||||||
-- Like many other themes, this one has different styles, and you could load
|
-- Like many other themes, this one has different styles, and you could load
|
||||||
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
||||||
vim.cmd.colorscheme 'tokyonight-night'
|
vim.cmd.colorscheme 'theme'
|
||||||
end,
|
end,
|
||||||
},
|
},]]
|
||||||
|
--
|
||||||
|
|
||||||
-- Highlight todo, notes, etc in comments
|
-- Highlight todo, notes, etc in comments
|
||||||
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
|
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
|
||||||
|
|
@ -1031,7 +1029,6 @@ require('lazy').setup({
|
||||||
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
|
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
|
||||||
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
||||||
},
|
},
|
||||||
|
|
||||||
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
||||||
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
||||||
-- place them in the correct locations.
|
-- place them in the correct locations.
|
||||||
|
|
@ -1058,6 +1055,9 @@ require('lazy').setup({
|
||||||
-- Or use telescope!
|
-- Or use telescope!
|
||||||
-- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
|
-- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
|
||||||
-- you can continue same window with `<space>sr` which resumes last telescope search
|
-- you can continue same window with `<space>sr` which resumes last telescope search
|
||||||
|
{
|
||||||
|
dir = '~/AppData/Local/nvim/theme',
|
||||||
|
},
|
||||||
}, {
|
}, {
|
||||||
ui = {
|
ui = {
|
||||||
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
-- 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 {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd('Colorscheme', {
|
||||||
|
callback = function()
|
||||||
|
require('theme').setup()
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
-- You can add your own plugins here or in other files in this directory!
|
|
||||||
-- I promise not to create any merge conflicts in this directory :)
|
|
||||||
--
|
|
||||||
-- See the kickstart.nvim README for more information
|
|
||||||
|
|
||||||
return {
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
require('theme').setup()
|
||||||
|
|
@ -0,0 +1,92 @@
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
function M.setup()
|
||||||
|
local colors = {
|
||||||
|
purple = '#7f8cff',
|
||||||
|
black = '#000000',
|
||||||
|
white = '#ededed',
|
||||||
|
orange = '#ffaa00',
|
||||||
|
green = '#00c427',
|
||||||
|
red = '#e60000',
|
||||||
|
blue = '#00a6ff',
|
||||||
|
}
|
||||||
|
|
||||||
|
local highlights = {
|
||||||
|
|
||||||
|
Normal = { fg = colors.black, bg = colors.white },
|
||||||
|
CursorLine = { bg = '#e6e6e6' },
|
||||||
|
LineNr = { fg = colors.purple },
|
||||||
|
|
||||||
|
-- Neovim text configurations --
|
||||||
|
Function = { fg = colors.purple },
|
||||||
|
Identifier = { fg = colors.purple },
|
||||||
|
MoreMsg = { fg = colors.purple },
|
||||||
|
String = { fg = colors.purple },
|
||||||
|
QuickFixLine = { fg = colors.purple },
|
||||||
|
Question = { fg = colors.purple },
|
||||||
|
|
||||||
|
-- Other configuratiosn --
|
||||||
|
Special = { fg = colors.purple },
|
||||||
|
|
||||||
|
-- Todo configurations --
|
||||||
|
TodoFgTODO = { fg = colors.blue },
|
||||||
|
TodoFgNOTE = { fg = colors.blue },
|
||||||
|
|
||||||
|
TodoBgTODO = { fg = colors.white, bg = colors.blue },
|
||||||
|
TodoBgNOTE = { fg = colors.white, bg = colors.blue },
|
||||||
|
|
||||||
|
-- [ TREESITTER RELATED / TEXT CONFIGURATIONS ] --
|
||||||
|
|
||||||
|
-- Literals --
|
||||||
|
['@string'] = { fg = colors.purple },
|
||||||
|
['@boolean'] = { fg = colors.purple },
|
||||||
|
['@character'] = { fg = colors.purple },
|
||||||
|
['@number'] = { fg = colors.orange },
|
||||||
|
|
||||||
|
-- Identifiers --
|
||||||
|
['@variable'] = { fg = colors.black },
|
||||||
|
['@module'] = { fg = colors.black },
|
||||||
|
|
||||||
|
-- Types --
|
||||||
|
['@type'] = { fg = colors.purple },
|
||||||
|
['@property'] = { fg = colors.purple },
|
||||||
|
|
||||||
|
-- Keyword related --
|
||||||
|
['@keyword'] = { fg = colors.purple },
|
||||||
|
|
||||||
|
-- Comment related --
|
||||||
|
['@comment'] = { fg = colors.orange },
|
||||||
|
['@comment.warning'] = { fg = colors.orange },
|
||||||
|
['@comment.todo'] = { fg = colors.green },
|
||||||
|
['@comment.documentation'] = { fg = colors.blue },
|
||||||
|
['@comment.note'] = { fg = colors.blue },
|
||||||
|
['@comment.error'] = { fg = colors.red },
|
||||||
|
|
||||||
|
-- Functions --
|
||||||
|
['@function'] = { fg = colors.purple },
|
||||||
|
['@function.builtin'] = { fg = colors.black },
|
||||||
|
['@constructor'] = { fg = colors.black },
|
||||||
|
['@operator'] = { fg = colors.black },
|
||||||
|
|
||||||
|
-- Punctuation --
|
||||||
|
['@punctuation'] = { fg = colors.black },
|
||||||
|
|
||||||
|
-- [ NEOTREE COLOR CONFIGURATIONS ] --
|
||||||
|
Removed = { fg = colors.red },
|
||||||
|
NeoTreeGitUntracked = { fg = colors.purple },
|
||||||
|
Changed = { fg = colors.purple },
|
||||||
|
Directory = { fg = colors.purple },
|
||||||
|
Added = { fg = colors.green },
|
||||||
|
|
||||||
|
-- Diagnostic colors --
|
||||||
|
DiagnosticInfo = { fg = colors.purple },
|
||||||
|
DiagnosticOk = { fg = colors.purple },
|
||||||
|
DiagnosticWarn = { fg = colors.orange },
|
||||||
|
}
|
||||||
|
|
||||||
|
for group, opts in pairs(highlights) do
|
||||||
|
vim.api.nvim_set_hl(0, group, opts)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
Loading…
Reference in New Issue