this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvim cmp settings

+29 -23
+7 -22
nvim/init.lua
··· 14 14 -- Reserve a space in the gutter 15 15 vim.opt.signcolumn = "yes" 16 16 17 - local cmp = require("cmp") 18 - 19 - cmp.setup({ 20 - sources = { 21 - { name = "nvim_lsp" }, 22 - }, 23 - snippet = { 24 - expand = function(args) 25 - -- You need Neovim v0.10 to use vim.snippet 26 - vim.snippet.expand(args.body) 27 - end, 28 - }, 29 - mapping = cmp.mapping.preset.insert({}), 30 - }) 31 - 32 17 vim.api.nvim_create_autocmd({ "FileType" }, { 33 - pattern = ",markdown,gitlab,avante", 18 + pattern = { "markdown", "gitlab", "avante", "" }, 34 19 callback = function() 35 20 vim.opt_local.wrap = true 36 21 vim.opt_local.linebreak = true ··· 39 24 40 25 -- TODO: Turn this into a convenience function that you can 41 26 -- enable or disable on a per-project and per-filetype basis. 42 - vim.cmd([[ 43 - augroup FormatAutogroup 44 - autocmd! 45 - autocmd BufWritePost * FormatWrite 46 - augroup END 47 - ]]) 27 + vim.api.nvim_create_augroup("FormatAutogroup", { clear = true }) 28 + vim.api.nvim_create_autocmd("BufWritePost", { 29 + group = "FormatAutogroup", 30 + pattern = "*", 31 + command = "FormatWrite", 32 + })
+1
nvim/lazy-lock.json
··· 2 2 "auto-dark-mode.nvim": { "branch": "master", "commit": "d365beccca05ffcb01e50109f2adca2459c3995a" }, 3 3 "avante.nvim": { "branch": "main", "commit": "ecaf850859cd38419f73cef76a9e1c53520f44d9" }, 4 4 "bufferline.nvim": { "branch": "main", "commit": "5c528bee3dd797d5bd6bae5f229411939b25b203" }, 5 + "cmp-git": { "branch": "main", "commit": "ec049036e354ed8ed0215f2427112882e1ea7051" }, 5 6 "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, 6 7 "copilot.lua": { "branch": "master", "commit": "f8d8d872bb319f640d5177dad5fbf01f7a16d7d0" }, 7 8 "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
+21 -1
nvim/lua/plugins/cmp.lua
··· 1 1 return { 2 2 { 3 3 "hrsh7th/nvim-cmp", 4 - opts = {}, 4 + config = function() 5 + local cmp = require("cmp") 6 + cmp.setup({ 7 + sources = { 8 + { name = "nvim_lsp" }, 9 + { name = "buffer" }, 10 + { name = "git" }, 11 + }, 12 + snippet = { 13 + expand = function(args) 14 + vim.snippet.expand(args.body) 15 + end, 16 + }, 17 + mapping = cmp.mapping.preset.insert({}), 18 + }) 19 + end, 5 20 }, 6 21 { 7 22 "hrsh7th/cmp-nvim-lsp", ··· 9 24 "neovim/nvim-lspconfig", 10 25 "hrsh7th/nvim-cmp", 11 26 }, 27 + opts = {}, 28 + }, 29 + { 30 + "petertriho/cmp-git", 31 + dependencies = { "hrsh7th/nvim-cmp" }, 12 32 opts = {}, 13 33 }, 14 34 }