|
|
@ -1,7 +1,7 @@ |
|
|
|
local map = vim.api.nvim_set_keymap |
|
|
|
local opts = { noremap = true, silent = true } |
|
|
|
|
|
|
|
if vim.loop.os_uname().sysname == "Darwin" then |
|
|
|
local function macos() |
|
|
|
-- Move to previous/next |
|
|
|
map('n', '≤', '<Cmd>BufferPrevious<CR>', opts) |
|
|
|
map('n', '≥', '<Cmd>BufferNext<CR>', opts) |
|
|
@ -23,6 +23,12 @@ if vim.loop.os_uname().sysname == "Darwin" then |
|
|
|
map('n', 'π', '<Cmd>BufferPin<CR>', opts) |
|
|
|
-- Close buffer |
|
|
|
map('n', 'ç', '<Cmd>BufferClose<CR>', opts) |
|
|
|
end |
|
|
|
|
|
|
|
vim.api.nvim_create_user_command("MacOS", macos, {}) |
|
|
|
|
|
|
|
if vim.loop.os_uname().sysname == "Darwin" then |
|
|
|
macos() |
|
|
|
else |
|
|
|
-- Move to previous/next |
|
|
|
map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts) |
|
|
|