First commit
This commit is contained in:
commit
b99375976e
24 changed files with 855 additions and 0 deletions
50
private_dot_config/nvim/init.lua
Normal file
50
private_dot_config/nvim/init.lua
Normal file
|
@ -0,0 +1,50 @@
|
|||
require("config.lazy")
|
||||
|
||||
local hipatterns = require('mini.hipatterns')
|
||||
local base16 = require('mini.base16')
|
||||
|
||||
require('mini.comment').setup()
|
||||
require('mini.completion').setup()
|
||||
require('mini.pairs').setup()
|
||||
require('mini.basics').setup()
|
||||
require('mini.bracketed').setup()
|
||||
require('mini.clue').setup()
|
||||
require('mini.diff').setup()
|
||||
require('mini.extra').setup()
|
||||
require('mini.files').setup()
|
||||
require('mini.git').setup()
|
||||
require('mini.misc').setup()
|
||||
require('mini.pick').setup()
|
||||
require('mini.sessions').setup()
|
||||
require('mini.cursorword').setup()
|
||||
require('mini.icons').setup()
|
||||
require('mini.indentscope').setup()
|
||||
require('mini.notify').setup()
|
||||
require('mini.statusline').setup()
|
||||
require('mini.tabline').setup()
|
||||
require('mini.trailspace').setup()
|
||||
base16.setup({
|
||||
palette = {
|
||||
base00 = "#151515",
|
||||
base01 = "#1f1f1f",
|
||||
base02 = "#2e2e2e",
|
||||
base03 = "#424242",
|
||||
base04 = "#bbb6b6",
|
||||
base05 = "#e8e3e3",
|
||||
base06 = "#e8e3e3",
|
||||
base07 = "#e8e3e3",
|
||||
base08 = "#b66467",
|
||||
base09 = "#b66467",
|
||||
base0A = "#d9bc8c",
|
||||
base0B = "#8c977d",
|
||||
base0C = "#8aa6a2",
|
||||
base0D = "#8da3b9",
|
||||
base0E = "#a988b0",
|
||||
base0F = "#b66467",
|
||||
}
|
||||
})
|
||||
hipatterns.setup({
|
||||
highlighters = {
|
||||
hex_color = hipatterns.gen_highlighter.hex_color(),
|
||||
},
|
||||
})
|
4
private_dot_config/nvim/lazy-lock.json
Normal file
4
private_dot_config/nvim/lazy-lock.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||
"mini.nvim": { "branch": "main", "commit": "0420076298c4457f200c2de468f65d080597a347" }
|
||||
}
|
41
private_dot_config/nvim/lua/config/lazy.lua
Normal file
41
private_dot_config/nvim/lua/config/lazy.lua
Normal file
|
@ -0,0 +1,41 @@
|
|||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.tabstop = 8
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.number = true
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- import your plugins
|
||||
{ 'echasnovski/mini.nvim', version = '*' },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
-- install = { colorscheme = { "habamax" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue