[nvim] improve config

This commit is contained in:
Julien Rabier 2023-01-10 10:05:03 +01:00
parent 7d488b7548
commit 51d15c494e
3 changed files with 30 additions and 1 deletions

View File

@ -1,3 +1,5 @@
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
vim.keymap.set("n", ",c", "<esc>2GddOTo: contact@sysnove.fr<esc>jddOCc: <esc>")
vim.keymap.set("n", "<leader>b", ":!bash gen.sh<cr><cr>")

View File

@ -1,3 +1,30 @@
-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
vim.opt.backspace = "2"
vim.opt.showcmd = true
vim.opt.laststatus = 2
vim.opt.autowrite = true
vim.opt.cursorline = true
vim.opt.autoread = true
vim.opt.shiftround = true
vim.opt.number = true
--vim.opt.completeopt = { "menuone", "noselect", "noinsert" }
vim.opt.backup = true
vim.opt.backupdir = "/home/taziden/.vim/backup"
vim.opt.hidden = true
vim.opt.ignorecase = true
vim.opt.lcs = { trail = ".", tab = ">-" }
vim.opt.list = true
vim.opt.modeline = true
vim.opt.number = true
vim.opt.showmatch = true
--vim.opt.spelllang = fr
vim.opt.undofile = true
vim.opt.undodir = "/home/taziden/.vim/undo"
vim.opt.expandtab = true
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.softtabstop = 4
vim.opt.pastetoggle = "<F2>"
vim.opt.timeoutlen = 200 -- https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration

View File

@ -1,3 +1,3 @@
indent_type = "Spaces"
indent_width = 2
column_width = 120
column_width = 120