From e186a765ee557a76b0f00da7805cfb643d586b36 Mon Sep 17 00:00:00 2001 From: Tristan Russell Date: Sun, 24 Aug 2025 23:17:41 -0400 Subject: [PATCH] feat: Added code completion package back (required by LSP) --- lua/truss/lazy.lua | 44 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/lua/truss/lazy.lua b/lua/truss/lazy.lua index b401971..63ec3a0 100644 --- a/lua/truss/lazy.lua +++ b/lua/truss/lazy.lua @@ -25,14 +25,29 @@ vim.g.maplocalleader = "\\" require("lazy").setup({ spec = { { -- Syntax Highlighter - 'nvim-treesitter/nvim-treesitter', branch = 'master', - lazy = false, build = ":TSUpdate" + 'nvim-treesitter/nvim-treesitter', branch = 'master', + lazy = false, build = ":TSUpdate" }, { -- Packager Manager (LSPs) - 'williamboman/mason.nvim' + 'williamboman/mason.nvim' }, { -- Formatter, Linter, etc bridge?? - 'nvimtools/none-ls.nvim' + 'nvimtools/none-ls.nvim' + }, + { -- Code completion + 'hrsh7th/nvim-cmp' + }, + { -- Utility thing for code completion + 'hrsh7th/cmp-nvim-lsp' + }, + { -- Buffer source for code completion + 'hrsh7th/cmp-buffer' + }, + { -- Path source for code completion + 'hrsh7th/cmp-path' + }, + { -- Cmdline source for code completion + 'hrsh7th/cmp-cmdline' }, { -- File navigation fuzzy finder 'nvim-telescope/telescope.nvim', @@ -40,19 +55,28 @@ require("lazy").setup({ dependencies = { 'nvim-lua/plenary.nvim' } }, { -- File navigation utility - 'ThePrimeagen/harpoon' + 'ThePrimeagen/harpoon' }, { -- Undo.. tree - 'mbbill/undotree' + 'mbbill/undotree' }, { -- Git utility - 'tpope/vim-fugitive' + 'tpope/vim-fugitive' }, - { - 'folke/which-key.nvim' + { -- Keybind helper + 'folke/which-key.nvim', + keys = { + { + "?", + function() + require("which-key").show({ global = false }) + end, + desc = "Buffer Local Keymaps (which-key)", + }, + }, }, { -- Color Scheme - 'folke/tokyonight.nvim' + 'folke/tokyonight.nvim' } }, -- Configure any other settings here. See the documentation for more details.