From 7811be6ae04782a054868529d5c3e8a3f22179e4 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Sun, 29 Jun 2025 13:45:14 -0500 Subject: Add lsp to neovim --- nvim/lua/plugins.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'nvim/lua/plugins.lua') diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 0801939..8056494 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -12,6 +12,26 @@ end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ + -- LSP manager + { "mason-org/mason.nvim", opts = {} }, + { + "mason-org/mason-lspconfig.nvim", + dependencies = { + "mason-org/mason.nvim", + "neovim/nvim-lspconfig", + }, + opts = { + ensure_installed = { "pylsp", "clangd", "rust_analyzer", "zls" }, + }, + }, + { + "neovim/nvim-lspconfig", + config = function() + local lspconfig = require("lspconfig") + + lspconfig.pylsp.setup({}) + end, + }, "tanvirtin/monokai.nvim", 'preservim/nerdtree', 'ziglang/zig.vim', -- cgit v1.2.3