1
0

Compare commits

...

2 Commits

2 changed files with 12 additions and 7 deletions

View File

@ -271,13 +271,15 @@ end
-- Automatically reload packer configuration on write -- Automatically reload packer configuration on write
vim.cmd([[ vim.api.nvim_create_autocmd("BufWritePost", {
augroup packer_user_config group = vim.api.nvim_create_augroup("PackerUserConfig", { clear = true }),
autocmd! pattern = { "packer.lua", vim.fn.stdpath("config") .. "/lua/valeth/packer/*.lua" },
autocmd BufWritePost packer.lua source <afile> | PackerCompile callback = function(_)
augroup end local source_file = vim.fn.stdpath("config") .. "/lua/valeth/packer.lua"
]]) vim.cmd("source " .. source_file)
require("packer").compile()
end
})
return require("packer").startup { return require("packer").startup {
spec, spec,

View File

@ -40,6 +40,9 @@ lsp_config.lua_ls.setup(lsp_zero.nvim_lua_ls())
lsp_config.rust_analyzer.setup { lsp_config.rust_analyzer.setup {
settings = { settings = {
["rust-analyzer"] = { ["rust-analyzer"] = {
cargo = {
features = "all"
},
rustfmt = { rustfmt = {
-- needs to use nightly channel to use unstable options -- needs to use nightly channel to use unstable options
extraArgs = { "+nightly" } extraArgs = { "+nightly" }