Add project files
- text.lua for markdown focused projects like personal wiki, diary - leptos.lua for Rust projects using leptos, to set some rust-analyzer settings that help with with conditional compilation used by cargo-leptos
This commit is contained in:
parent
994f52bd50
commit
b135ce095b
2 changed files with 21 additions and 0 deletions
18
projects/leptos.lua
Normal file
18
projects/leptos.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
vim.g.rustaceanvim = {
|
||||
server = {
|
||||
default_settings = {
|
||||
['rust-analyzer'] = {
|
||||
cargo = {
|
||||
features = {
|
||||
"ssr"
|
||||
},
|
||||
},
|
||||
rustfmt = {
|
||||
overrideCommand = {
|
||||
"leptosfmt", "--stdin", "--rustfmt"
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
3
projects/text.lua
Normal file
3
projects/text.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
vim.cmd('colorscheme quiet')
|
||||
vim.opt.background = "light"
|
||||
vim.opt.termguicolors = true
|
Loading…
Reference in a new issue