mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref: unified to spaces
This commit is contained in:
parent
81ae302855
commit
c3a3e04571
12 changed files with 276 additions and 276 deletions
|
|
@ -36,31 +36,31 @@ opt.scrolloff = 3
|
|||
opt.colorcolumn = "80"
|
||||
|
||||
api.nvim_create_autocmd("TextYankPost", {
|
||||
pattern = "*",
|
||||
callback = function() vim.highlight.on_yank() end,
|
||||
pattern = "*",
|
||||
callback = function() vim.highlight.on_yank() end,
|
||||
})
|
||||
|
||||
opt.listchars = {
|
||||
tab = " ",
|
||||
trail = "␣",
|
||||
tab = " ",
|
||||
trail = "␣",
|
||||
}
|
||||
opt.list = true
|
||||
|
||||
api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "markdown", "tex", "typst" },
|
||||
callback = function()
|
||||
vim.cmd("setlocal wrap")
|
||||
end,
|
||||
pattern = { "markdown", "tex", "typst" },
|
||||
callback = function()
|
||||
vim.cmd("setlocal wrap")
|
||||
end,
|
||||
})
|
||||
|
||||
api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "rust" },
|
||||
callback = function() vim.cmd("setlocal iskeyword+=&") end,
|
||||
pattern = { "rust" },
|
||||
callback = function() vim.cmd("setlocal iskeyword+=&") end,
|
||||
})
|
||||
|
||||
api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "fish" },
|
||||
callback = function() vim.cmd("setlocal iskeyword+=$") end,
|
||||
pattern = { "fish" },
|
||||
callback = function() vim.cmd("setlocal iskeyword+=$") end,
|
||||
})
|
||||
|
||||
vim.filetype.add({ extension = { typ = "typst" } })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue