diff --git a/lua/settings.lua b/lua/settings.lua index 84cc889..c416555 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -5,6 +5,24 @@ vim.g.loaded_ruby_provider = 0 vim.g.loaded_perl_provider = 0 vim.g.loaded_node_provider = 0 +-- Auto-detect system theme (Linux/GNOME) +local function set_background_from_system() + local handle = io.popen('gsettings get org.gnome.desktop.interface color-scheme 2>/dev/null') + if handle then + local result = handle:read("*a") + handle:close() + + if result:match("dark") then + vim.o.background = 'dark' + else + vim.o.background = 'light' + end + end +end + +-- Set background based on system theme on startup +set_background_from_system() + -- Store initial working directory as project root -- Used by netrw navigation to return to project root after following symlinks vim.g.project_root = vim.fn.getcwd() diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index ad33cab..197c5fe 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -783,3 +783,7 @@ param int bool #/! +bspwm +composable +XDG +configs diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 3890753..141f456 100644 Binary files a/spell/en.utf-8.add.spl and b/spell/en.utf-8.add.spl differ