We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LspStart
1 parent 378ce0e commit 3bbbc25Copy full SHA for 3bbbc25
lua/modules/configs/completion/lsp.lua
@@ -17,6 +17,4 @@ return function()
17
end
18
19
pcall(require, "user.configs.lsp")
20
-
21
- vim.api.nvim_command([[LspStart]]) -- Start LSPs
22
lua/modules/configs/editor/persisted.lua
@@ -1,4 +1,16 @@
1
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
+ })
14
require("modules.utils").load_plugin("persisted", {
15
save_dir = vim.fn.expand(vim.fn.stdpath("data") .. "/sessions/"),
16
autostart = true,
0 commit comments