[nvim] improve config
This commit is contained in:
parent
299dcc6055
commit
6d59c70652
@ -10,11 +10,12 @@ require("lazy").setup({
|
|||||||
spec = {
|
spec = {
|
||||||
-- add LazyVim and import its plugins
|
-- add LazyVim and import its plugins
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
-- import/override with your plugins
|
|
||||||
{ import = "plugins" },
|
|
||||||
-- import any extras modules here
|
-- import any extras modules here
|
||||||
-- { import = "lazyvim.plugins.extras.lang.typescript" },
|
-- { import = "lazyvim.plugins.extras.lang.typescript" },
|
||||||
-- { import = "lazyvim.plugins.extras.lang.json" },
|
-- { 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" },
|
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||||
},
|
},
|
||||||
defaults = {
|
defaults = {
|
||||||
@ -27,7 +28,7 @@ require("lazy").setup({
|
|||||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||||
},
|
},
|
||||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||||
checker = { enabled = true }, -- automatically check for plugin updates
|
checker = { enabled = false }, -- automatically check for plugin updates
|
||||||
performance = {
|
performance = {
|
||||||
rtp = {
|
rtp = {
|
||||||
-- disable some rtp plugins
|
-- disable some rtp plugins
|
||||||
|
|||||||
@ -1,38 +1,43 @@
|
|||||||
-- Options are automatically loaded before lazy.nvim startup
|
-- 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
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
-- Add any additional options here
|
-- Add any additional options here
|
||||||
vim.opt.backspace = "2"
|
local opt = vim.opt
|
||||||
vim.opt.showcmd = true
|
|
||||||
vim.opt.laststatus = 2
|
opt.backspace = "2"
|
||||||
vim.opt.autowrite = true
|
opt.showcmd = true
|
||||||
vim.opt.cursorline = true
|
opt.laststatus = 2
|
||||||
vim.opt.autoread = true
|
opt.autowrite = true
|
||||||
vim.opt.shiftround = true
|
opt.cursorline = true
|
||||||
vim.opt.number = true
|
opt.autoread = true
|
||||||
--vim.opt.completeopt = { "menuone", "noselect", "noinsert" }
|
opt.shiftround = true
|
||||||
vim.opt.backup = true
|
opt.number = true
|
||||||
|
--opt.completeopt = { "menuone", "noselect", "noinsert" }
|
||||||
|
opt.backup = true
|
||||||
{{- if eq .chezmoi.hostname "taupo" }}
|
{{- if eq .chezmoi.hostname "taupo" }}
|
||||||
vim.opt.backupdir = "/home/taziden/.vim/backup"
|
opt.backupdir = "/home/taziden/.vim/backup"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
vim.opt.backupdir = "/home/jrabier/.vim/backup"
|
opt.backupdir = "/home/jrabier/.vim/backup"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
vim.opt.hidden = true
|
opt.hidden = true
|
||||||
vim.opt.ignorecase = true
|
opt.ignorecase = true
|
||||||
vim.opt.lcs = { trail = ".", tab = ">-" }
|
opt.lcs = { trail = ".", tab = ">-" }
|
||||||
vim.opt.list = true
|
opt.list = true
|
||||||
vim.opt.modeline = true
|
opt.modeline = true
|
||||||
vim.opt.number = true
|
opt.number = true
|
||||||
vim.opt.showmatch = true
|
opt.showmatch = true
|
||||||
--vim.opt.spelllang = fr
|
--opt.spelllang = fr
|
||||||
vim.opt.undofile = true
|
opt.undofile = true
|
||||||
{{- if eq .chezmoi.hostname "taupo" }}
|
{{- if eq .chezmoi.hostname "taupo" }}
|
||||||
vim.opt.undodir = "/home/taziden/.vim/undo"
|
opt.undodir = "/home/taziden/.vim/undo"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
vim.opt.undodir = "/home/jrabier/.vim/undo"
|
opt.undodir = "/home/jrabier/.vim/undo"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
vim.opt.expandtab = true
|
opt.expandtab = true
|
||||||
vim.opt.tabstop = 4
|
opt.tabstop = 4
|
||||||
vim.opt.shiftwidth = 4
|
opt.shiftwidth = 4
|
||||||
vim.opt.softtabstop = 4
|
opt.softtabstop = 4
|
||||||
vim.opt.pastetoggle = "<F2>"
|
opt.pastetoggle = "<F2>"
|
||||||
vim.opt.timeoutlen = 200 -- https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration
|
opt.timeoutlen = 200 -- https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration
|
||||||
|
opt.mouse = "a"
|
||||||
|
opt.spelllang = { "fr" }
|
||||||
|
opt.wrap = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user