From 0002b2cfb64b25029322bd7dc0031c63e19ade08 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Mon, 6 Jan 2025 09:51:41 -0600 Subject: fix for new nixos w/ nvim 10 and add lsp support --- lua/tjk/plugins/lsp.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lua/tjk/plugins/lsp.lua (limited to 'lua/tjk/plugins/lsp.lua') diff --git a/lua/tjk/plugins/lsp.lua b/lua/tjk/plugins/lsp.lua new file mode 100644 index 0000000..050a5a6 --- /dev/null +++ b/lua/tjk/plugins/lsp.lua @@ -0,0 +1,16 @@ +return { + "neovim/nvim-lspconfig", + dependencies = { + "williamboman/mason.nvim", -- install lsp's + "williamboman/mason-lspconfig.nvim", + }, + config = function() + require("mason").setup() + require("mason-lspconfig").setup { automatic_installation = true } + local lspconfig = require("lspconfig") + lspconfig.pylsp.setup { + autostart = false, + capabilities = require("cmp_nvim_lsp").default_capabilities() + } + end +} -- cgit v1.2.3