mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
chose a theme for neovim
This commit is contained in:
parent
fafb89f62f
commit
71a013b18b
2 changed files with 53 additions and 16 deletions
|
@ -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
|
||||
];
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -128,3 +128,53 @@ local directions = require('hop.hint').HintDirection
|
|||
vim.keymap.set('', '<C-f>', 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"
|
||||
|
|
Loading…
Reference in a new issue