diff --git a/homeConfig/modules/neovim/config/init.nix b/homeConfig/modules/neovim/config/init.nix index df45ee1..c423a19 100644 --- a/homeConfig/modules/neovim/config/init.nix +++ b/homeConfig/modules/neovim/config/init.nix @@ -23,13 +23,9 @@ vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagn virtual_text = false, }) -require("notify").setup({ - background_colour = "#000000", -}) - - vim.api.nvim_set_keymap('n', '', 'zz', {noremap = true}) vim.api.nvim_set_keymap('n', '', 'zz', {noremap = true}) vim.api.nvim_set_keymap('n', '', 'zz', {noremap = true}) vim.api.nvim_set_keymap('n', '', 'zz', {noremap = true}) -'' + +'' diff --git a/homeConfig/modules/neovim/config/plugins/theme/default.nix b/homeConfig/modules/neovim/config/plugins/theme/default.nix index 86b783c..f10e6c4 100644 --- a/homeConfig/modules/neovim/config/plugins/theme/default.nix +++ b/homeConfig/modules/neovim/config/plugins/theme/default.nix @@ -2,5 +2,53 @@ with pkgs.vimPlugins; [ - { plugin = catppuccin-nvim; } + { plugin = catppuccin-nvim; + config = '' + lua << EOF + equire("catppuccin").setup({ + flavour = "mocha", -- latte, frappe, macchiato, mocha + background = { -- :h background + light = "latte", + dark = "mocha", + }, + 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 = {}, + keywords = {}, + strings = {}, + variables = {}, + numbers = {}, + booleans = {}, + properties = {}, + types = {}, + operators = {}, + }, + color_overrides = {}, + custom_highlights = {}, + integrations = { + cmp = true, + gitsigns = true, + nvimtree = true, + telescope = true, + notify = false, + mini = false, + }, + }) + vim.cmd.colorscheme "catppuccin" + local mocha = require("catppuccin.palettes").get_palette "mocha" + ''; + } ] diff --git a/homeConfig/modules/neovim/default.nix b/homeConfig/modules/neovim/default.nix index 12387ac..9a471d0 100644 --- a/homeConfig/modules/neovim/default.nix +++ b/homeConfig/modules/neovim/default.nix @@ -12,7 +12,7 @@ in viAlias = true; vimAlias = true; - extraLuaConfig = import ./config/init.nix; + extraConfig = import ./config/init.nix; plugins = import (./config/plugins) { inherit pkgs lib; }; extraPackages = import ./config/servers.nix { inherit pkgs; }; };