Update to webpages - (examples, setup)
This commit is contained in:
+13
-13
@@ -1,17 +1,17 @@
|
||||
### Lazyvim and Config
|
||||
### Lazy 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
|
||||
require {
|
||||
"DarthMooMancer/Polydev",
|
||||
config = function()
|
||||
require("Polydev").java.setup({
|
||||
project_root = "~/projects",
|
||||
-- There is no need to copy this. This is an example and it consists of the defaults. This is a c example
|
||||
return {
|
||||
'DarthMooMancer/Polydev',
|
||||
opts = {
|
||||
c = {
|
||||
build_attributes = "-DBUILD_SHARED_LIBS=OFF"
|
||||
project_root = "~/Projects/C",
|
||||
keybinds = {
|
||||
["<Esc>"] = "CloseTerminal",
|
||||
["<leader>jb"] = "JavaBuild",
|
||||
["<leader>jr"] = "JavaRun",
|
||||
["<leader>nf"] = "NewJavaFile",
|
||||
["<leader>np"] = "NewJavaProject",
|
||||
["<leader>pb"] = "CBuild",
|
||||
["<leader>pr"] = "CRun",
|
||||
["<leader>nh"] = "NewCHeaderFile",
|
||||
},
|
||||
terminal = {
|
||||
right_padding = 0,
|
||||
@@ -22,8 +22,8 @@ require {
|
||||
number = true,
|
||||
relativenumber = true,
|
||||
scroll = true,
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
```
|
||||
|
||||
+16
-1
@@ -2,12 +2,27 @@
|
||||
|
||||
## Project Name
|
||||
|
||||
### Without Lazy
|
||||
```lua
|
||||
require("Polydev").language.setup({
|
||||
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.
|
||||
* It will automatically make the new Root Directory, so you don't have to worry about making it.
|
||||
|
||||
@@ -22,7 +37,7 @@ require("Polydev"}.language.setup({
|
||||
["<leader>pr"] = "languageRun",
|
||||
["<leader>nf"] = "NewlanguageFile", -- such as .c files
|
||||
["<leader>nh"] = "Newlanguage_secondaryFile", -- such as .h files
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user