update nvim config

update nvim config
This commit is contained in:
Václav Uruba 2023-09-02 19:31:01 +02:00
parent 39df385b2b
commit b9136b1ee0
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C
3 changed files with 81 additions and 2 deletions

View File

@ -1,4 +1,4 @@
require('packer-init')
require('core/theme')
require('core/basic-vars')
require('lazy-init')

View File

@ -10,3 +10,5 @@ vim.o.relativenumber = true
vim.o.undofile = true
vim.o.undodir = vim.fn.expand('~/.vim/undo')
vim.o.undolevels = 1024
vim.g.mapleader = " "

View File

@ -0,0 +1,77 @@
-----------------------------------------------------------
-- Plugin manager configuration file
-----------------------------------------------------------
-- Plugin manager: lazy.nvim
-- url: https://github.com/folke/lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
-- Sensible defaults
"tpope/vim-sensible",
-- Plenary
"nvim-lua/plenary.nvim",
-- Indent line
"lukas-reineke/indent-blankline.nvim",
-- CSS color
"ap/vim-css-color",
-- Symlink follow
--"aymericbeaumet/vim-symlink",
-- Git
"lewis6991/gitsigns.nvim",
-- Lastplace
"farmergreg/vim-lastplace",
-- Autopair
{
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {},
},
-- Tagbar
"preservim/tagbar",
-- Color scheme
"navarasu/onedark.nvim",
-- Surround
"tpope/vim-surround",
-- Barbar (tabline bar)
{
"romgrk/barbar.nvim",
dependencies = {
'lewis6991/gitsigns.nvim',
'nvim-tree/nvim-web-devicons',
},
},
-- Dashboard (start screen)
{
'goolord/alpha-nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function ()
require'alpha'.setup(require'alpha.themes.startify'.config)
end,
},
})