From 7ac1b516389edec9b3290faaa49b0c48a073700b Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sun, 24 Mar 2024 23:48:18 +0100 Subject: add python --- lua/plugins/lang/python.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lua/plugins/lang/python.lua (limited to 'lua/plugins/lang/python.lua') diff --git a/lua/plugins/lang/python.lua b/lua/plugins/lang/python.lua new file mode 100644 index 0000000..c95d4a7 --- /dev/null +++ b/lua/plugins/lang/python.lua @@ -0,0 +1,20 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + if type(opts) == "table" then + opts.ensure_installed = opts.ensure_installed or {} + vim.list_extend(opts.ensure_installed, { "python" }) + end + end, + }, + { + "neovim/nvim-lspconfig", + opts = function(_, opts) + if type(opts) == "table" then + opts.servers = opts.servers or {} + opts.servers.pyright = {} + end + end, + }, +} -- cgit v1.2.3