update
This commit is contained in:
parent
eba8d49b13
commit
9d9f2b1e84
1 changed files with 16 additions and 9 deletions
25
init.lua
25
init.lua
|
|
@ -1,3 +1,6 @@
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
-- Bootstrap
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
|
|
@ -10,6 +13,9 @@ if not vim.loop.fs_stat(lazypath) then
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
-- Basic settings
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
vim.opt.autoread = true
|
vim.opt.autoread = true
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
|
|
@ -27,6 +33,9 @@ vim.opt.wrap = false
|
||||||
vim.opt.title = true
|
vim.opt.title = true
|
||||||
vim.opt.titlestring = [[%{fnamemodify(getcwd(), ':t')}]]
|
vim.opt.titlestring = [[%{fnamemodify(getcwd(), ':t')}]]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
-- VSCode
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
if vim.g.vscode then
|
if vim.g.vscode then
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
{
|
{
|
||||||
|
|
@ -72,6 +81,9 @@ if vim.g.vscode then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
-- Plugins
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
||||||
{
|
{
|
||||||
|
|
@ -142,17 +154,12 @@ require("lazy").setup({
|
||||||
{
|
{
|
||||||
'romgrk/barbar.nvim',
|
'romgrk/barbar.nvim',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status
|
'lewis6991/gitsigns.nvim',
|
||||||
'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons
|
'nvim-tree/nvim-web-devicons',
|
||||||
},
|
},
|
||||||
init = function() vim.g.barbar_auto_setup = false end,
|
init = function() vim.g.barbar_auto_setup = false end,
|
||||||
opts = {
|
opts = {},
|
||||||
-- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default:
|
version = '^1.0.0',
|
||||||
-- animation = true,
|
|
||||||
-- insert_at_start = true,
|
|
||||||
-- …etc.
|
|
||||||
},
|
|
||||||
version = '^1.0.0', -- optional: only update when a new 1.x version is released
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/zen-mode.nvim",
|
"folke/zen-mode.nvim",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue