diff --git a/lua/plugins/coq.lua b/lua/plugins/coq.lua new file mode 100644 index 0000000..c804a9e --- /dev/null +++ b/lua/plugins/coq.lua @@ -0,0 +1,29 @@ +return { + "neovim/nvim-lspconfig", -- REQUIRED: for native Neovim LSP integration + lazy = false, -- REQUIRED: tell lazy.nvim to start this plugin at startup + dependencies = { + -- main one + { "ms-jpq/coq_nvim", branch = "coq" }, + + -- 9000+ Snippets + { "ms-jpq/coq.artifacts", branch = "artifacts" }, + + -- lua & third party sources -- See https://github.com/ms-jpq/coq.thirdparty + -- Need to **configure separately** + { 'ms-jpq/coq.thirdparty', branch = "3p" } + -- - shell repl + -- - nvim lua api + -- - scientific calculator + -- - comment banner + -- - etc + }, + init = function() + vim.g.coq_settings = { + auto_start = true, -- if you want to start COQ at startup + -- Your COQ settings here + } + end, + config = function() + -- Your LSP settings here + end, +} diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua deleted file mode 100644 index a011add..0000000 --- a/lua/plugins/lspconfig.lua +++ /dev/null @@ -1,3 +0,0 @@ -return { - "neovim/nvim-lspconfig" -} diff --git a/lua/plugins/luasnip.lua b/lua/plugins/luasnip.lua deleted file mode 100644 index c196633..0000000 --- a/lua/plugins/luasnip.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - "L3MON4D3/LuaSnip", - -- follow latest release. - version = "v2.4", -- Replace by the latest released major (first number of latest release) - -- install jsregexp (optional!). - build = "make install_jsregexp" -} diff --git a/lua/plugins/nvim-cmp.lua b/lua/plugins/nvim-cmp.lua deleted file mode 100644 index bac34f3..0000000 --- a/lua/plugins/nvim-cmp.lua +++ /dev/null @@ -1,73 +0,0 @@ -return { - "hrsh7th/nvim-cmp", - event = "InsertEnter", -- Only load when entering insert mode for performance - dependencies = { - -- Snippet engine (REQUIRED by cmp) - { "L3MON4D3/LuaSnip", dependencies = { "saadparwaiz1/cmp_luasnip" } }, - - -- Sources for completion - "hrsh7th/cmp-nvim-lsp", -- LSP suggestions - "hrsh7th/cmp-buffer", -- Buffer words - "hrsh7th/cmp-path", -- File system paths - "hrsh7th/cmp-cmdline", -- Command line completion (if you want it) - - -- You can add more sources here, e.g., 'hrsh7th/cmp-vsnip', 'ray-x/cmp-treesitter' - }, - config = function() - -- Set up nvim-cmp - local cmp = require("cmp") - local luasnip = require("luasnip") - - cmp.setup({ - snippet = { - -- REQUIRED - sets the snippet engine nvim-cmp uses - expand = function(args) - luasnip.lsp_expand(args.body) - end, - }, - mapping = cmp.mapping.preset.insert({ - [""] = cmp.mapping.scroll_docs(-4), - [""] = cmp.mapping.scroll_docs(4), - [""] = cmp.mapping.complete(), - [""] = cmp.mapping.confirm({ select = true }), -- Accept selected item. - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - -- Use to jump to the next snippet placeholder - elseif luasnip.expand_or_jumpable() then - luasnip.expand_or_jump() - else - fallback() - end - end, { "i", "s" }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - -- Use to jump to the previous snippet placeholder - elseif luasnip.jump_backward() then - luasnip.jump_backward() - else - fallback() - end - end, { "i", "s" }), - }), - sources = cmp.config.sources({ - { name = "nvim_lsp" }, -- LSP suggestions - { name = "luasnip" }, -- Snippet source - }, { - { name = "buffer" }, -- Buffer words - { name = "path" }, -- File system paths - }), - }) - - -- Optional: Configure for command line completion - cmp.setup.cmdline(":", { - mapping = cmp.mapping.preset.cmdline(), - sources = cmp.config.sources({ - { name = "path" }, - }, { - { name = "cmdline" }, - }), - }) - end, -}