From d26fd29c527917de152e731b62d72507d20f1062 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sun, 21 Sep 2025 01:12:16 -0400 Subject: [PATCH] fix: add python config --- lua/cp/constants.lua | 5 +---- lua/cp/snippets.lua | 6 +++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lua/cp/constants.lua b/lua/cp/constants.lua index acabc3c..13cb27d 100644 --- a/lua/cp/constants.lua +++ b/lua/cp/constants.lua @@ -8,11 +8,8 @@ M.PYTHON = 'python' ---@type table M.filetype_to_language = { - cc = M.CPP, - cxx = M.CPP, + python = M.PYTHON, cpp = M.CPP, - py = M.PYTHON, - py3 = M.PYTHON, } ---@type table diff --git a/lua/cp/snippets.lua b/lua/cp/snippets.lua index e0237c8..ac43a65 100644 --- a/lua/cp/snippets.lua +++ b/lua/cp/snippets.lua @@ -96,7 +96,11 @@ if __name__ == "__main__": if __name__ == "__main__": solve()]], - cses = [[{}]], + cses = [[def solve(): + {} + +if __name__ == "__main__": + solve()]], }, }