summaryrefslogtreecommitdiff
path: root/lua/binds.lua
diff options
context:
space:
mode:
authorIan Griffin <migriffin@disroot.org>2025-09-25 15:00:39 +0800
committerIan Griffin <migriffin@disroot.org>2025-09-25 15:00:39 +0800
commit23662ac758858dfa28cf0ead3ef552ac1edbd931 (patch)
tree3f2c50a99e9b83140361cd36c357ec0febf63ba4 /lua/binds.lua
parentdbb9af29d56e0894688637c805c3fdccac5067cd (diff)
added buffer select menu
Diffstat (limited to 'lua/binds.lua')
-rw-r--r--lua/binds.lua41
1 files changed, 21 insertions, 20 deletions
diff --git a/lua/binds.lua b/lua/binds.lua
index 291bfb8..49ee43c 100644
--- a/lua/binds.lua
+++ b/lua/binds.lua
@@ -2,7 +2,7 @@
-- Configuration Tools
--
local ct = require('conftool')
-local defs = require('defs')
+-- local defs = require('defs')
--
-- Maps
@@ -54,26 +54,27 @@ for func_name, _ in pairs(lsp_buf) do
end
end
-function toggle_background()
- local bg = vim.o.background
+-- function toggle_background()
+-- local bg = vim.o.background
+--
+-- if bg == "dark" then
+-- vim.cmd("set background=light")
+-- else
+-- vim.cmd("set background=dark")
+-- end
+--
+-- -- Query the current colorscheme
+-- --[[ local colorscheme = vim.fn.executable('colorscheme') or ""
+-- -- colorscheme = colorscheme:match("^%s*(.-)%s*$")
+--
+-- -- Reload the colorscheme if it was set
+-- if colorscheme ~= "" then
+-- vim.cmd("colorscheme " .. colorscheme)
+-- end ]]--
+-- end
+-- ct.map('n', '<Leader>c', '<cmd>lua toggle_background()<CR>')
- if bg == "dark" then
- vim.cmd("set background=light")
- else
- vim.cmd("set background=dark")
- end
-
- -- Query the current colorscheme
- --[[ local colorscheme = vim.fn.executable('colorscheme') or ""
- -- colorscheme = colorscheme:match("^%s*(.-)%s*$")
-
- -- Reload the colorscheme if it was set
- if colorscheme ~= "" then
- vim.cmd("colorscheme " .. colorscheme)
- end ]]--
-end
-
-ct.map('n', '<Leader>b', '<cmd>lua toggle_background()<CR>')
+ct.map('n', '<Leader>b', ':buffer<Space><C-z>')
--
-- Commands
--