2024-02-15 11:13:37 +00:00
|
|
|
--
|
|
|
|
-- You can edit the default settings of the shortcut keys here
|
|
|
|
--
|
|
|
|
return {
|
2024-03-05 06:54:50 +00:00
|
|
|
-- The default '<leader>' is the space.
|
|
|
|
leader = " ",
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- Use the shortcut to switch/jump window.
|
|
|
|
jump_left_window = "<C-h>",
|
|
|
|
jump_right_window = "<C-l>",
|
|
|
|
jump_up_window = "<C-k>",
|
|
|
|
jump_down_window = "<C-j>",
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- View other usage of the plugin: https://github.com/akinsho/bufferline.nvim
|
|
|
|
-- Use the shortcut to pick a buffer tab.
|
|
|
|
pick_tab = "<leader>tt",
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- View other usage of the plugin: https://github.com/nvim-neo-tree/neo-tree.nvim
|
|
|
|
-- Use the shortcut to open or close file explorer.
|
|
|
|
file_explorer = "<F9>",
|
|
|
|
-- Use the shortcut to open or close git status on a float window.
|
|
|
|
git_status = "<F8>",
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- View other usage of the plugin: https://github.com/stevearc/aerial.nvim
|
|
|
|
-- Use the shortcut to open or close the outline, it need to call the lsp server.
|
|
|
|
outline = "<F7>",
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- View other usage of the plugin: https://github.com/akinsho/toggleterm.nvim
|
|
|
|
-- Use the shortcut to open or close the terminal.
|
|
|
|
terminal_float = "<A-u>", -- open terminal in a float window
|
|
|
|
terminal_bottom = "<A-b>", -- open terminal at the bottom
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- View other usage of the plugin: https://github.com/Shatur/neovim-session-manager
|
|
|
|
-- Use the shortcut to switch a session.
|
|
|
|
switch_session = "<leader>ss",
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- View other usage of the plugin: https://github.com/nvim-telescope/telescope.nvim
|
|
|
|
-- Use the shortcut to find, search files and find buffers.
|
|
|
|
find_files = "<leader>ff",
|
|
|
|
live_grep = "<leader>gg",
|
|
|
|
search_cursor = "<leader>cc",
|
|
|
|
find_buffer = "<leader>bb",
|
|
|
|
-- Use the to close telescope window. <C-c> is the default setting, can't edit it here.
|
|
|
|
-- close_telescope = "<C-c>",
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- View other usage of the plugin: https://github.com/sindrets/diffview.nvim
|
|
|
|
-- Use the shortcut to open 'git diff'.
|
|
|
|
diff_open = "<leader>df",
|
|
|
|
-- Use the shortcut to close 'git diff'.
|
|
|
|
diff_close = "<leader>dc",
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- View other usage of the plugin: https://github.com/mrjones2014/smart-splits.nvim
|
|
|
|
-- Use the shortcut to resize the window, <control + alt + hjkl>
|
|
|
|
resize_left = "<C-A-h>",
|
|
|
|
resize_down = "<C-A-j>",
|
|
|
|
resize_up = "<C-A-k>",
|
|
|
|
resize_right = "<C-A-l>",
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
-- View other usage of the plugin: https://github.com/neovim/nvim-lspconfig
|
|
|
|
-- Goto
|
|
|
|
goto_definition = "gd",
|
|
|
|
goto_references = "gr",
|
|
|
|
goto_declaration = "gD",
|
|
|
|
goto_impl = "gi",
|
|
|
|
-- goto_back = "<C-o>",
|
|
|
|
-- Use the shortcut to rename the code symbols.
|
|
|
|
lsp_rename = "<leader>re",
|
|
|
|
-- Use the shortcut to format your codes.
|
|
|
|
format = "<leader>ft",
|
2024-02-15 11:13:37 +00:00
|
|
|
}
|