1
0

Compare commits

..

No commits in common. "0312cd06ae1e13e7229e0a9a1b7988aae91a4ceb" and "42ae07b768965481ea44a2ec1c5e2580f308baf1" have entirely different histories.

2 changed files with 7 additions and 12 deletions

View File

@ -271,15 +271,13 @@ end
-- Automatically reload packer configuration on write
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
})
vim.cmd([[
augroup packer_user_config
autocmd!
autocmd BufWritePost packer.lua source <afile> | PackerCompile
augroup end
]])
return require("packer").startup {
spec,

View File

@ -40,9 +40,6 @@ 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" }