Skip to content

Commit bb3fcdd

Browse files
committed
Revert "fix: remove manual LspStart, close #1478. (#1479)"
This reverts commit 7dab4b9.
1 parent 7a8e6b0 commit bb3fcdd

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

lua/modules/configs/completion/lsp.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ return function()
1818
end
1919

2020
pcall(require, "user.configs.lsp")
21+
22+
pcall(vim.cmd.LspStart) -- Start LSPs
2123
end

lua/modules/configs/editor/persisted.lua

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
return function()
2-
vim.api.nvim_create_autocmd("User", {
3-
pattern = "PersistedLoadPost",
4-
desc = "Fix LSP/Highlighting on auto session restore",
5-
callback = function()
6-
local bufname = vim.api.nvim_buf_get_name(0)
7-
if bufname and bufname ~= "" then
8-
vim.defer_fn(function()
9-
vim.cmd("edit")
10-
end, 1)
11-
end
12-
end,
13-
})
142
require("modules.utils").load_plugin("persisted", {
153
save_dir = vim.fn.expand(vim.fn.stdpath("data") .. "/sessions/"),
164
autostart = true,

0 commit comments

Comments
 (0)