-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
816b466
commit 988d328
Showing
5 changed files
with
24 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
" Use \w, etc to go to the next camel word | ||
call camelcasemotion#CreateMotionMappings('<leader>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
vim.keymap.set("n", "[e", vim.diagnostic.goto_prev) | ||
vim.keymap.set("n", "]e", vim.diagnostic.goto_next) | ||
|
||
vim.api.nvim_create_autocmd("LspAttach", { | ||
group = vim.api.nvim_create_augroup("UserLspConfig", {}), | ||
callback = function(ev) | ||
-- Buffer local mappings. | ||
-- See `:help vim.lsp.*` for documentation on any of the below functions | ||
local opts = { buffer = ev.buf } | ||
vim.keymap.set("n", "<leader>gD", vim.lsp.buf.declaration, opts) | ||
vim.keymap.set("n", "<leader>gd", vim.lsp.buf.definition, opts) | ||
vim.keymap.set("n", "<leader>gr", vim.lsp.buf.references, opts) | ||
vim.keymap.set("n", "<leader>gi", vim.lsp.buf.implementation, opts) | ||
end, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
" vim-easymotion | ||
let g:EasyMotion_smartcase = 1 | ||
nmap f <Plug>(easymotion-overwin-f) | ||
" gitgutter | ||
nmap ]h <Plug>(GitGutterNextHunk) | ||
nmap [h <Plug>(GitGutterPrevHunk) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters