From 4d443c4419f877f6096e8f50c5f18221395c0507 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Wed, 17 Apr 2024 12:21:17 +0700 Subject: [PATCH] chore: Rename module table to M That seems to be the de facto naming for module table on neovim related stuff --- .config/nvim/lua/null/util.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/null/util.lua b/.config/nvim/lua/null/util.lua index 17a8018..75b39d7 100644 --- a/.config/nvim/lua/null/util.lua +++ b/.config/nvim/lua/null/util.lua @@ -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