From 25d776ccf6cea9a537141d35449a78d0178d04f1 Mon Sep 17 00:00:00 2001 From: lulusilly Date: Sat, 30 Aug 2025 09:18:10 -0400 Subject: [PATCH] Fixed comment issue in conf.kbd & added compile commands for groff and typst documents in neovim config --- .config/kanata/conf.kbd | 2 +- .config/nvim/init.lua | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.config/kanata/conf.kbd b/.config/kanata/conf.kbd index 0be63b2..48e1ef2 100755 --- a/.config/kanata/conf.kbd +++ b/.config/kanata/conf.kbd @@ -21,7 +21,7 @@ Trying to be minimal in order to reduce constant editing of layer keys, not to mention how ugly having a 60% layout is when you have mapped keys in the grid. -# +|# (defsrc caps q w e r t y u i o p diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 2d14d60..3badc36 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -16,9 +16,9 @@ vim.opt.signcolumn = "yes" -- Always show the sign column -- Set the leader key to space. This is a crucial step for custom mappings. vim.g.mapleader = " " --- =================================== --- | Plugin Management with lazy.nvim| --- =================================== +-- ==================================== +-- | Plugin Management with lazy.nvim | +-- ==================================== -- The configuration below bootstraps lazy.nvim if it's not already installed. local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then @@ -139,5 +139,8 @@ vim.keymap.set('n', 'o', ':only', { desc = 'Close all other windows' vim.keymap.set('n', 'e', ':NvimTreeToggle', { desc = 'Toggle file tree' }) -- Select the entire file content. vim.keymap.set('n', 'a', 'ggVG', { desc = 'Select entire file' }) --- Run make command -vim.keymap.set('', 'r', ':update :make', { desc = 'Compile/Evaluate current file'} ) +-- Various commands to compile different file types. +-- Groff => PDF +vim.keymap.set('n', 'cg', ':!groff -ms -e %:t -T pdf > %:r.pdf', { desc = 'Compile Groff file to PDF' }) +-- Typst => PDF +vim.keymap.set('n', 'ct', ':!typst compile %:t', { desc = 'Compile Typst file to PDF'} ) \ No newline at end of file