move colorschemes to a separate lua file
This commit is contained in:
parent
40c8b3df18
commit
0f0e955b6e
2 changed files with 31 additions and 26 deletions
27
init.lua
27
init.lua
|
@ -26,32 +26,7 @@ vim.cmd([[highlight ColorColumn ctermbg=9]])
|
|||
-- don't use NeoVim's thin cursor
|
||||
vim.opt.guicursor = ""
|
||||
|
||||
--vim.g.tokyonight_style = "night"
|
||||
--vim.cmd([[colorscheme tokyonight]])
|
||||
--vim.cmd([[colorscheme PaperColor]])
|
||||
--vim.cmd([[colorscheme moonfly]])
|
||||
require("onedarkpro").setup({
|
||||
theme = "onedark_dark",
|
||||
styles = { -- Choose from "bold,italic,underline"
|
||||
strings = "NONE", -- Style that is applied to strings.
|
||||
comments = "italic", -- Style that is applied to comments
|
||||
keywords = "bold", -- Style that is applied to keywords
|
||||
functions = "NONE", -- Style that is applied to functions
|
||||
variables = "NONE", -- Style that is applied to variables
|
||||
virtual_text = "NONE", -- Style that is applied to virtual text
|
||||
},
|
||||
options = {
|
||||
bold = true, -- Use the colorscheme's opinionated bold styles?
|
||||
italic = true, -- Use the colorscheme's opinionated italic styles?
|
||||
underline = true, -- Use the colorscheme's opinionated underline styles?
|
||||
undercurl = true, -- Use the colorscheme's opinionated undercurl styles?
|
||||
cursorline = false, -- Use cursorline highlighting?
|
||||
transparency = false, -- Use a transparent background?
|
||||
terminal_colors = false, -- Use the colorscheme's colors for Neovim's :terminal?
|
||||
window_unfocussed_color = true, -- When the window is out of focus, change the normal background?
|
||||
}
|
||||
})
|
||||
vim.cmd([[colorscheme onedarkpro]])
|
||||
require("colorschemes")
|
||||
|
||||
vim.api.nvim_set_keymap("n", "<SPACE>", "<Nop>", { noremap = true })
|
||||
vim.g.mapleader = " "
|
||||
|
|
30
lua/colorschemes.lua
Normal file
30
lua/colorschemes.lua
Normal file
|
@ -0,0 +1,30 @@
|
|||
function setup()
|
||||
--vim.g.tokyonight_style = "night"
|
||||
--vim.cmd([[colorscheme tokyonight]])
|
||||
--vim.cmd([[colorscheme PaperColor]])
|
||||
--vim.cmd([[colorscheme moonfly]])
|
||||
require("onedarkpro").setup({
|
||||
theme = "onedark_dark",
|
||||
styles = { -- Choose from "bold,italic,underline"
|
||||
strings = "NONE", -- Style that is applied to strings.
|
||||
comments = "italic", -- Style that is applied to comments
|
||||
keywords = "bold", -- Style that is applied to keywords
|
||||
functions = "NONE", -- Style that is applied to functions
|
||||
variables = "NONE", -- Style that is applied to variables
|
||||
virtual_text = "NONE", -- Style that is applied to virtual text
|
||||
},
|
||||
options = {
|
||||
bold = true, -- Use the colorscheme's opinionated bold styles?
|
||||
italic = true, -- Use the colorscheme's opinionated italic styles?
|
||||
underline = true, -- Use the colorscheme's opinionated underline styles?
|
||||
undercurl = true, -- Use the colorscheme's opinionated undercurl styles?
|
||||
cursorline = false, -- Use cursorline highlighting?
|
||||
transparency = false, -- Use a transparent background?
|
||||
terminal_colors = false, -- Use the colorscheme's colors for Neovim's :terminal?
|
||||
window_unfocussed_color = true, -- When the window is out of focus, change the normal background?
|
||||
}
|
||||
})
|
||||
vim.cmd([[colorscheme onedarkpro]])
|
||||
end
|
||||
|
||||
setup()
|
Loading…
Reference in a new issue