From dcc38607f207af8e2c0cebe36e49018929057f1b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 12 Sep 2023 23:35:19 +0200 Subject: nvim: Format all the code with the lua LSP --- .config/nvim/after/plugin/lsp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.config/nvim/after/plugin/lsp.lua') diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 27703fa..dcf98f1 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -11,7 +11,7 @@ lsp.ensure_installed({ lsp.nvim_workspace() local cmp = require('cmp') -local cmp_select = {behavior = cmp.SelectBehavior.Select} +local cmp_select = { behavior = cmp.SelectBehavior.Select } local cmp_mappings = lsp.defaults.cmp_mappings({ [''] = cmp.mapping.select_prev_item(cmp_select), [''] = cmp.mapping.select_next_item(cmp_select), @@ -21,7 +21,7 @@ local cmp_mappings = lsp.defaults.cmp_mappings({ lsp.set_preferences({ suggest_lsp_servers = false, - sign_icons = { } + sign_icons = {} }) lsp.setup_nvim_cmp({ @@ -29,7 +29,7 @@ lsp.setup_nvim_cmp({ }) lsp.on_attach(function(_, bufnr) - local opts = {buffer = bufnr, remap = false} + local opts = { buffer = bufnr, remap = false } lib.remap('n', 'gd', vim.lsp.buf.definition, opts) lib.remap('n', 'la', vim.lsp.buf.code_action, opts) -- cgit v1.2.3