Make all plugin configs return a function
Simplifies writing the `config = ...` field for each plugin
This commit is contained in:
+14
-10
@@ -16,15 +16,19 @@
|
||||
|
||||
-- https://github.com/folke/tokyonight.nvim
|
||||
|
||||
local tokyonight = require("tokyonight")
|
||||
local function setup()
|
||||
local tokyonight = require("tokyonight")
|
||||
|
||||
tokyonight.setup({
|
||||
style = "night",
|
||||
styles = {
|
||||
comments = { italic = false, },
|
||||
keywords = { italic = false, },
|
||||
},
|
||||
lualine_bold = false,
|
||||
})
|
||||
tokyonight.setup({
|
||||
style = "night",
|
||||
styles = {
|
||||
comments = { italic = false, },
|
||||
keywords = { italic = false, },
|
||||
},
|
||||
lualine_bold = false,
|
||||
})
|
||||
|
||||
tokyonight.load()
|
||||
tokyonight.load()
|
||||
end
|
||||
|
||||
return setup
|
||||
|
||||
Reference in New Issue
Block a user