docs: add comments to config

This commit is contained in:
Job 2024-11-01 20:37:32 +01:00
parent 5868d34775
commit b11b9fd153
Signed by: Job79
SSH Key Fingerprint: SHA256:BezbKv3jZaqu7SdNrZM0e42b8nlNwh63zaVj/pUxc7U
3 changed files with 10 additions and 7 deletions

View File

@ -1,9 +1,10 @@
-- Disable autocomplete on enter.
return { return {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
opts = function(_, opts) opts = function(_, opts)
local cmp = require("cmp") local cmp = require("cmp")
opts.mapping = vim.tbl_deep_extend("force", opts.mapping, { opts.mapping = vim.tbl_deep_extend("force", opts.mapping, {
["<CR>"] = cmp.config.disable, ["<CR>"] = cmp.config.disable,
}) })
end, end,
} }

View File

@ -1,3 +1,4 @@
-- Disable some unneeded plugins by default.
return { return {
{ {
"nvimdev/dashboard-nvim", "nvimdev/dashboard-nvim",

View File

@ -1,3 +1,4 @@
-- Disable inline hints by default.
return { return {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
opts = { opts = {