initial commit
This commit is contained in:
parent
15c04b018c
commit
e00ee64dbe
9 changed files with 95 additions and 0 deletions
4
init.lua
Normal file
4
init.lua
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
vim.cmd("nnoremap <Space> <Nop>")
|
||||||
|
vim.g.mapleader = ' '
|
||||||
|
vim.cmd("set shiftwidth=4")
|
||||||
|
require("Dario48/lazy")
|
11
lazy-lock.json
Normal file
11
lazy-lock.json
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"bufferline.nvim": { "branch": "main", "commit": "6ecd37e0fa8b156099daedd2191130e083fb1490" },
|
||||||
|
"feline.nvim": { "branch": "main", "commit": "ee9f8afdbe8654001b200530903f1dcbcc3394e6" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "5a9a6ac29a7805c4783cda21b80a1e361964b3f2" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "4c75c8eeb957a99aa44ce8e526c04340ab358c5e" },
|
||||||
|
"nightfox.nvim": { "branch": "main", "commit": "6a6076bd678f825ffbe16ec97807793c3167f1a7" },
|
||||||
|
"nvim-tree.lua": { "branch": "master", "commit": "78a9ca5ed6557f29cd0ce203df44213e54bfabb9" },
|
||||||
|
"nvim-web-devicons": { "branch": "master", "commit": "5de460ca7595806044eced31e3c36c159a493857" },
|
||||||
|
"vim-be-good": { "branch": "master", "commit": "c290810728a4f75e334b07dc0f3a4cdea908d351" },
|
||||||
|
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
|
||||||
|
}
|
14
lua/Dario48/lazy.lua
Normal file
14
lua/Dario48/lazy.lua
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
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({ import = "Dario48/plugins" })
|
||||||
|
vim.keymap.set("n", "<leader>l", ":Lazy <CR>")
|
6
lua/Dario48/plugins/VimBeGood.lua
Normal file
6
lua/Dario48/plugins/VimBeGood.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
return {
|
||||||
|
'ThePrimeagen/vim-be-good',
|
||||||
|
config = function()
|
||||||
|
vim.keymap.set("n", "<leader>vbg", ":VimBeGood <CR>")
|
||||||
|
end
|
||||||
|
}
|
11
lua/Dario48/plugins/bufferline.lua
Normal file
11
lua/Dario48/plugins/bufferline.lua
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
return {
|
||||||
|
'akinsho/bufferline.nvim',
|
||||||
|
version = "*",
|
||||||
|
dependencies = 'nvim-tree/nvim-web-devicons',
|
||||||
|
config = function()
|
||||||
|
require("bufferline").setup()
|
||||||
|
vim.keymap.set("n", "<leader>bb", ":bNext <CR>")
|
||||||
|
vim.keymap.set("n", "<leader>bk", ":bdelete <CR>")
|
||||||
|
vim.keymap.set("n", "<leader>bl", ":blast <CR>")
|
||||||
|
end
|
||||||
|
}
|
10
lua/Dario48/plugins/feline.lua
Normal file
10
lua/Dario48/plugins/feline.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
'freddiehaddad/feline.nvim',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-tree/nvim-web-devicons',
|
||||||
|
'lewis6991/gitsigns.nvim',
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require('feline').setup()
|
||||||
|
end
|
||||||
|
}
|
8
lua/Dario48/plugins/nightfox.lua
Normal file
8
lua/Dario48/plugins/nightfox.lua
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
return {
|
||||||
|
"EdenEast/nightfox.nvim",
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
vim.opt.termguicolors = true
|
||||||
|
vim.cmd("colorscheme carbonfox")
|
||||||
|
end
|
||||||
|
}
|
22
lua/Dario48/plugins/nvim-tree.lua
Normal file
22
lua/Dario48/plugins/nvim-tree.lua
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
return {
|
||||||
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
dependencies = {'nvim-tree/nvim-web-devicons'},
|
||||||
|
config = function()
|
||||||
|
-- disable netrw at the very start of your init.lua
|
||||||
|
vim.g.loaded_netrw = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
|
||||||
|
-- set termguicolors to enable highlight groups
|
||||||
|
vim.opt.termguicolors = true
|
||||||
|
|
||||||
|
-- empty setup using defaults
|
||||||
|
require("nvim-tree").setup()
|
||||||
|
local focus = function()
|
||||||
|
vim.cmd("NvimTreeClose")
|
||||||
|
vim.cmd("NvimTreeOpen")
|
||||||
|
end
|
||||||
|
vim.cmd([[command! NvimTreeFocus lua require("nvim-tree").focus() ]])
|
||||||
|
vim.keymap.set("n", "<leader>ee", ":NvimTreeToggle <CR>")
|
||||||
|
vim.keymap.set("n", "<leader>ef", ":NvimTreeFocus <CR>")
|
||||||
|
end
|
||||||
|
}
|
9
lua/Dario48/plugins/whichkey.lua
Normal file
9
lua/Dario48/plugins/whichkey.lua
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
return {
|
||||||
|
"folke/which-key.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
init = function()
|
||||||
|
vim.o.timeout = true
|
||||||
|
vim.o.timeoutlen = 300
|
||||||
|
end,
|
||||||
|
opts = {}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue