blob: 2b2f2c5d9094765f0cb253315ad97de664367b56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
vim.opt_local.textwidth = vim.g.dotfiles.textwidth.lua -- gw wraps at this value
vim.opt_local.colorcolumn = "+1" -- Highlight one column after 'textwidth'
vim.opt_local.complete = {
"o", -- 'omnifunc'
"F", -- 'completefunc' (snippet source, see plugin/50-completion.lua)
}
vim.b.format = true -- See plugin/50-format.lua
------------------------------------------------------------------------------------------------------------------------
-- Snippets
------------------------------------------------------------------------------------------------------------------------
-- Trigger word -> LSP snippet body. `$1` mirrors the `${1:X}` placeholder, so the variable is typed once.
-- Surfaced in the completion menu via the "F" source in 'complete' above (see plugin/50-completion.lua).
vim.b.snippets = {
["debug_print"] = 'vim.print("${1:X} = " .. vim.inspect($1))',
}
vim.bo.completefunc = "v:lua.dotfiles_snippet_source"
|