Add and enable catppuccin

This commit is contained in:
2023-09-13 20:22:35 +02:00
parent 38ddf9eb38
commit f22eb5e424
3 changed files with 78 additions and 2 deletions
+66
View File
@@ -0,0 +1,66 @@
--[[
Copyright 2023 Oscar Wallberg
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
]]
-- https://github.com/catppuccin/nvim
local catppuccin = require("catppuccin")
catppuccin.setup({
flavour = "mocha", -- latte, frappe, macchiato, mocha
no_italic = true,
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
treesitter = true,
notify = true,
aerial = true,
indent_blankline = {
enabled = true,
colored_indent_levels = false,
},
mason = true,
neogit = true,
dap = {
enabled = true,
enable_ui = true,
},
native_lsp = {
enabled = true,
virtual_text = {
errors = {},
hints = {},
warnings = {},
information = {},
},
underlines = {
errors = { "underline", },
hints = { "underline", },
warnings = { "underline", },
information = { "underline", },
},
inlay_hints = {
background = true,
},
},
telescope = {
enabled = true,
},
lsp_trouble = true,
},
})
catppuccin.load()
+9
View File
@@ -88,4 +88,13 @@ function M.pytest(args)
start(config) start(config)
end end
--[[
TODO: Add this after loading dap for integrating catppuccin:
local sign = vim.fn.sign_define
sign("DapBreakpoint", { text = "●", texthl = "DapBreakpoint", linehl = "", numhl = ""})
sign("DapBreakpointCondition", { text = "●", texthl = "DapBreakpointCondition", linehl = "", numhl = ""})
sign("DapLogPoint", { text = "◆", texthl = "DapLogPoint", linehl = "", numhl = ""})
--]]
return M return M
+3 -2
View File
@@ -18,11 +18,12 @@ vim.loader.enable()
local plugins = { local plugins = {
{ {
"Mofiqul/vscode.nvim", "catppuccin/nvim",
priority = 1000, priority = 1000,
lazy = false, lazy = false,
name = "catppuccin",
config = function () config = function ()
require("plugins.config.vscode") require("plugins.config.catppuccin")
end, end,
}, },
{ {