first commit
This commit is contained in:
parent
6f97961493
commit
de76d823e7
4
init.lua
Normal file
4
init.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
require("config.lazy")
|
||||||
|
require("config.options")
|
||||||
|
require("config.keymaping")
|
||||||
|
|
4
lua/config/keymaping.lua
Normal file
4
lua/config/keymaping.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
local map = vim.keymap.set
|
||||||
|
|
||||||
|
map("n", "<leader>e", ":Neotree<CR>", { desc = "nvimtree focus window" })
|
||||||
|
|
35
lua/config/lazy.lua
Normal file
35
lua/config/lazy.lua
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
-- 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 = "\\"
|
||||||
|
|
||||||
|
-- Setup lazy.nvim
|
||||||
|
require("lazy").setup({
|
||||||
|
spec = {
|
||||||
|
-- import your plugins
|
||||||
|
{ import = "plugins" },
|
||||||
|
},
|
||||||
|
-- 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 },
|
||||||
|
})
|
16
lua/config/options.lua
Normal file
16
lua/config/options.lua
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
local opt = vim.opt
|
||||||
|
local o = vim.o
|
||||||
|
local g = vim.g
|
||||||
|
|
||||||
|
g.mapleader = " "
|
||||||
|
|
||||||
|
o.laststatus = 2
|
||||||
|
o.showmode = false
|
||||||
|
|
||||||
|
o.clipboard = "unnamedplus"
|
||||||
|
o.cursorline = true
|
||||||
|
o.cursorlineopt = "number"
|
||||||
|
|
||||||
|
o.number = true
|
||||||
|
o.numberwidth = 2
|
||||||
|
o.ruler = false
|
7
lua/plugins/blankline.lua
Normal file
7
lua/plugins/blankline.lua
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
return {
|
||||||
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
|
main = "ibl",
|
||||||
|
---@module "ibl"
|
||||||
|
---@type ibl.config
|
||||||
|
opts = {},
|
||||||
|
}
|
12
lua/plugins/gitsigns.lua
Normal file
12
lua/plugins/gitsigns.lua
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
return {
|
||||||
|
"lewis6991/gitsigns.nvim",
|
||||||
|
event = "User FilePost",
|
||||||
|
opts = function()
|
||||||
|
return {
|
||||||
|
signs = {
|
||||||
|
delete = { text = "" },
|
||||||
|
changedelete = { text = "" },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
1
lua/plugins/init.lua
Normal file
1
lua/plugins/init.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
return {}
|
7
lua/plugins/lualine.lua
Normal file
7
lua/plugins/lualine.lua
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
return {
|
||||||
|
'nvim-lualine/lualine.nvim',
|
||||||
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
|
config = function()
|
||||||
|
require('lualine').setup()
|
||||||
|
end
|
||||||
|
}
|
10
lua/plugins/neo-tree.lua
Normal file
10
lua/plugins/neo-tree.lua
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
return {
|
||||||
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
branch = "v3.x",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||||
|
}
|
||||||
|
}
|
6
lua/plugins/onedark.lua
Normal file
6
lua/plugins/onedark.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
"navarasu/onedark.nvim",
|
||||||
|
config = function()
|
||||||
|
require('onedark').load()
|
||||||
|
end,
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user