mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
nvim: move rustaceanvim to lsp.rust
This commit is contained in:
parent
f1cd9b036f
commit
59c43e1501
3 changed files with 20 additions and 19 deletions
19
.config/nvim/lua/lsp/rust.lua
Normal file
19
.config/nvim/lua/lsp/rust.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
local mylsp = require("lsp")
|
||||
local border = mylsp.border
|
||||
local on_attach = mylsp.on_attach
|
||||
|
||||
vim.g.rustaceanvim = {
|
||||
server = {
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
["rust-analyzer"] = { files = { excludeDirs = { ".direnv/" } } },
|
||||
},
|
||||
},
|
||||
tools = {
|
||||
hover = {
|
||||
border = border,
|
||||
stylize_markdown = true,
|
||||
},
|
||||
log = { level = vim.log.levels.OFF },
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue