From d4afbc6283a7a0915878364ddbb27decdeb0eb11 Mon Sep 17 00:00:00 2001 From: Joseph Tongay Date: Sun, 22 Oct 2023 16:53:16 -0500 Subject: [PATCH] added a few more plugins --- init.lua | 12 +++++++++++- lua/custom/plugins/filetree.lua | 15 +++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/filetree.lua diff --git a/init.lua b/init.lua index 1332c3b9..04be6ac8 100644 --- a/init.lua +++ b/init.lua @@ -67,6 +67,12 @@ vim.opt.rtp:prepend(lazypath) require('lazy').setup({ -- NOTE: First, some plugins that don't require any configuration + -- Auto Pair quotes/parens/brackets/etc. + 'jiangmiao/auto-pairs', + + -- VimBeGood, practing and learning vim control + 'ThePrimeagen/vim-be-good', + -- Git related plugins 'tpope/vim-fugitive', 'tpope/vim-rhubarb', @@ -381,6 +387,10 @@ vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnos vim.keymap.set('n', 'e', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' }) vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostics list' }) +vim.diagnostic.config { + update_in_insert = true +} + -- [[ Configure LSP ]] -- This function gets run when an LSP connects to a particular buffer. local on_attach = function(_, bufnr) @@ -524,4 +534,4 @@ cmp.setup { } -- The line beneath this is called `modeline`. See `:help modeline` --- vim: ts=2 sts=2 sw=2 et +-- vim: ts=2 sts=2 sw=2 et \ No newline at end of file diff --git a/lua/custom/plugins/filetree.lua b/lua/custom/plugins/filetree.lua new file mode 100644 index 00000000..da30a886 --- /dev/null +++ b/lua/custom/plugins/filetree.lua @@ -0,0 +1,15 @@ +-- Unless you are still migrating, remove the deprecated commands from v1.x +vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) + +return { + "nvim-neo-tree/neo-tree.nvim", + version = "*", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + "MunifTanjim/nui.nvim", + }, + config = function () + require('neo-tree').setup {} + end, +} \ No newline at end of file