From 71a013b18b23e20fdc418a3fe0f0562755a1865d Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sat, 29 Jul 2023 21:45:26 -0700 Subject: [PATCH] chose a theme for neovim --- modules/neovim.nix | 19 +++--------------- rsrcs/nvim.lua | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 16 deletions(-) diff --git a/modules/neovim.nix b/modules/neovim.nix index 996a227..9dc8d5e 100644 --- a/modules/neovim.nix +++ b/modules/neovim.nix @@ -25,7 +25,6 @@ in # maps. plugins = { - telescope = { enable = true; }; @@ -88,22 +87,10 @@ in }; extraConfigLua = builtins.readFile ./../rsrcs/nvim.lua; extraPlugins = with pkgs.vimPlugins; - let - moonfly = pkgs.vimUtils.buildVimPlugin { - name = "moonfly"; - src = pkgs.fetchFromGitHub { - owner = "bluz71"; - repo = "vim-moonfly-colors"; - rev = "d51e3ad78654aa479d59adb81a98f179d595bdee"; - sha256 = "0uHEB8uNQeGpVWuZfyrVAWTyefJMCitTmNpHmKVFOaQ="; - }; - }; - in [ - # Themes and statusbar - # moonfly - + [ + monokai-pro-nvim nvim-lspconfig hop-nvim - ]; + ]; }; } diff --git a/rsrcs/nvim.lua b/rsrcs/nvim.lua index bcb8ac9..aa7eab0 100644 --- a/rsrcs/nvim.lua +++ b/rsrcs/nvim.lua @@ -128,3 +128,53 @@ local directions = require('hop.hint').HintDirection vim.keymap.set('', '', function() hop.hint_patterns({ multi_windows = true, current_line_only = false }) end, {remap=true}) + + +require("monokai-pro").setup({ + transparent_background = true, + terminal_colors = true, + devicons = true, -- highlight the icons of `nvim-web-devicons` + styles = { + comment = { italic = true }, + keyword = { italic = true }, -- any other keyword + type = { italic = true }, -- (preferred) int, long, char, etc + storageclass = { italic = true }, -- static, register, volatile, etc + structure = { italic = true }, -- struct, union, enum, etc + parameter = { italic = true }, -- parameter pass in function + annotation = { italic = true }, + tag_attribute = { italic = true }, -- attribute of tag in reactjs + }, + filter = "pro", -- classic | octagon | pro | machine | ristretto | spectrum + -- Enable this will disable filter option + day_night = { + enable = false, -- turn off by default + day_filter = "pro", -- classic | octagon | pro | machine | ristretto | spectrum + night_filter = "spectrum", -- classic | octagon | pro | machine | ristretto | spectrum + }, + inc_search = "background", -- underline | background + background_clear = { + -- "float_win", + "toggleterm", + "telescope", + -- "which-key", + "renamer", + "notify", + -- "nvim-tree", + -- "neo-tree", + -- "bufferline", -- better used if background of `neo-tree` or `nvim-tree` is cleared + },-- "float_win", "toggleterm", "telescope", "which-key", "renamer", "neo-tree", "nvim-tree", "bufferline" + plugins = { + bufferline = { + underline_selected = false, + underline_visible = false, + }, + indent_blankline = { + context_highlight = "default", -- default | pro + context_start_underline = false, + }, + }, + ---@param c Colorscheme + override = function(c) end, +}) + +vim.cmd.colorscheme "monokai-pro-spectrum"