File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
88-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
99
10- local function set_background_from_macos ()
11- if vim .fn .has (" mac" ) == 1 then
12- local handle = io.popen (" defaults read -g AppleInterfaceStyle 2>/dev/null" )
13- local result = handle :read (" *a" )
14- handle :close ()
10+ -- local function set_background_from_macos()
11+ -- if vim.fn.has("mac") == 1 then
12+ -- local handle = io.popen("defaults read -g AppleInterfaceStyle 2>/dev/null")
13+ -- local result = handle:read("*a")
14+ -- handle:close()
1515
16- local bg = result :match (" Dark" ) and " dark" or " light"
17- if vim .o .background ~= bg then
18- vim .o .background = bg
19- return true
20- end
21- end
22- return false
23- end
16+ -- local bg = result:match("Dark") and "dark" or "light"
17+ -- if vim.o.background ~= bg then
18+ -- vim.o.background = bg
19+ -- return true
20+ -- end
21+ -- end
22+ -- return false
23+ -- end
2424
25- local theme = require (" config.theme" )
26- theme .apply ()
25+ -- local theme = require("config.theme")
26+ -- theme.apply()
2727
28- vim .api .nvim_create_autocmd ({ " FocusGained" , " VimEnter" }, {
29- callback = function ()
30- if set_background_from_macos () then
31- theme .apply ()
32- end
33- end ,
34- })
28+ -- vim.api.nvim_create_autocmd({ "FocusGained", "VimEnter" }, {
29+ -- callback = function()
30+ -- if set_background_from_macos() then
31+ -- theme.apply()
32+ -- end
33+ -- end,
34+ -- })
Original file line number Diff line number Diff line change 1+ return {
2+ {
3+ " LazyVim/LazyVim" ,
4+ opts = {
5+ colorscheme = " tokyonight-night" , -- Must match the internal name of the theme
6+ },
7+ },
8+ }
You can’t perform that action at this time.
0 commit comments