first commit
This commit is contained in:
commit
2a3645676c
|
|
@ -0,0 +1,3 @@
|
|||
require("core.config")
|
||||
require("core.mappings")
|
||||
require("core.lazy")
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "42d6aed4e94e0f0bbced16bbdcc42f57673bd75e" },
|
||||
"gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" },
|
||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "803353450c374192393f5387b6a0176d0972b848" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
-- Line numbers
|
||||
vim.wo.nu = true
|
||||
vim.wo.relativenumber = true
|
||||
|
||||
-- Mouse enable
|
||||
vim.opt.mouse = "a"
|
||||
vim.opt.mousefocus = true
|
||||
|
||||
-- Clipboard
|
||||
vim.opt.clipboard ="unnamedplus"
|
||||
|
||||
-- Indent Settings
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
|
||||
-- Other
|
||||
vim.opt.scrolloff = 8
|
||||
vim.opt.wrap = false
|
||||
vim.opt.termguicolors = true
|
||||
|
|
@ -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 = { "grovbox" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
})
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
-- Leader
|
||||
vim.g.mapleader = ","
|
||||
|
||||
-- Buffers
|
||||
vim.keymap.set("n", "<leader>w", "<cmd>w<cr>")
|
||||
vim.keymap.set("n", "<leader>q", "<cmd>q<cr>")
|
||||
|
||||
-- Insert mode
|
||||
vim.keymap.set("i", "jj", "<esc>")
|
||||
|
||||
-- Navigation split
|
||||
vim.keymap.set("n", "<c-w>", ":wincmd k<cr>")
|
||||
vim.keymap.set("n", "<c-s>", ":wincmd j<cr>")
|
||||
vim.keymap.set("n", "<c-d>", ":wincmd l<cr>")
|
||||
vim.keymap.set("n", "<c-a>", ":wincmd h<cr>")
|
||||
|
||||
-- Splits
|
||||
vim.keymap.set("n", "<c-w>", ":wincmd k<cr>")
|
||||
vim.keymap.set("n", "<c-s>", ":wincmd j<cr>")
|
||||
vim.keymap.set("n", "<c-d>", ":wincmd l<cr>")
|
||||
vim.keymap.set("n", "<c-a>", ":wincmd h<cr>")
|
||||
|
||||
-- Navidation
|
||||
vim.keymap.set("n", "<S-w>", "k")
|
||||
vim.keymap.set("n", "<S-s>", "j")
|
||||
vim.keymap.set("n", "<S-d>", "l")
|
||||
vim.keymap.set("n", "<S-a>", "h")
|
||||
|
||||
-- Neo-tree
|
||||
vim.keymap.set("n", "<leader>e", "<cmd>Neotree toggle<cr>")
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
config = function()
|
||||
require('gitsigns').setup {}
|
||||
end
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
"ellisonleao/gruvbox.nvim",
|
||||
config = function()
|
||||
require("gruvbox").setup({
|
||||
transparent_mode = true,
|
||||
})
|
||||
vim.cmd("colorscheme gruvbox")
|
||||
end
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- optional, but recommended
|
||||
},
|
||||
lazy = false, -- neo-tree will lazily load itself
|
||||
}
|
||||
Loading…
Reference in New Issue