diff options
author | Squibid <me@zacharyscheiman.com> | 2024-02-05 22:30:55 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-02-05 22:30:55 -0500 |
commit | 119127accf284ca1c3163226e070ba3412629993 (patch) | |
tree | 3fdf9c96ea29304bd6122e15bb6d435a7c7339f5 /after/plugin | |
parent | d94b454eb61a0d0a99f9939560506c2db24f3315 (diff) | |
download | nvim-119127accf284ca1c3163226e070ba3412629993.tar.gz nvim-119127accf284ca1c3163226e070ba3412629993.tar.bz2 nvim-119127accf284ca1c3163226e070ba3412629993.zip |
un-object orient some functions
Diffstat (limited to '')
-rw-r--r-- | after/plugin/cmp.lua | 2 | ||||
-rw-r--r-- | after/plugin/lsp.lua | 2 | ||||
-rw-r--r-- | after/plugin/telescope.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/after/plugin/cmp.lua b/after/plugin/cmp.lua index 7106aae..71cc254 100644 --- a/after/plugin/cmp.lua +++ b/after/plugin/cmp.lua @@ -3,7 +3,7 @@ if not status_ok then return end -local has_words_before = function() +local function has_words_before() unpack = unpack or table.unpack local line, col = unpack(a.nvim_win_get_cursor(0)) return col ~= 0 and a.nvim_buf_get_lines(0, line - 1, line, true) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 8610be0..da1a9c8 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -10,7 +10,7 @@ local function lsp_attach(client, bufnr) vim.fn.sign_define(name, { text = text, texthl = name }) end - local map = function(m, lhs, rhs) + local function map(m, lhs, rhs) local opts = { remap = false, silent = true, buffer = bufnr } vim.keymap.set(m, lhs, rhs, opts) end diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index 1f2d34a..31c4a0b 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -35,7 +35,7 @@ telescope.setup { preview = { -- add image previews via chafa mime_hook = function(filepath, bufnr, opts) - local is_image = function(filepath) + local function is_image(filepath) local image_extensions = { -- supported image formats 'png', 'jpg', |