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/colors.lua | 2 +- .config/nvim/after/plugin/lsp.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to '.config/nvim/after/plugin') diff --git a/.config/nvim/after/plugin/colors.lua b/.config/nvim/after/plugin/colors.lua index 654b217..e3d2d94 100644 --- a/.config/nvim/after/plugin/colors.lua +++ b/.config/nvim/after/plugin/colors.lua @@ -4,7 +4,7 @@ require('rose-pine').setup({ function SetTheme(color) vim.cmd.colorscheme(color or 'rose-pine') - vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) + vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' }) end 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