Update to webpages - (examples, setup)
This commit is contained in:
+26
-26
@@ -1,29 +1,29 @@
|
|||||||
### 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"
|
||||||
keybinds = {
|
project_root = "~/Projects/C",
|
||||||
["<Esc>"] = "CloseTerminal",
|
keybinds = {
|
||||||
["<leader>jb"] = "JavaBuild",
|
["<Esc>"] = "CloseTerminal",
|
||||||
["<leader>jr"] = "JavaRun",
|
["<leader>pb"] = "CBuild",
|
||||||
["<leader>nf"] = "NewJavaFile",
|
["<leader>pr"] = "CRun",
|
||||||
["<leader>np"] = "NewJavaProject",
|
["<leader>nh"] = "NewCHeaderFile",
|
||||||
},
|
},
|
||||||
terminal = {
|
terminal = {
|
||||||
right_padding = 0,
|
right_padding = 0,
|
||||||
bottom_padding = 0,
|
bottom_padding = 0,
|
||||||
left_padding = 0,
|
left_padding = 0,
|
||||||
top_padding = 0,
|
top_padding = 0,
|
||||||
border = true,
|
border = true,
|
||||||
number = true,
|
number = true,
|
||||||
relativenumber = true,
|
relativenumber = true,
|
||||||
scroll = true,
|
scroll = true,
|
||||||
}
|
},
|
||||||
})
|
}
|
||||||
end
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
+33
-18
@@ -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.
|
||||||
|
|
||||||
@@ -16,13 +31,13 @@ require("Polydev").language.setup({
|
|||||||
* 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.
|
* 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
|
```lua
|
||||||
require("Polydev"}.language.setup({
|
require("Polydev"}.language.setup({
|
||||||
keybinds = [
|
keybinds = [
|
||||||
["<Esc>"] = "CloseTerminal",
|
["<Esc>"] = "CloseTerminal",
|
||||||
["<leader>pb"] = "languageBuild",
|
["<leader>pb"] = "languageBuild",
|
||||||
["<leader>pr"] = "languageRun",
|
["<leader>pr"] = "languageRun",
|
||||||
["<leader>nf"] = "NewlanguageFile", -- such as .c files
|
["<leader>nf"] = "NewlanguageFile", -- such as .c files
|
||||||
["<leader>nh"] = "Newlanguage_secondaryFile", -- such as .h files
|
["<leader>nh"] = "Newlanguage_secondaryFile", -- such as .h files
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -42,15 +57,15 @@ require("Polydev"}.language.setup({
|
|||||||
```lua
|
```lua
|
||||||
-- These are just defaults, so no need to copy them
|
-- These are just defaults, so no need to copy them
|
||||||
require("Polydev").language.setup({
|
require("Polydev").language.setup({
|
||||||
terminal = {
|
terminal = {
|
||||||
right_padding = 0,
|
right_padding = 0,
|
||||||
bottom_padding = 0,
|
bottom_padding = 0,
|
||||||
left_padding = 0,
|
left_padding = 0,
|
||||||
top_padding = 0,
|
top_padding = 0,
|
||||||
border = true,
|
border = true,
|
||||||
number = true,
|
number = true,
|
||||||
relativenumber = true,
|
relativenumber = true,
|
||||||
scroll = true,
|
scroll = true,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user