From 7dacf3f1d487ec14010601e41e7776c81f5395ff Mon Sep 17 00:00:00 2001 From: sloane <1699281+sloanelybutsurely@users.noreply.github.com> Date: Thu, 18 Jul 2024 13:27:24 -0400 Subject: [PATCH] upgrade some neovim plugins --- .config/nvim/lazy-lock.json | 4 ++-- .config/nvim/lua/plugins/lsp.lua | 15 +++++++++++++-- .config/nvim/lua/plugins/treesitter.lua | 22 +++++++++++++++++++++- 3 files changed, 36 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 1fdcacb..157b338 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -6,7 +6,7 @@ "mini.icons": { "branch": "main", "commit": "c291191e2a2a99f8aeea5e4d6406af54d11c9608" }, "nerdtree": { "branch": "master", "commit": "fbb71fcd90602e3ec77f40b864b5f9b437c496c5" }, "nvim-lspconfig": { "branch": "master", "commit": "df9c116cbcf0aa7e58f2b36b0296fa687e87f36f" }, - "nvim-treesitter": { "branch": "master", "commit": "d78ab90f8e40d91bab98f58582d6dd5119e6088f" }, + "nvim-treesitter": { "branch": "master", "commit": "de8d91d0efb9016004f04279aae115edb4ef5bf2" }, "nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" }, "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, @@ -18,5 +18,5 @@ "vim-sensible": { "branch": "master", "commit": "0ce2d843d6f588bb0c8c7eec6449171615dc56d9" }, "vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" }, "vim-tmux-navigator": { "branch": "master", "commit": "5b3c701686fb4e6629c100ed32e827edf8dad01e" }, - "which-key.nvim": { "branch": "main", "commit": "c512d135531be81e17c85e254994cc755d3016c5" } + "which-key.nvim": { "branch": "main", "commit": "6fe065716e08550328c471689e6f8c1e42a0effc" } } diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 4a86be3..585b492 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -1,9 +1,20 @@ return { { 'williamboman/mason.nvim', + cmd = { + 'Mason', + 'MasonUpdate', + 'MasonInstall', + 'MasonUninstall', + 'MasonUninstallAll', + 'MasonLog' + }, dependencies = { 'williamboman/mason-lspconfig.nvim', - 'neovim/nvim-lspconfig', - } + 'neovim/nvim-lspconfig', + }, + config = function () + require('mason').setup() + end }, } diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua index f6cffbb..2af0df1 100644 --- a/.config/nvim/lua/plugins/treesitter.lua +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -1,3 +1,23 @@ return { - { 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' }, + { + 'nvim-treesitter/nvim-treesitter', + build = ':TSUpdate', + config = function () + require('nvim-treesitter.configs').setup({ + ensure_installed = { + 'elixir', + 'javascript', + 'typescript', + 'css', + 'markdown', + 'lua', + 'html', + }, + auto_install = true, + highlight = { + enable = true, + }, + }) + end + }, }