Update to webpages - (examples, setup)

This commit is contained in:
DarthMooMancer
2025-04-11 16:27:30 -04:00
parent 64024ce8b8
commit fcba3c5639
2 changed files with 59 additions and 44 deletions
+13 -13
View File
@@ -1,17 +1,17 @@
### Lazyvim and Config ### Lazy and Config
```lua ```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 c example
require { return {
"DarthMooMancer/Polydev", 'DarthMooMancer/Polydev',
config = function() opts = {
require("Polydev").java.setup({ c = {
project_root = "~/projects", build_attributes = "-DBUILD_SHARED_LIBS=OFF"
project_root = "~/Projects/C",
keybinds = { keybinds = {
["<Esc>"] = "CloseTerminal", ["<Esc>"] = "CloseTerminal",
["<leader>jb"] = "JavaBuild", ["<leader>pb"] = "CBuild",
["<leader>jr"] = "JavaRun", ["<leader>pr"] = "CRun",
["<leader>nf"] = "NewJavaFile", ["<leader>nh"] = "NewCHeaderFile",
["<leader>np"] = "NewJavaProject",
}, },
terminal = { terminal = {
right_padding = 0, right_padding = 0,
@@ -22,8 +22,8 @@ require {
number = true, number = true,
relativenumber = true, relativenumber = true,
scroll = true, scroll = true,
},
}
} }
})
end
} }
``` ```
+15
View File
@@ -2,12 +2,27 @@
## Project Name ## Project Name
### Without Lazy
```lua ```lua
require("Polydev").language.setup({ require("Polydev").language.setup({
project_root = "~/Home/..." -- Default: ~/Projects/Language project_root = "~/Home/..." -- Default: ~/Projects/Language
}) })
``` ```
### With Lazy
```lua
return {
...
opts = {
<language> = {
project_root = "~/Home/..." -- Default: ~/Projects/Language
}
}
...
}
```
* You can change the default directory for the project. The project can be made from anywhere you want. * You can change the default directory for the project. The project can be made from anywhere you want.
* It will automatically make the new Root Directory, so you don't have to worry about making it. * It will automatically make the new Root Directory, so you don't have to worry about making it.