New indentation
This commit is contained in:
parent
d7f5bb5174
commit
d4f1afb711
14
init.lua
14
init.lua
@ -32,7 +32,7 @@ require('packer').startup(function(use)
|
|||||||
-- 'rcarriga/nvim-notify' -- laisser fidget s'en occuper
|
-- 'rcarriga/nvim-notify' -- laisser fidget s'en occuper
|
||||||
}
|
}
|
||||||
} -- replaces the UI for messages, cmdline and the popupmenu.
|
} -- 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 'junegunn/goyo.vim' -- Distraction-free writing in Vim
|
||||||
-- use 'xiyaowong/nvim-transparent'
|
-- use 'xiyaowong/nvim-transparent'
|
||||||
|
|
||||||
@ -149,10 +149,12 @@ vim.g.mapleader = ' '
|
|||||||
vim.opt.relativenumber = true -- show relative numbers in gutter
|
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.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.tabstop = 8 -- nombre d'espaces pour une tabulation
|
||||||
vim.opt.shiftwidth = 2 -- spaces per tab
|
vim.opt.shiftwidth = 8 -- nombre d'espaces utilisé par l'indentation
|
||||||
vim.opt.expandtab = true -- always use spaces instead of tabs
|
vim.opt.expandtab = true -- remplace les tabulations par des espaces
|
||||||
vim.opt.smartindent = true
|
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.ignorecase = true -- Ignore la casse lors d'une recherche
|
||||||
vim.opt.smartcase = true -- Sauf si une recherche contient une majuscule
|
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" },
|
additional_vim_regex_highlighting = { "markdown" },
|
||||||
},
|
},
|
||||||
indent = {
|
indent = {
|
||||||
enable = true,
|
enable = false,
|
||||||
},
|
},
|
||||||
autotag = {
|
autotag = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
Reference in New Issue
Block a user