Fixed comment issue in conf.kbd & added compile commands for groff and typst documents in neovim config
This commit is contained in:
parent
33e4a081e2
commit
25d776ccf6
2 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 |
|
||||
-- ===================================
|
||||
-- ====================================
|
||||
-- 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', '<leader>o', ':only<CR>', { desc = 'Close all other windows'
|
|||
vim.keymap.set('n', '<leader>e', ':NvimTreeToggle<CR>', { desc = 'Toggle file tree' })
|
||||
-- Select the entire file content.
|
||||
vim.keymap.set('n', '<leader>a', 'ggVG', { desc = 'Select entire file' })
|
||||
-- Run make command
|
||||
vim.keymap.set('', '<leader>r', ':update<CR> :make<CR>', { desc = 'Compile/Evaluate current file'} )
|
||||
-- Various commands to compile different file types.
|
||||
-- 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'} )
|
||||
Loading…
Add table
Add a link
Reference in a new issue