mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 19:30:01 +02:00
new nvim config
This commit is contained in:
parent
f087422bbf
commit
7d14948480
66 changed files with 1771 additions and 1719 deletions
37
nvim/lua/user/plugins/lang/rust.lua
Normal file
37
nvim/lua/user/plugins/lang/rust.lua
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
local lspservers = {
|
||||
rust_analyzer = {
|
||||
-- settings = {
|
||||
-- ["rust-analyzer"] = {
|
||||
-- imports = {
|
||||
-- granularity = {
|
||||
-- group = "module",
|
||||
-- },
|
||||
-- prefix = "self",
|
||||
-- },
|
||||
-- cargo = {
|
||||
-- buildScripts = {
|
||||
-- enable = true,
|
||||
-- },
|
||||
-- },
|
||||
-- procMacro = {
|
||||
-- enable = true
|
||||
-- },
|
||||
-- }
|
||||
-- }
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = { "rust", "toml" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = lspservers
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue