From 4c58f4a4c8e8844c9d9fb71266ab37e80640e8d6 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Thu, 2 Nov 2023 12:28:19 +0100 Subject: [PATCH] =?UTF-8?q?feat(options):=20Mise=20=C3=A0=20jour=20des=20o?= =?UTF-8?q?ptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/user/options.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/user/options.lua b/lua/user/options.lua index 5fd5213..96af2cb 100644 --- a/lua/user/options.lua +++ b/lua/user/options.lua @@ -3,12 +3,14 @@ return { opt = { relativenumber = false, -- sets vim.opt.relativenumber cmdheight = 1, - -- number = true, -- sets vim.opt.number + scrolloff = 0, -- Set scroll offset to zero so that zt and zb work as expected -- spell = false, -- sets vim.opt.spell + spelllang = "fr", -- Set spell language to french + -- number = true, -- sets vim.opt.number -- signcolumn = "auto", -- sets vim.opt.signcolumn to auto -- wrap = false, -- sets vim.opt.wrap - scrolloff = 0 }, + g = { -- mapleader = " ", -- sets vim.g.mapleader -- autoformat_enabled = true, -- enable or disable auto formatting at start (lsp.formatting.format_on_save must be enabled) @@ -18,6 +20,7 @@ return { -- 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 }, + } -- If you need more control, you can use the function()...end notation -- return function(local_vim)