From 690a4cab3d440478eba70b48d073970a579e30b8 Mon Sep 17 00:00:00 2001 From: pml68 Date: Sun, 28 Apr 2024 23:20:18 +0200 Subject: style: formatting --- lua/pml68/remap.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/pml68/remap.lua') 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', 'lua vim.diagnostic.goto_next()') 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', 'lua vim.lsp.buf.hover()', opts) vim.keymap.set('n', 'gd', 'lua vim.lsp.buf.definition()', opts) @@ -44,8 +44,8 @@ vim.api.nvim_create_autocmd('LspAttach', { vim.keymap.set('n', 'gr', 'lua vim.lsp.buf.references()', opts) vim.keymap.set('n', 'gs', 'lua vim.lsp.buf.signature_help()', opts) vim.keymap.set('n', '', 'lua vim.lsp.buf.rename()', opts) - vim.keymap.set({'n', 'x'}, '', 'lua vim.lsp.buf.format({async = true})', opts) vim.keymap.set('n', '', 'lua vim.lsp.buf.code_action()', opts) + vim.keymap.set({ 'n', 'x' }, '', 'lua vim.lsp.buf.format({async = true})', 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', '%') -- cgit v1.2.3