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:
Thomas Gideon 2024-06-24 10:27:53 -04:00
parent 994f52bd50
commit b135ce095b
2 changed files with 21 additions and 0 deletions

18
projects/leptos.lua Normal file
View 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
View file

@ -0,0 +1,3 @@
vim.cmd('colorscheme quiet')
vim.opt.background = "light"
vim.opt.termguicolors = true