Skip to content

Instantly share code, notes, and snippets.

@towry
towry / neo-tree-buffers-switcher.lua
Created July 23, 2024 01:18
use neo-tree buffers to switch buffers
--- depends: folke/flash.nvim
return {
"nvim-neo-tree/neo-tree.nvim",
opts = {
sources = { "filesystem", "buffers" },
source_selector = {
sources = {
{ source = "filesystem", display_name = " File" },
{ source = "buffers", display_name = " Buffers" },
},
@appuchias
appuchias / center-awesome-floating.lua
Created June 30, 2022 01:31
Center AwesomeWM floating windows when created and toggled.
-- This file includes both changes that need to be made, but they likely won't be placed like this in your files.
-- You will need to find the place to include those lines. You can ask me if you can't figure it out.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- Key to toggle between floating and tiled
clientkeys = gears.table.join( -- Find by this line
awful.key({modkey, "Control"}, "space", function(c) -- Center and raise floating windows if there is more than one
awful.client.floating.toggle(c)
local num_tiled_clients = 0