1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 19:41:15 +02:00

nvim: changed vim commands calling lua to just lua

This commit is contained in:
2023-09-20 04:31:45 +02:00
parent e81a8a8bd5
commit 3a017af400
3 changed files with 16 additions and 28 deletions

View File

@@ -6,3 +6,6 @@ vim.api.nvim_create_autocmd({ 'BufEnter', 'FileType' },
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 100
-- iamcco/markdown-preview.nvim
vim.keymap.set('n', '<leader>p', ':MarkdownPreviewToggle<CR>', { noremap = true })

View File

@@ -5,3 +5,6 @@ vim.api.nvim_create_autocmd({ 'VimLeave' },
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
-- frabjous/knap
vim.keymap.set('n', '<leader>p', require("knap").toggle_autopreviewing, { noremap = true })