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
vim.cmd([[
augroup packer_user_config
autocmd!
autocmd BufWritePost packer.lua source <afile> | PackerCompile
augroup end
]])
vim.api.nvim_create_autocmd("BufWritePost", {
group = vim.api.nvim_create_augroup("PackerUserConfig", { clear = true }),
pattern = { "packer.lua", vim.fn.stdpath("config") .. "/lua/valeth/packer/*.lua" },
callback = function(_)
local source_file = vim.fn.stdpath("config") .. "/lua/valeth/packer.lua"
vim.cmd("source " .. source_file)
require("packer").compile()
end
})
return require("packer").startup {
spec,

View File

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