catpuccini

This commit is contained in:
Javier Pacheco 2023-09-02 06:13:44 -05:00
parent 2c617c8c49
commit 5a780ab55e
2 changed files with 73 additions and 13 deletions

View File

@ -155,6 +155,14 @@ require('lazy').setup({
},
build = ':TSUpdate',
indent = { enable = true, },
config = function()
require 'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
}
end
},
-- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
@ -511,6 +519,15 @@ cmp.setup {
}
}
function highlight_neorg_code_block()
local line = vim.fn.getline('.')
local lang = string.match(line, '^@code%s+(%S+)')
print('Detected language:', lang) -- Debug line
if lang then
vim.cmd('setlocal syntax=' .. lang)
end
end
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et
require("settings")

View File

@ -4,24 +4,65 @@ return {
-- [[ Eyecandy & fancy prgramming stuff ]]
-- [[ Colorscheme ]]
-- {
-- "navarasu/onedark.nvim",
-- config = function()
-- require('onedark').setup {
-- style = 'warm',
-- transparent = true,
-- code_style = {
-- comments = 'italic',
-- keywords = 'bold',
-- functions = 'italic',
-- strings = 'italic',
-- variables = 'bold'
-- },
-- }
-- require('onedark').load()
-- end
-- },
{
"navarasu/onedark.nvim",
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
config = function()
require('onedark').setup {
style = 'warm',
transparent = true,
code_style = {
comments = 'italic',
keywords = 'bold',
functions = 'italic',
strings = 'italic',
variables = 'bold'
require("catppuccin").setup({
flavour = "mocha", -- latte, frappe, macchiato, mocha
background = { -- :h background
light = "latte",
dark = "mocha",
},
}
require('onedark').load()
transparent_background = true, -- disables setting the background color.
show_end_of_buffer = false, -- shows the '~' characters after the end of buffers
term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`)
dim_inactive = {
enabled = false, -- dims the background color of inactive window
shade = "dark",
percentage = 0.15, -- percentage of the shade to apply to the inactive window
},
no_italic = false, -- Force no italic
no_bold = false, -- Force no bold
no_underline = false, -- Force no underline
styles = { -- Handles the styles of general hi groups (see `:h highlight-args`):
comments = { "italic" }, -- Change the style of comments
conditionals = { "italic" },
loops = {},
functions = { "italic", "bold" },
keywords = {},
strings = { "italic" },
variables = { "italic" },
numbers = {},
booleans = {},
properties = { "italic" },
types = {},
operators = {},
},
})
-- setup must be called before loading
vim.cmd.colorscheme "catppuccin"
end
},
{
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
@ -166,6 +207,8 @@ return {
neorg_leader = "<leader>n",
hook = function(keybinds)
keybinds.map("norg", "n", "gj", "<Cmd>Neorg journal today<CR>")
keybinds.map("norg", "n", "jo", "<Cmd>Neorg journal toc open<CR>")
keybinds.map("norg", "n", "jou", "<Cmd>Neorg journal toc update<CR>")
keybinds.remap_event("norg", "i", "<C-f>", "core.integrations.telescope.insert_link")
keybinds.remap_event("norg", "n", "ge", "core.looking-glass.magnify-code-block")
keybinds.remap_event("norg", "n", "<C-s>", "core.integrations.telescope.find_linkable")