Adding major changes with the precision

This commit is contained in:
sharmaharshitnone 2025-06-09 20:12:12 +05:30
parent 87611001cf
commit d00f77555e
8 changed files with 296 additions and 23 deletions

View file

@ -458,7 +458,7 @@ require('lazy').setup({
vim.keymap.set('n', '<leader>sd', builtin.diagnostics, { desc = '[S]earch [D]iagnostics' })
vim.keymap.set('n', '<leader>sr', builtin.resume, { desc = '[S]earch [R]esume' })
vim.keymap.set('n', '<leader>s.', builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' })
vim.keymap.set('n', '<leader><leader>', builtin.buffers, { desc = '[ ] Find existing buffers' })
vim.keymap.set('n', '<leader><leader>', function() builtin.buffers() end, { desc = '[ ] Find existing buffers' })
-- Slightly advanced example of overriding default behavior and theme
vim.keymap.set('n', '<leader>/', function()
@ -899,28 +899,52 @@ require('lazy').setup({
},
},
{ -- You can easily change to a different colorscheme.
-- Change the name of the colorscheme plugin below, and then
-- change the command in the config to whatever the name of that colorscheme is.
--
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
'folke/tokyonight.nvim',
priority = 1000, -- Make sure to load this before all the other start plugins.
-- Load catppuccin theme at startup
{
'catppuccin/nvim',
name = 'catppuccin',
priority = 1000, -- Make sure to load this before all the other start plugins
config = function()
---@diagnostic disable-next-line: missing-fields
require('tokyonight').setup {
-- Configure the theme
require('catppuccin').setup {
flavour = 'mocha', -- latte, frappe, macchiato, mocha
background = {
light = 'latte',
dark = 'mocha',
},
transparent_background = false,
styles = {
comments = { italic = false }, -- Disable italics in comments
comments = { 'italic' },
conditionals = { 'italic' },
},
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
telescope = true,
treesitter = true,
},
}
-- Load the colorscheme here.
-- Like many other themes, this one has different styles, and you could load
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
vim.cmd.colorscheme 'tokyonight-night'
-- Load the colorscheme
vim.cmd.colorscheme 'catppuccin'
end,
},
-- Original tokyonight theme (commented out)
-- { -- You can easily change to a different colorscheme.
-- 'folke/tokyonight.nvim',
-- priority = 1000,
-- config = function()
-- require('tokyonight').setup {
-- styles = {
-- comments = { italic = false },
-- },
-- }
-- vim.cmd.colorscheme 'tokyonight-night'
-- end,
-- },
-- Highlight todo, notes, etc in comments
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },