Replacing colorscheme with cattpuccin, adding custom init.lua
Custom init.lua will overwrite / extend stuff which is placed in the main init.lua
This commit is contained in:
parent
bfc197705c
commit
a701962f67
42
init.lua
42
init.lua
|
|
@ -876,27 +876,27 @@ 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.
|
||||||
--
|
-- --
|
||||||
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
|
-- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
|
||||||
'folke/tokyonight.nvim',
|
-- 'folke/tokyonight.nvim',
|
||||||
priority = 1000, -- Make sure to load this before all the other start plugins.
|
-- priority = 1000, -- Make sure to load this before all the other start plugins.
|
||||||
config = function()
|
-- config = function()
|
||||||
---@diagnostic disable-next-line: missing-fields
|
-- ---@diagnostic disable-next-line: missing-fields
|
||||||
require('tokyonight').setup {
|
-- require('tokyonight').setup {
|
||||||
styles = {
|
-- styles = {
|
||||||
comments = { italic = false }, -- Disable italics in comments
|
-- comments = { italic = false }, -- Disable italics in comments
|
||||||
},
|
-- },
|
||||||
}
|
-- }
|
||||||
|
--
|
||||||
-- 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 'tokyonight-night'
|
||||||
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 } },
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
return {
|
||||||
|
"catppuccin/nvim",
|
||||||
|
name = "catppuccin",
|
||||||
|
priority = 1001,
|
||||||
|
config = function()
|
||||||
|
require("catppuccin").setup({
|
||||||
|
flavour = "mocha"
|
||||||
|
})
|
||||||
|
vim.cmd.colorscheme "catppuccin"
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -2,4 +2,20 @@
|
||||||
-- I promise not to create any merge conflicts in this directory :)
|
-- I promise not to create any merge conflicts in this directory :)
|
||||||
--
|
--
|
||||||
-- See the kickstart.nvim README for more information
|
-- See the kickstart.nvim README for more information
|
||||||
|
|
||||||
|
-- Set the blinking cursor settings
|
||||||
|
vim.o.guicursor = 'n-v:block,i:ver25,r-cr-o:hor20,a:blinkwait700-blinkoff400-blinkon250'
|
||||||
|
|
||||||
|
-- Make sure, that when we exit nvim the previous cursor settings get restored
|
||||||
|
vim.cmd [[
|
||||||
|
augroup RestoreCursorShapeOnExit
|
||||||
|
autocmd!
|
||||||
|
autocmd VimLeave * set guicursor=a:block20
|
||||||
|
augroup END
|
||||||
|
]]
|
||||||
|
|
||||||
|
-- Remap for dealing with word wrap in v mode
|
||||||
|
vim.keymap.set('v', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
||||||
|
vim.keymap.set('v', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
|
||||||
|
|
||||||
return {}
|
return {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue