start from scratch with lazy
This commit is contained in:
commit
0ae6be8361
8 changed files with 140 additions and 0 deletions
21
init.lua
Normal file
21
init.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or 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("options")
|
||||
|
||||
opts = {
|
||||
spec = nil,
|
||||
local_spec = true,
|
||||
}
|
||||
|
||||
require("lazy").setup("plugins", opts)
|
8
lazy-lock.json
Normal file
8
lazy-lock.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"bufferline.nvim": { "branch": "main", "commit": "99337f63f0a3c3ab9519f3d1da7618ca4f91cffe" },
|
||||
"dracula.nvim": { "branch": "main", "commit": "8d8bddb8814c3e7e62d80dda65a9876f97eb699c" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "d98f537c3492e87b6dc6c2e3f66ac517528f406f" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "eb4957442e3182f051b0ae11da32e06d22c190e3" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" }
|
||||
}
|
20
lua/options.lua
Normal file
20
lua/options.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
vim.opt.autowrite = true
|
||||
vim.opt.background = "dark"
|
||||
vim.opt.clipboard = "unnamedplus"
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.laststatus = 2
|
||||
vim.opt.list = true
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.scrolloff = 10
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.showmode = false
|
||||
vim.opt.signcolumn = "yes"
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.splitbelow = true
|
||||
vim.opt.splitright = true
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.updatetime = 100
|
||||
vim.opt.wrap = false
|
30
lua/plugins/bufferline.lua
Normal file
30
lua/plugins/bufferline.lua
Normal file
|
@ -0,0 +1,30 @@
|
|||
local Plugin = { "akinsho/bufferline.nvim" }
|
||||
Plugin.version = "*"
|
||||
Plugin.dependencies = "nvim-tree/nvim-web-devicons"
|
||||
|
||||
Plugin.event = 'VeryLazy'
|
||||
|
||||
function Plugin.init()
|
||||
vim.opt.termguicolors = true
|
||||
end
|
||||
|
||||
Plugin.opts = {
|
||||
options = {
|
||||
mode = 'buffers',
|
||||
offsets = {
|
||||
{filetype = 'neo-tree'},
|
||||
},
|
||||
},
|
||||
-- :help bufferline-highlights
|
||||
highlights = {
|
||||
buffer_selected = {
|
||||
italic = false
|
||||
},
|
||||
indicator_selected = {
|
||||
fg = {attribute = 'fg', highlight = 'Function'},
|
||||
italic = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Plugin
|
16
lua/plugins/colors.lua
Normal file
16
lua/plugins/colors.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
local Plugin = { "Mofiqul/dracula.nvim" }
|
||||
|
||||
Plugin.lazy = false
|
||||
Plugin.priority = 1000
|
||||
|
||||
Plugin.opts = {
|
||||
italic_comment = true,
|
||||
show_end_of_buffer = true,
|
||||
transparent_bg = true,
|
||||
}
|
||||
|
||||
function Plugin.config()
|
||||
vim.cmd([[colorscheme dracula]])
|
||||
end
|
||||
|
||||
return Plugin
|
17
lua/plugins/ibl.lua
Normal file
17
lua/plugins/ibl.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
local Plugin = {'lukas-reineke/indent-blankline.nvim'}
|
||||
|
||||
Plugin.main = 'ibl'
|
||||
Plugin.event = {'BufReadPost', 'BufNewFile'}
|
||||
|
||||
-- See :help ibl.setup()
|
||||
Plugin.opts = {
|
||||
enabled = true,
|
||||
scope = {
|
||||
enabled = false,
|
||||
},
|
||||
indent = {
|
||||
char = '▏',
|
||||
},
|
||||
}
|
||||
|
||||
return Plugin
|
23
lua/plugins/lualine.lua
Normal file
23
lua/plugins/lualine.lua
Normal file
|
@ -0,0 +1,23 @@
|
|||
local Plugin = { "nvim-lualine/lualine.nvim" }
|
||||
Plugin.dependencies = { "nvim-tree/nvim-web-devicons" }
|
||||
|
||||
Plugin.event = "VeryLazy"
|
||||
|
||||
function Plugin.init()
|
||||
vim.opt.showmode = false
|
||||
end
|
||||
|
||||
-- See :help lualine.txt
|
||||
Plugin.opts = {
|
||||
options = {
|
||||
theme = "dracula-nvim",
|
||||
icons_enabled = true,
|
||||
component_separators = "|",
|
||||
section_separators = "",
|
||||
disabled_filetypes = {
|
||||
statusline = { "NvimTree" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return Plugin
|
5
stylua.toml
Normal file
5
stylua.toml
Normal file
|
@ -0,0 +1,5 @@
|
|||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
column_width = 120
|
||||
[sort_requires]
|
||||
enabled = true
|
Loading…
Reference in a new issue