init
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
lazy-lock.json
|
||||
10
init.lua
Normal file
10
init.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
vim.o.number = true
|
||||
vim.o.relativenumber = true
|
||||
vim.o.wrap = false
|
||||
vim.o.swapfile = false
|
||||
vim.g.mapleader = " "
|
||||
|
||||
vim.keymap.set('n', '<leader>o', ':update<CR> :source<CR>')
|
||||
|
||||
|
||||
require("config.lazy")
|
||||
27
lua/config/lazy.lua
Normal file
27
lua/config/lazy.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
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)
|
||||
|
||||
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 },
|
||||
})
|
||||
15
lua/plugins/fzf-lua.lua
Normal file
15
lua/plugins/fzf-lua.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
return {
|
||||
"ibhagwan/fzf-lua",
|
||||
-- optional for icon support
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
-- or if using mini.icons/mini.nvim
|
||||
-- dependencies = { "nvim-mini/mini.icons" },
|
||||
---@module "fzf-lua"
|
||||
---@type fzf-lua.Config|{}
|
||||
---@diagnostic disable: missing-fields
|
||||
opts = {},
|
||||
---@diagnostic enable: missing-fields
|
||||
keys = {
|
||||
{ "<leader>ff", function() require("fzf-lua").files() end, desc = "Find files" },
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user