2023-05-11 18:41:27 +02:00
|
|
|
-- set vim options here (vim.<first_key>.<second_key> = value)
|
|
|
|
return {
|
|
|
|
opt = {
|
|
|
|
relativenumber = false, -- sets vim.opt.relativenumber
|
|
|
|
cmdheight = 1,
|
2023-11-02 12:28:19 +01:00
|
|
|
scrolloff = 0, -- Set scroll offset to zero so that zt and zb work as expected
|
2023-05-11 18:41:27 +02:00
|
|
|
-- spell = false, -- sets vim.opt.spell
|
2023-11-02 12:28:19 +01:00
|
|
|
spelllang = "fr", -- Set spell language to french
|
|
|
|
-- number = true, -- sets vim.opt.number
|
2023-05-11 18:41:27 +02:00
|
|
|
-- signcolumn = "auto", -- sets vim.opt.signcolumn to auto
|
|
|
|
-- wrap = false, -- sets vim.opt.wrap
|
|
|
|
},
|
2023-11-02 12:28:19 +01:00
|
|
|
|
2023-05-11 18:41:27 +02:00
|
|
|
g = {
|
|
|
|
-- mapleader = " ", -- sets vim.g.mapleader
|
|
|
|
-- autoformat_enabled = true, -- enable or disable auto formatting at start (lsp.formatting.format_on_save must be enabled)
|
|
|
|
-- cmp_enabled = true, -- enable completion at start
|
|
|
|
-- autopairs_enabled = true, -- enable autopairs at start
|
|
|
|
-- diagnostics_mode = 3, -- set the visibility of diagnostics in the UI (0=off, 1=only show in status line, 2=virtual text off, 3=all on)
|
|
|
|
-- icons_enabled = true, -- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing)
|
|
|
|
-- ui_notifications_enabled = true, -- disable notifications when toggling UI elements
|
|
|
|
},
|
2023-11-02 12:28:19 +01:00
|
|
|
|
2023-05-11 18:41:27 +02:00
|
|
|
}
|
|
|
|
-- If you need more control, you can use the function()...end notation
|
|
|
|
-- return function(local_vim)
|
|
|
|
-- local_vim.opt.relativenumber = true
|
|
|
|
-- local_vim.g.mapleader = " "
|
|
|
|
-- local_vim.opt.whichwrap = vim.opt.whichwrap - { 'b', 's' } -- removing option from list
|
|
|
|
-- local_vim.opt.shortmess = vim.opt.shortmess + { I = true } -- add to option list
|
|
|
|
--
|
|
|
|
-- return local_vim
|
|
|
|
-- end
|