1
Fork 0

Improved rust setup

This commit is contained in:
Matei Adriel 2023-04-17 16:19:41 +03:00
parent ec83ebd15f
commit b759e1011e
No known key found for this signature in database
8 changed files with 99 additions and 21 deletions
dotfiles/neovim/lua/my

View file

@ -31,11 +31,17 @@ end
---@param to string|function
---@param desc string
---@param silent boolean|nil
function M.nmap(from, to, desc, silent)
---@param isLocal boolean|nil
function M.nmap(from, to, desc, silent, isLocal)
if silent == nil then
silent = true
end
vim.keymap.set("n", from, to, { desc = desc })
if isLocal == nil then
isLocal = false
end
vim.keymap.set("n", from, to, { desc = desc, silent = silent, buffer = isLocal })
end
-- }}}