initial commit

This commit is contained in:
xesc 2023-12-09 15:46:50 +01:00
commit 48bd259cd8
29 changed files with 1107 additions and 0 deletions

4
ftplugin/netrw.lua Normal file
View file

@ -0,0 +1,4 @@
vim.api.nvim_buf_set_keymap(0, "n", "<C-l>", "<C-w>l", {})
vim.api.nvim_buf_set_keymap(0, "n", "<C-k>", "<C-w>k", {})
vim.api.nvim_buf_set_keymap(0, "n", "<C-j>", "<C-w>j", {})
vim.api.nvim_buf_set_keymap(0, "n", "<C-h>", "<C-w>h", {})

3
ftplugin/python.lua Normal file
View file

@ -0,0 +1,3 @@
setlocal tabstop = 4
setlocal softtabstop = 4
setlocal shiftwidth = 4

10
ftplugin/tex.lua Normal file
View file

@ -0,0 +1,10 @@
-- Compile LaTeX from file
vim.api.nvim_buf_set_keymap(0, "n", "<leader>cc", ":exec 'w' <bar> :exec '!xelatex %'<cr>", {})
vim.api.nvim_buf_set_keymap(0, "n", "<F5>", ":exec 'w' <bar> :exec 'w' <bar> :exec '!xelatex %'<cr>", {})
vim.api.nvim_buf_set_keymap(0, "i", "<F5>", "<esc> :exec 'w' <bar> :exec '!xelatex %'<cr>", {})
vim.api.nvim_buf_set_keymap(0, "v", "<F5>", "<esc> :exec 'w' <bar> :exec '!xelatex %'<cr>", {})
-- Open PDF-Viewer from LaTeX-file
vim.api.nvim_buf_set_keymap(0, "n", "<F6>", ":silent !zathura --fork %:r.pdf& <cr>", {})
vim.api.nvim_buf_set_keymap(0, "i", "<F6>", "<esc> :silent !zathura --fork %:r.pdf& <cr>", {})
vim.api.nvim_buf_set_keymap(0, "v", "<F6>", "<esc> :silent !zathura --fork %:r.pdf& <cr>", {})