chore(vim): Converted some config and remapping to lua

This commit is contained in:
Ahmad Ansori Palembani 2024-04-17 09:42:33 +07:00
parent ca2cb0fb11
commit 57e226d2db
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
7 changed files with 73 additions and 10 deletions

View file

@ -0,0 +1,21 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or 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({
{
"stevearc/oil.nvim",
opts = {},
dependencies = { "nvim-tree/nvim-web-devicons" },
},
"tpope/vim-commentary", -- shortcut to comment a line
})