Add new config for neovim

This commit is contained in:
2022-01-15 20:26:28 +03:00
parent e529f6745a
commit f6d155b93f
11 changed files with 526 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
local M = {}
local function map(mode, shortcut, command)
vim.api.nvim_set_keymap(mode, shortcut, command, { noremap = true, silent = true })
end
M.nmap = function(shortcut, command)
map("n", shortcut, command)
end
M.list_includes_item = function(list, item)
for _, value in pairs(list) do
if value == item then
return true
end
end
return false
end
return M