| Character | Code | Pressed fingers |
|---|---|---|
| space | C | Middle |
| e | A | Index |
| t | B | Thumb |
| a | D | Pinky |
| o | E | Ring |
| i | CA | Middle + Index |
| n | CB | Middle + Thumb |
| s | CD | Middle + Pinky |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- https://github.com/L3MON4D3/LuaSnip/blob/master/Examples/snippets.lua | |
| -- extract functions from luasnips | |
| local ls = require("luasnip") | |
| local snippet = ls.snippet | |
| local text_node = ls.text_node | |
| local insert_node = ls.insert_node | |
| local function_node = ls.function_node | |
| local fmt = require("luasnip.extras.fmt").fmt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================================ | |
| # NOTES | |
| # ============================================================================ | |
| # Show help: prefix + ? | |
| # ============================================================================ | |
| # CONFIG MANAGEMENT | |
| # ============================================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- User commands to control native LSP (Neovim 0.12+) | |
| -- Replace :LspInfo, :LspRestart, :LspStop, etc. that used to be provided by nvim-lspconfig | |
| -- | |
| -- :LspList → clients attached to the current buffer | |
| -- :LspInfo → :checkhealth vim.lsp (the official replacement for LspInfo) | |
| -- :LspLog → opens the LSP log in a new tab | |
| -- :LspStop [name] → stops clients (! to force) | |
| -- :LspStart → re-triggers autostart on the current buffer | |
| -- :LspRestart [name] → restarts clients and re-attaches the buffers | |
| -- :LspCapabilities → inspect the server's capabilities |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- DB commands | |
| -- | |
| -- Comandos para ejecutar SQL usando vim-dadbod (:h dadbod). | |
| -- Cada comando escribe en el buffer, debajo del cursor (o de la selección), | |
| -- el query ejecutado y su resultado. Así el buffer queda como una "historia" | |
| -- que se puede copiar completa como contexto para un prompt. | |
| -- | |
| -- Si no hay una conexión seleccionada, se pregunta con vim.ui.select. | |
| -- Si el comando necesita una tabla y no se indica, también se pregunta. | |
| -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- markdown_to_pdf.lua | |
| -- Generates a PDF from a Markdown file in two steps: | |
| -- 1. Markdown -> HTML with pandoc (with embedded CSS) | |
| -- 2. HTML -> PDF with Google Chrome in headless mode | |
| -- The intermediate HTML file is deleted at the end, leaving only the PDF. | |
| -- | |
| -- Usage: :MarkdownToPDF (converts the current buffer) | |
| -- :MarkdownToPDF path.md (converts the given file) | |
| -- | |
| -- Requires Neovim 0.10+ (uses vim.system). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Get work hours, read from markdown files in ./logs folder | |
| -- | |
| -- example: | |
| --- | |
| -- --- | |
| -- date: 2026-05-12 | |
| -- summary: some work summary here | |
| -- hours: 3 | |
| -- --- | |
| -- usage: :GetWorkLogInLogFolder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- use: | |
| -- | |
| -- require("ascii_box").setup() | |
| local M = {} | |
| --- Genera una tabla ASCII alrededor del texto dado | |
| --- @param lines string[] Lista de líneas de texto | |
| --- @return string[] Líneas con la caja ASCII | |
| function M.make_box(lines) | |
| -- Encontrar el ancho máximo para que todas las líneas encajen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---------------------------------------------------- | |
| -- text-case | |
| -- https://github.com/johmsalas/text-case.nvim#setup | |
| ---------------------------------------------------- | |
| vim.pack.add({ | |
| "https://github.com/johmsalas/text-case.nvim", | |
| }) | |
| local textcase = require("textcase") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- tldr.lua | |
| -- Neovim command to browse tldr-pages cheatsheets directly from the editor | |
| -- save as ~/.config/nvim/lua/tldr.lua | |
| -- load with: require("tldr") | |
| -- Commands: | |
| -- :Tldr | |
| -- :Tldr <topic> | |
| vim.api.nvim_create_user_command("Tldr", function(args) | |
| if args.args == "" then |
NewerOlder