diff --git a/lua/plugins/config/catppuccin.lua b/lua/plugins/config/catppuccin.lua new file mode 100644 index 0000000..10f55c1 --- /dev/null +++ b/lua/plugins/config/catppuccin.lua @@ -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() diff --git a/lua/plugins/config/dap.lua b/lua/plugins/config/dap.lua index b9b6755..3fc75b0 100644 --- a/lua/plugins/config/dap.lua +++ b/lua/plugins/config/dap.lua @@ -88,4 +88,13 @@ function M.pytest(args) start(config) 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 diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 89d0ce1..5198a9d 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -18,11 +18,12 @@ vim.loader.enable() local plugins = { { - "Mofiqul/vscode.nvim", + "catppuccin/nvim", priority = 1000, lazy = false, + name = "catppuccin", config = function () - require("plugins.config.vscode") + require("plugins.config.catppuccin") end, }, {