From d043d1ed5d2f10165e3e50cb55f01ef86997691e Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 14 Mar 2025 00:57:58 -0400 Subject: [PATCH 1/7] Update setup.md --- docs/setup.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/setup.md b/docs/setup.md index df131da..9053e80 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -12,7 +12,19 @@ require("Polydev").language.setup({ * It will automatically make the new Root Directory, so you don't have to worry about making it. ## Keybinds -* Keybinds are different for each language, but each one can be changed. Look at the language you want to change for keybind documentation. +* Every language has the same keybinds so it is easy to remember keybinds and not have to remember thousands of keybinds. +* The only keybind that doesnt change no matter what happens is creating a new project. Enter the language you want, then enter the project name and boom! new project. +```lua +require("Polydev"}.language.setup({ + keybinds = [ + [""] = "CloseTerminal", + ["pb"] = "languageBuild", + ["pr"] = "languageRun", + ["nf"] = "NewlanguageFile", -- such as .c files + ["nh"] = "Newlanguage_secondaryFile", -- such as .h files + } +}) +``` ## Terminal * The terminal has a couple of options that can be customized and with more to come From 709f80575cea1c4b6fd6897a65553b23fd2ea1c2 Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 14 Mar 2025 00:59:30 -0400 Subject: [PATCH 2/7] Update installation.md --- docs/installation.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 019fbb5..80b287b 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -8,7 +8,10 @@ require { "DarthMooMancer/Polydev", config = function() - require("Polydev").language.setup() + require("Polydev").setup() + --require("Polydev").language.setup({ + -- configs + }) end } ``` @@ -20,5 +23,8 @@ MiniDeps.add({ source = 'DarthMooMancer/Polydev', }) -require("Polydev").language.setup() +require("Polydev").setup() +require("Polydev").language.setup({ + -- configs +}) ``` From 4c6d01c6e7e6910db9b9868b05ed7ad7cb2a901a Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 14 Mar 2025 00:59:53 -0400 Subject: [PATCH 3/7] Update installation.md --- docs/installation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 80b287b..f848e7e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -11,7 +11,7 @@ require { require("Polydev").setup() --require("Polydev").language.setup({ -- configs - }) + --}) end } ``` @@ -24,7 +24,7 @@ MiniDeps.add({ }) require("Polydev").setup() -require("Polydev").language.setup({ +--require("Polydev").language.setup({ -- configs -}) +--}) ``` From 9cfeb4f02c02cd43b6ba805724bddbe5e34aeb96 Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 14 Mar 2025 01:01:38 -0400 Subject: [PATCH 4/7] Update index.md --- docs/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 9389ffc..e197401 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,9 +3,10 @@ ![Polydev](https://github.com/user-attachments/assets/46921f55-39f6-453a-8020-d556f44a10c6) ---- ### What is Polydev? -Polydev is a simple plugin that gives neovim some nice functions while being extremely extensible for developers. Are there better plugins? Most likely, however this has simple functions for: +Polydev is a simple plugin that gives neovim some nice functions while being extremely extensible for developers. It automatically detects your language and enables the module for that language. It is a standalone plugin that has no dependencies aside from getting file types. Below are a few features that are currently implemented: * Creating New Projects * Creating New Files * Building Files * Running Files +* Builtin Terminal From 700c39f1508d6b472d32ec49858ec1f89cf755eb Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 14 Mar 2025 01:02:13 -0400 Subject: [PATCH 5/7] Update c.md --- docs/languages/c.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/languages/c.md b/docs/languages/c.md index fca6e7a..ba8a914 100644 --- a/docs/languages/c.md +++ b/docs/languages/c.md @@ -6,11 +6,9 @@ require("Polydev").c.setup({ keybinds = { [""] = "CloseTerminal" -- Closes terminal, esc by default. - ["cb"] = "CBuild", -- Building all C Files in src directory in. - ["cr"] = "CRun", -- Runs in your build directory - ["cnf"] = "NewCFile", -- Creates a new c file in the current project src folder - ["cnp"] = "NewCHeaderFile", -- Creates a new header file in the current project src folder - ["cnh"] = "NewCProject", -- Creates a new project in the project directory in the config, defaults to ~/Projects/C unless project_root is set - }, + ["pb"] = "CBuild", -- Building all C Files in src directory in. + ["pr"] = "CRun", -- Runs in your build directory + ["nf"] = "NewCFile", -- Creates a new c file in the current project src folder + ["nh"] = "NewCHeaderFile", -- Creates a new header file in the current project src folder }) ``` From c5e22af74c41329a6ef4bf3ae775607ca876df7a Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 14 Mar 2025 01:02:46 -0400 Subject: [PATCH 6/7] Update java.md --- docs/languages/java.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/languages/java.md b/docs/languages/java.md index ab6e6a7..071621d 100644 --- a/docs/languages/java.md +++ b/docs/languages/java.md @@ -3,11 +3,10 @@ -- These are defaults, so no need to copy them require("Polydev").java.setup({ keybinds = { - ["jb"] = "JavaBuild" -- Building all Java Files in src directory in. - ["jr"] = "JavaRun" -- Runs Main.java in the out folder in your project_root - ["jnf"] = "NewJavaFile" -- Creates a new Java file in the current project src folder - ["jnp"] = "NewJavaProject" -- Creates a new project in the project directory in the config, defaults to ~/Projects unless project_root is set - [""] = "CloseTerminal" -- Closes terminal, esc by default. + [""] = "CloseTerminal" -- Closes terminal, esc by default. + ["pb"] = "JavaBuild" -- Building all Java Files in src directory in. + ["pr"] = "JavaRun" -- Runs Main.java in the out folder in your project_root + ["nf"] = "NewJavaFile" -- Creates a new Java file in the current project src folder } }) ``` From 3d9296f29ffd86aded7359f668c90c16472b3ee5 Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 14 Mar 2025 01:04:07 -0400 Subject: [PATCH 7/7] Update examples.md --- docs/examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 5337775..df57fb7 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -1,10 +1,10 @@ ### Lazyvim and Config ```lua --- There is no need to copy this. This is an example and it consists of the defaults. This is a Java example. +-- There is no need to copy this. This is an example and it consists of the defaults. This is a java example require { "DarthMooMancer/Polydev", config = function() - require("Polydev").language.setup({ + require("Polydev").java.setup({ project_root = "~/projects", keybinds = { [""] = "CloseTerminal",