From 3a53259185d3ab2f57d78c561760cef5eeee16a0 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 5 Apr 2023 17:29:04 +0200 Subject: stuff --- init.lua | 2 +- lazy-lock.json | 8 ++++---- lua/my_theme.lua | 31 +++++++++++++++++++++++++++++++ lua/theme.lua | 24 ------------------------ 4 files changed, 36 insertions(+), 29 deletions(-) create mode 100644 lua/my_theme.lua delete mode 100644 lua/theme.lua diff --git a/init.lua b/init.lua index 2dba404..e902a7b 100644 --- a/init.lua +++ b/init.lua @@ -4,6 +4,6 @@ require("packages") require("treesitter") require("lsp") require("my_telescope") -require("theme") +require("my_theme") require("config") require("remap") diff --git a/lazy-lock.json b/lazy-lock.json index f214d9e..de42d6f 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -2,13 +2,13 @@ "LuaSnip": { "branch": "master", "commit": "bc8ec05022743d3f08bda7a76c6bb5e9a9024581" }, "cmp-nvim-lsp": { "branch": "main", "commit": "0e6b2ed705ddcff9738ec4ea838141654f12eeef" }, "lazy.nvim": { "branch": "main", "commit": "57cce98dfdb2f2dd05a0567d89811e6d0505e13b" }, - "lsp-zero.nvim": { "branch": "v2.x", "commit": "ac1bedbfffa9ea0279fa22e09f65316ba209472f" }, + "lsp-zero.nvim": { "branch": "v2.x", "commit": "93d50eb990a977a5a9842c715a0da27303fda29d" }, "lualine.nvim": { "branch": "master", "commit": "c28a7427c3fb29322db136f0564ec58807b26747" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "b64fdede85fd5e0b720ce722919e0a9b95ed6547" }, - "mason.nvim": { "branch": "main", "commit": "dbf34eecc1f06733a2c518ddd5fe6b1472e7d837" }, + "mason.nvim": { "branch": "main", "commit": "c625abf171dfaad790f5703465a93a94334e5049" }, "nvim-cmp": { "branch": "main", "commit": "777450fd0ae289463a14481673e26246b5e38bf2" }, - "nvim-lspconfig": { "branch": "master", "commit": "0bc0c38e1b11dfb6b5f1794d53869f89ccf9e78f" }, - "nvim-treesitter": { "branch": "master", "commit": "871f5665d92d59a369cf916e9aa4d321d466f1e3" }, + "nvim-lspconfig": { "branch": "master", "commit": "8dc63a44bfe3188708f0b968c17a5260bdf75650" }, + "nvim-treesitter": { "branch": "master", "commit": "411e771d511442ab81670701f5c830f6c74aadd7" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "b55fe6175f0001347a433c9df358c8cbf8a4e90f" }, "nvim-web-devicons": { "branch": "master", "commit": "0568104bf8d0c3ab16395433fcc5c1638efc25d4" }, "plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" }, 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 diff --git a/lua/theme.lua b/lua/theme.lua deleted file mode 100644 index edc5a4b..0000000 --- a/lua/theme.lua +++ /dev/null @@ -1,24 +0,0 @@ -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:h12" -vim.o.linespace = 0 - -- cgit