diff options
Diffstat (limited to 'lua/my_theme.lua')
-rw-r--r-- | lua/my_theme.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lua/my_theme.lua b/lua/my_theme.lua new file mode 100644 index 0000000..f879e0c --- /dev/null +++ b/lua/my_theme.lua @@ -0,0 +1,31 @@ +vim.o.background = "dark" + +local c = require("vscode.colors").get_colors() +require("vscode").setup({ + style = "dark", + group_overrides = { + ["@punctuation.bracket"] = { fg = c.vscFront }, + }, +}) + +vim.cmd.colorscheme("vscode") + +require("lualine").setup({ + options = { + theme = "vscode", + icons_enabled = false, + component_separators = "|", + section_separators = "", + }, +}) + +vim.o.guifont = "Cascadia Mono:h11" +vim.o.linespace = 0 + +my_switch_theme = function() + if vim.o.background == "dark" then + require("vscode").load("light") + else + require("vscode").load("dark") + end +end |