Fixed comment issue in conf.kbd & added compile commands for groff and typst documents in neovim config

This commit is contained in:
lulusilly 2025-08-30 09:18:10 -04:00
parent 33e4a081e2
commit 25d776ccf6
2 changed files with 9 additions and 6 deletions

View file

@ -21,7 +21,7 @@
Trying to be minimal in order to reduce constant editing Trying to be minimal in order to reduce constant editing
of layer keys, not to mention how ugly having a 60% layout of layer keys, not to mention how ugly having a 60% layout
is when you have mapped keys in the grid. is when you have mapped keys in the grid.
# |#
(defsrc (defsrc
caps caps
q w e r t y u i o p q w e r t y u i o p

View file

@ -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. -- Set the leader key to space. This is a crucial step for custom mappings.
vim.g.mapleader = " " 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. -- The configuration below bootstraps lazy.nvim if it's not already installed.
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then if not vim.loop.fs_stat(lazypath) then
@ -139,5 +139,8 @@ vim.keymap.set('n', '<leader>o', ':only<CR>', { desc = 'Close all other windows'
vim.keymap.set('n', '<leader>e', ':NvimTreeToggle<CR>', { desc = 'Toggle file tree' }) vim.keymap.set('n', '<leader>e', ':NvimTreeToggle<CR>', { desc = 'Toggle file tree' })
-- Select the entire file content. -- Select the entire file content.
vim.keymap.set('n', '<leader>a', 'ggVG', { desc = 'Select entire file' }) vim.keymap.set('n', '<leader>a', 'ggVG', { desc = 'Select entire file' })
-- Run make command -- Various commands to compile different file types.
vim.keymap.set('', '<leader>r', ':update<CR> :make<CR>', { desc = 'Compile/Evaluate current file'} ) -- Groff => PDF
vim.keymap.set('n', '<leader>cg', ':!groff -ms -e %:t -T pdf > %:r.pdf<CR>', { desc = 'Compile Groff file to PDF' })
-- Typst => PDF
vim.keymap.set('n', '<leader>ct', ':!typst compile %:t<CR>', { desc = 'Compile Typst file to PDF'} )