---
# System prepended metadata

title: lua用法

---

# lua用法
[toc]
## basic
:::success
* :lua print(vim.inspect(package.loaded))
* :lua package.loaded['pttrnRid']=nil
* [luaGuide](https://github.com/nanotee/nvim-lua-guide)
:::
## luaUsage
:::success
local set = vim.opt
-- Set the behavior of tab
set.tabstop = 2
set.shiftwidth = 2
set.softtabstop = 2
set.expandtab = true
:::
