diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-09-12 21:23:56 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-09-12 21:23:56 +0200 |
commit | a5ce2d3ea526e3b5f0684e935c5d8fc861eb507b (patch) | |
tree | 2333768664dc81e33b92388ceac3efea2c45aa5d | |
parent | a2bb0884a4561c85e22a072cfffbcba2e82755be (diff) |
Use snake_case for ‘set_tab_width()’
-rw-r--r-- | .config/nvim/after/ftplugin/c.lua | 2 | ||||
-rw-r--r-- | .config/nvim/after/ftplugin/go.lua | 2 | ||||
-rw-r--r-- | .config/nvim/after/ftplugin/html.lua | 2 | ||||
-rw-r--r-- | .config/nvim/after/ftplugin/lua.lua | 3 | ||||
-rw-r--r-- | .config/nvim/after/ftplugin/mail.lua | 2 | ||||
-rw-r--r-- | .config/nvim/after/plugin/gsp.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/mango/lib.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/mango/set.lua | 2 |
8 files changed, 10 insertions, 7 deletions
diff --git a/.config/nvim/after/ftplugin/c.lua b/.config/nvim/after/ftplugin/c.lua index f37ef07..01efc8f 100644 --- a/.config/nvim/after/ftplugin/c.lua +++ b/.config/nvim/after/ftplugin/c.lua @@ -1,3 +1,3 @@ local lib = require('mango.lib') -lib.setTabWidth(8, true) +lib.set_tab_width(8, true) diff --git a/.config/nvim/after/ftplugin/go.lua b/.config/nvim/after/ftplugin/go.lua index f37ef07..01efc8f 100644 --- a/.config/nvim/after/ftplugin/go.lua +++ b/.config/nvim/after/ftplugin/go.lua @@ -1,3 +1,3 @@ local lib = require('mango.lib') -lib.setTabWidth(8, true) +lib.set_tab_width(8, true) diff --git a/.config/nvim/after/ftplugin/html.lua b/.config/nvim/after/ftplugin/html.lua index 4a52958..50a85a4 100644 --- a/.config/nvim/after/ftplugin/html.lua +++ b/.config/nvim/after/ftplugin/html.lua @@ -1,3 +1,3 @@ local lib = require('mango.lib') -lib.setTabWidth(2, true) +lib.set_tab_width(2, true) diff --git a/.config/nvim/after/ftplugin/lua.lua b/.config/nvim/after/ftplugin/lua.lua new file mode 100644 index 0000000..7f8d336 --- /dev/null +++ b/.config/nvim/after/ftplugin/lua.lua @@ -0,0 +1,3 @@ +local lib = require('mango.lib') + +lib.set_tab_width(4, true) diff --git a/.config/nvim/after/ftplugin/mail.lua b/.config/nvim/after/ftplugin/mail.lua index c6bb6a2..599950a 100644 --- a/.config/nvim/after/ftplugin/mail.lua +++ b/.config/nvim/after/ftplugin/mail.lua @@ -1,5 +1,5 @@ local lib = require('mango.lib') -lib.setTabWidth(2, true) +lib.set_tab_width(2, true) vim.opt_local.expandtab = true vim.opt_local.textwidth = 73 diff --git a/.config/nvim/after/plugin/gsp.lua b/.config/nvim/after/plugin/gsp.lua index 4a52958..50a85a4 100644 --- a/.config/nvim/after/plugin/gsp.lua +++ b/.config/nvim/after/plugin/gsp.lua @@ -1,3 +1,3 @@ local lib = require('mango.lib') -lib.setTabWidth(2, true) +lib.set_tab_width(2, true) diff --git a/.config/nvim/lua/mango/lib.lua b/.config/nvim/lua/mango/lib.lua index 60857c8..71fbc08 100644 --- a/.config/nvim/lua/mango/lib.lua +++ b/.config/nvim/lua/mango/lib.lua @@ -1,6 +1,6 @@ local M = {} -function M.setTabWidth(tw, localp) +function M.set_tab_width(tw, localp) local opt = localp and vim.opt_local or vim.opt opt.tabstop = tw diff --git a/.config/nvim/lua/mango/set.lua b/.config/nvim/lua/mango/set.lua index 9428df5..0ef61ff 100644 --- a/.config/nvim/lua/mango/set.lua +++ b/.config/nvim/lua/mango/set.lua @@ -5,7 +5,7 @@ local opt = vim.opt opt.nu = true opt.relativenumber = true -lib.setTabWidth(4) +lib.set_tab_width(4) opt.expandtab = false opt.smartindent = true |