From d4f1afb711689b618c080c37f95866e575fc47ed Mon Sep 17 00:00:00 2001 From: Yann Date: Tue, 26 Nov 2024 16:41:06 +0100 Subject: [PATCH] New indentation --- init.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 68a119f..a65e1e1 100644 --- a/init.lua +++ b/init.lua @@ -32,7 +32,7 @@ require('packer').startup(function(use) -- 'rcarriga/nvim-notify' -- laisser fidget s'en occuper } } -- replaces the UI for messages, cmdline and the popupmenu. - use 'yggdroot/indentline' -- Display vertical lines at each indentation + -- use 'yggdroot/indentline' -- Display vertical lines at each indentation -- use 'junegunn/goyo.vim' -- Distraction-free writing in Vim -- use 'xiyaowong/nvim-transparent' @@ -149,10 +149,12 @@ vim.g.mapleader = ' ' vim.opt.relativenumber = true -- show relative numbers in gutter vim.opt.number = true -- affiche le numéro absolu de la ligne active lorsque que relativenumber est activé -vim.opt.tabstop = 2 -- spaces per tab -vim.opt.shiftwidth = 2 -- spaces per tab -vim.opt.expandtab = true -- always use spaces instead of tabs -vim.opt.smartindent = true +vim.opt.tabstop = 8 -- nombre d'espaces pour une tabulation +vim.opt.shiftwidth = 8 -- nombre d'espaces utilisé par l'indentation +vim.opt.expandtab = true -- remplace les tabulations par des espaces +vim.opt.smartindent = true -- indentation automatique à la création d'une nouvelle ligne +vim.opt.smarttab = true -- sur un backspace, supprime l'équivalent d'une tabulation plutôt qu'un espace +vim.opt.colorcolumn = "80,100" vim.opt.ignorecase = true -- Ignore la casse lors d'une recherche vim.opt.smartcase = true -- Sauf si une recherche contient une majuscule @@ -406,7 +408,7 @@ require'nvim-treesitter.configs'.setup { additional_vim_regex_highlighting = { "markdown" }, }, indent = { - enable = true, + enable = false, }, autotag = { enable = true,