Skip to content

Instantly share code, notes, and snippets.

View juru1234's full-sized avatar

Julian Ruess juru1234

  • IBM
  • Böblingen, Germany
  • 16:22 (UTC +01:00)
View GitHub Profile
@juru1234
juru1234 / builtin-compl.lua
Created November 23, 2024 22:25 — forked from MariaSolOs/builtin-compl.lua
Built-in completion + snippet Neovim setup
---Utility for keymap creation.
---@param lhs string
---@param rhs string|function
---@param opts string|table
---@param mode? string|string[]
local function keymap(lhs, rhs, opts, mode)
opts = type(opts) == 'string' and { desc = opts }
or vim.tbl_extend('error', opts --[[@as table]], { buffer = bufnr })
mode = mode or 'n'
vim.keymap.set(mode, lhs, rhs, opts)
00:00:00.000 [INFO] [sway/main.c:338] Sway version 1.9
00:00:00.000 [INFO] [sway/main.c:339] wlroots version 0.17.2
00:00:00.001 [INFO] [sway/main.c:120] Linux localhost.localdomain 6.9.5-1-default #1 SMP PREEMPT_DYNAMIC Tue Jun 18 07:38:24 UTC 2024 (c9c2e24) x86_64 x86_64 x86_64 GNU/Linux
00:00:00.001 [INFO] [sway/main.c:136] Contents of /etc/os-release:
00:00:00.001 [INFO] [sway/main.c:120] NAME="openSUSE Tumbleweed"
00:00:00.001 [INFO] [sway/main.c:120] # VERSION="20240622"
00:00:00.001 [INFO] [sway/main.c:120] ID="opensuse-tumbleweed"
00:00:00.001 [INFO] [sway/main.c:120] ID_LIKE="opensuse suse"
00:00:00.001 [INFO] [sway/main.c:120] VERSION_ID="20240622"
00:00:00.001 [INFO] [sway/main.c:120] PRETTY_NAME="openSUSE Tumbleweed"