mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
add(nvim): digestif (LS for tex)
This commit is contained in:
parent
166cdb25f5
commit
978f150401
7 changed files with 61 additions and 23 deletions
|
|
@ -4,13 +4,15 @@ vim.opt.incsearch = true
|
|||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.signcolumn = "yes"
|
||||
vim.opt.filetype = "on"
|
||||
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
|
||||
vim.opt.wrap = true
|
||||
-- wrapping makes the editor slow, turn it off by default
|
||||
vim.opt.wrap = false
|
||||
vim.opt.linebreak = true
|
||||
vim.opt.breakindent = true
|
||||
|
||||
|
|
@ -30,9 +32,13 @@ vim.opt.scrolloff = 14
|
|||
vim.opt.cmdheight = 0
|
||||
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
vim.highlight.on_yank()
|
||||
end,
|
||||
group = vim.api.nvim_create_augroup("YankHighlight", {}),
|
||||
pattern = "*",
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
||||
pattern = { "*.md", "*.tex" },
|
||||
command = "setlocal wrap"
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue