From b11b9fd1538bee2f9c65dc1e8120e7979f938f43 Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 1 Nov 2024 20:37:32 +0100 Subject: [PATCH] docs: add comments to config --- config/nvim/plugins/autocomplete.lua | 15 ++++++++------- config/nvim/plugins/disabled.lua | 1 + config/nvim/plugins/lsp.lua | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/config/nvim/plugins/autocomplete.lua b/config/nvim/plugins/autocomplete.lua index dd78444..1842736 100644 --- a/config/nvim/plugins/autocomplete.lua +++ b/config/nvim/plugins/autocomplete.lua @@ -1,9 +1,10 @@ +-- Disable autocomplete on enter. return { - "hrsh7th/nvim-cmp", - opts = function(_, opts) - local cmp = require("cmp") - opts.mapping = vim.tbl_deep_extend("force", opts.mapping, { - [""] = cmp.config.disable, - }) - end, + "hrsh7th/nvim-cmp", + opts = function(_, opts) + local cmp = require("cmp") + opts.mapping = vim.tbl_deep_extend("force", opts.mapping, { + [""] = cmp.config.disable, + }) + end, } diff --git a/config/nvim/plugins/disabled.lua b/config/nvim/plugins/disabled.lua index df58033..cfb2ea4 100644 --- a/config/nvim/plugins/disabled.lua +++ b/config/nvim/plugins/disabled.lua @@ -1,3 +1,4 @@ +-- Disable some unneeded plugins by default. return { { "nvimdev/dashboard-nvim", diff --git a/config/nvim/plugins/lsp.lua b/config/nvim/plugins/lsp.lua index 6c99ae3..8b0fe2e 100644 --- a/config/nvim/plugins/lsp.lua +++ b/config/nvim/plugins/lsp.lua @@ -1,3 +1,4 @@ +-- Disable inline hints by default. return { "neovim/nvim-lspconfig", opts = {