[nvim] improve config

This commit is contained in:
Julien Rabier 2023-01-24 08:54:14 +01:00
parent 299dcc6055
commit 6d59c70652
2 changed files with 38 additions and 32 deletions

View File

@ -10,11 +10,12 @@ require("lazy").setup({
spec = {
-- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- import/override with your plugins
{ import = "plugins" },
-- import any extras modules here
-- { import = "lazyvim.plugins.extras.lang.typescript" },
-- { import = "lazyvim.plugins.extras.lang.json" },
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
-- import/override with your plugins
{ import = "plugins" },
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
},
defaults = {
@ -27,7 +28,7 @@ require("lazy").setup({
-- version = "*", -- try installing the latest stable version for plugins that support semver
},
install = { colorscheme = { "tokyonight", "habamax" } },
checker = { enabled = true }, -- automatically check for plugin updates
checker = { enabled = false }, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins

View File

@ -1,38 +1,43 @@
-- 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
local opt = vim.opt
opt.backspace = "2"
opt.showcmd = true
opt.laststatus = 2
opt.autowrite = true
opt.cursorline = true
opt.autoread = true
opt.shiftround = true
opt.number = true
--opt.completeopt = { "menuone", "noselect", "noinsert" }
opt.backup = true
{{- if eq .chezmoi.hostname "taupo" }}
vim.opt.backupdir = "/home/taziden/.vim/backup"
opt.backupdir = "/home/taziden/.vim/backup"
{{ else }}
vim.opt.backupdir = "/home/jrabier/.vim/backup"
opt.backupdir = "/home/jrabier/.vim/backup"
{{ end }}
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
opt.hidden = true
opt.ignorecase = true
opt.lcs = { trail = ".", tab = ">-" }
opt.list = true
opt.modeline = true
opt.number = true
opt.showmatch = true
--opt.spelllang = fr
opt.undofile = true
{{- if eq .chezmoi.hostname "taupo" }}
vim.opt.undodir = "/home/taziden/.vim/undo"
opt.undodir = "/home/taziden/.vim/undo"
{{ else }}
vim.opt.undodir = "/home/jrabier/.vim/undo"
opt.undodir = "/home/jrabier/.vim/undo"
{{ end }}
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
opt.expandtab = true
opt.tabstop = 4
opt.shiftwidth = 4
opt.softtabstop = 4
opt.pastetoggle = "<F2>"
opt.timeoutlen = 200 -- https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration
opt.mouse = "a"
opt.spelllang = { "fr" }
opt.wrap = true