Compare commits
No commits in common. "0312cd06ae1e13e7229e0a9a1b7988aae91a4ceb" and "42ae07b768965481ea44a2ec1c5e2580f308baf1" have entirely different histories.
0312cd06ae
...
42ae07b768
@ -271,15 +271,13 @@ end
|
|||||||
|
|
||||||
|
|
||||||
-- Automatically reload packer configuration on write
|
-- Automatically reload packer configuration on write
|
||||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
vim.cmd([[
|
||||||
group = vim.api.nvim_create_augroup("PackerUserConfig", { clear = true }),
|
augroup packer_user_config
|
||||||
pattern = { "packer.lua", vim.fn.stdpath("config") .. "/lua/valeth/packer/*.lua" },
|
autocmd!
|
||||||
callback = function(_)
|
autocmd BufWritePost packer.lua source <afile> | PackerCompile
|
||||||
local source_file = vim.fn.stdpath("config") .. "/lua/valeth/packer.lua"
|
augroup end
|
||||||
vim.cmd("source " .. source_file)
|
]])
|
||||||
require("packer").compile()
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
return require("packer").startup {
|
return require("packer").startup {
|
||||||
spec,
|
spec,
|
||||||
|
@ -40,9 +40,6 @@ 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" }
|
||||||
|
Loading…
Reference in New Issue
Block a user