aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/remap.lua
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-04-28 23:20:18 +0200
committerpml68 <tutorialmester@gmail.com>2024-04-28 23:20:18 +0200
commit690a4cab3d440478eba70b48d073970a579e30b8 (patch)
treec75beeea10eea6bde78e028747e82e7b4fdbe8b1 /lua/pml68/remap.lua
parentfeat: add git related things to nvim-treesitter's "ensure_installed" array (diff)
downloadnvim-690a4cab3d440478eba70b48d073970a579e30b8.tar.gz
style: formatting
Diffstat (limited to '')
-rw-r--r--lua/pml68/remap.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua
index 6d35236..e08f780 100644
--- a/lua/pml68/remap.lua
+++ b/lua/pml68/remap.lua
@@ -34,7 +34,7 @@ vim.keymap.set('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<cr>')
vim.api.nvim_create_autocmd('LspAttach', {
desc = 'LSP actions',
callback = function(event)
- local opts = {buffer = event.buf}
+ local opts = { buffer = event.buf }
vim.keymap.set('n', 'K', '<cmd>lua vim.lsp.buf.hover()<cr>', opts)
vim.keymap.set('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<cr>', opts)
@@ -44,8 +44,8 @@ vim.api.nvim_create_autocmd('LspAttach', {
vim.keymap.set('n', 'gr', '<cmd>lua vim.lsp.buf.references()<cr>', opts)
vim.keymap.set('n', 'gs', '<cmd>lua vim.lsp.buf.signature_help()<cr>', opts)
vim.keymap.set('n', '<F2>', '<cmd>lua vim.lsp.buf.rename()<cr>', opts)
- vim.keymap.set({'n', 'x'}, '<F3>', '<cmd>lua vim.lsp.buf.format({async = true})<cr>', opts)
vim.keymap.set('n', '<F4>', '<cmd>lua vim.lsp.buf.code_action()<cr>', opts)
+ vim.keymap.set({ 'n', 'x' }, '<F3>', '<cmd>lua vim.lsp.buf.format({async = true})<cr>', opts)
end
})
@@ -55,7 +55,7 @@ vim.api.nvim_create_autocmd('filetype', {
desc = 'Better mappings for netrw',
callback = function()
local bind = function(lhs, rhs)
- vim.keymap.set('n', lhs, rhs, {remap = true, buffer = true})
+ vim.keymap.set('n', lhs, rhs, { remap = true, buffer = true })
end
bind('a', '%')