Nixfiles! :3
0

Configure Feed

Select the types of activity you want to include in your feed.

rip fzflua


Signed-off-by: MLC Bloeiman <mar@strawmelonjuice.com>

MLC Bloeiman (May 7, 2026, 5:58 PM +0200) b4a4e87b 11493d17

+11 -11
+11 -11
configs/nvim/lua/config/keymaps.lua
··· 54 54 Snacks.picker.resume() 55 55 end, { desc = "Resume last search" }) 56 56 57 - map("n", "<space>o", "<cmd>FzfLua oldfiles<CR>", { desc = "Oldfiles" }) 57 + vim.keymap.set("n", "<space>o", function() 58 + Snacks.picker.recent() 59 + end, { desc = "OldFiles" }) 58 60 59 61 map("n", "<space>e", function() 60 62 Snacks.explorer({ layout = { layout = { position = "right" } } }) ··· 83 85 map("n", "<space>cr", vim.lsp.buf.rename, { desc = "LSP -> Rename symbol" }) 84 86 -- Stolen from Ollie 85 87 local function trim(s) 86 - return s:match("(.-)%s*%-*$") 88 + return s:match("(.-)%s*%-*$") 87 89 end 88 90 89 91 local show_errors = false ··· 114 116 end 115 117 end, { desc = "[T]oggle [E]rrors" }) 116 118 117 - 118 119 vim.keymap.set("n", "<space>cew", vim.diagnostic.open_float, { desc = "Open [E]rror [W]indow" }) 119 120 map("n", "<space>cs", function() 120 - -- get current line(string) and row(int) in the buffer 121 - local line = trim(vim.api.nvim_get_current_line()) 122 - local row, _ = unpack(vim.api.nvim_win_get_cursor(0)) 123 - 124 - -- make "-----------" seperator line at consitent length 125 - local seperator = string.rep("-", 120 - string.len(line)) 121 + -- get current line(string) and row(int) in the buffer 122 + local line = trim(vim.api.nvim_get_current_line()) 123 + local row, _ = unpack(vim.api.nvim_win_get_cursor(0)) 126 124 127 - -- write line with seperator to current buffer at current cursor position 128 - vim.api.nvim_buf_set_lines(0, row - 1, row, true, { line .. " " .. seperator }) 125 + -- make "-----------" seperator line at consitent length 126 + local seperator = string.rep("-", 120 - string.len(line)) 129 127 128 + -- write line with seperator to current buffer at current cursor position 129 + vim.api.nvim_buf_set_lines(0, row - 1, row, true, { line .. " " .. seperator }) 130 130 end, { desc = "set [S]eperator" }) 131 131 132 132 -- Movement --------------------------------------------------------------------------------------------------------------------------------------------------