32 lines
649 B
Lua
32 lines
649 B
Lua
local set = vim.opt
|
|
set.tabstop = 4
|
|
set.softtabstop = 4
|
|
set.shiftwidth = 4
|
|
--set.noexpandtab = true
|
|
set.mouse = "a"
|
|
set.clipboard = "unnamedplus"
|
|
set.hlsearch = true
|
|
set.autoindent = true
|
|
set.ttyfast = true
|
|
set.number = true
|
|
set.relativenumber = true
|
|
set.rnu = true
|
|
set.swapfile = false
|
|
|
|
vim.filetype.add({
|
|
pattern = {
|
|
['.*%.pl'] = 'prolog',
|
|
['.*%.prolog'] = 'prolog',
|
|
['.*%.php.m4'] = 'php',
|
|
}
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
|
pattern = { "*" },
|
|
command = [[%s/\s\+$//e]],
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
|
pattern = { "*.md" },
|
|
command = 'silent !pandoc % --output=/home/freya/.temp.pdf'
|
|
})
|