Skip to content

Instantly share code, notes, and snippets.

@ddanielsantos
Created August 26, 2022 22:37
Show Gist options
  • Select an option

  • Save ddanielsantos/dd692d9acacb3d18a1bdffffea0db49c to your computer and use it in GitHub Desktop.

Select an option

Save ddanielsantos/dd692d9acacb3d18a1bdffffea0db49c to your computer and use it in GitHub Desktop.

Revisions

  1. ddanielsantos renamed this gist Aug 26, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. ddanielsantos created this gist Aug 26, 2022.
    9 changes: 9 additions & 0 deletions config.lua
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    lvim.keys.normal_mode["<leader>t"] = ":lua ToggleTheme() <cr>"

    function ToggleTheme()
    if (vim.api.nvim_get_option("background") == "dark") then
    vim.api.nvim_command("set background=light")
    else
    vim.api.nvim_command("set background=dark")
    end
    end