Make all plugin configs return a function

Simplifies writing the `config = ...` field for each plugin
This commit is contained in:
2023-09-25 16:08:06 +02:00
parent 7739ec5591
commit ac35b77c87
33 changed files with 747 additions and 618 deletions
+51 -47
View File
@@ -16,57 +16,61 @@
-- https://github.com/catppuccin/nvim
local catppuccin = require("catppuccin")
local function setup()
local catppuccin = require("catppuccin")
-- Sometimes requires running :CatppuccinCompile,
-- like when switching to a font that supports italics.
catppuccin.setup({
flavour = "mocha", -- latte, frappe, macchiato, mocha
no_italic = false,
styles = {
comments = { "italic", },
},
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
treesitter = true,
notify = true,
aerial = true,
indent_blankline = {
enabled = true,
colored_indent_levels = false,
-- Sometimes requires running :CatppuccinCompile,
-- like when switching to a font that supports italics.
catppuccin.setup({
flavour = "mocha", -- latte, frappe, macchiato, mocha
no_italic = false,
styles = {
comments = { "italic", },
},
mason = true,
neogit = true,
noice = true,
dap = {
enabled = true,
enable_ui = true,
},
native_lsp = {
enabled = true,
virtual_text = {
errors = { "italic", },
hints = { "italic", },
warnings = { "italic", },
information = { "italic", },
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
treesitter = true,
notify = true,
aerial = true,
indent_blankline = {
enabled = true,
colored_indent_levels = false,
},
underlines = {
errors = { "underline", },
hints = { "underline", },
warnings = { "underline", },
information = { "underline", },
mason = true,
neogit = true,
noice = true,
dap = {
enabled = true,
enable_ui = true,
},
inlay_hints = {
background = true,
native_lsp = {
enabled = true,
virtual_text = {
errors = { "italic", },
hints = { "italic", },
warnings = { "italic", },
information = { "italic", },
},
underlines = {
errors = { "underline", },
hints = { "underline", },
warnings = { "underline", },
information = { "underline", },
},
inlay_hints = {
background = true,
},
},
telescope = {
enabled = true,
},
lsp_trouble = true,
},
telescope = {
enabled = true,
},
lsp_trouble = true,
},
})
})
catppuccin.load()
catppuccin.load()
end
return setup