Improved rust setup
This commit is contained in:
parent
ec83ebd15f
commit
b759e1011e
8 changed files with 99 additions and 21 deletions
dotfiles/neovim/lua/my
|
@ -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
|
||||
|
||||
-- }}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue