chore: Rename module table to M

That seems to be the de facto naming for module table on neovim related
stuff
This commit is contained in:
Ahmad Ansori Palembani 2024-04-17 12:21:17 +07:00
parent 88ec2ffdd7
commit 4d443c4419
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -1,6 +1,6 @@
local RT = {}
local M = {}
function RT.getch_lazy_nvim() -- Get or Fetch lazy.nvim
function M.getch_lazy_nvim() -- Get or Fetch lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({
@ -17,7 +17,7 @@ function RT.getch_lazy_nvim() -- Get or Fetch lazy.nvim
return require("lazy")
end
function RT.map(modes, key, target, opts)
function M.map(modes, key, target, opts)
local mt = {}
for mode in modes:gmatch"." do
@ -30,4 +30,4 @@ function RT.map(modes, key, target, opts)
})
end
return RT
return M