lsp: Reload current buffer after startup
so lsp aftually starts for the current buffer, rest buffers are fine
This commit is contained in:
parent
97e155f3a2
commit
a1c103b6a8
@ -120,6 +120,10 @@ return packer.startup(function()
|
||||
opt = true,
|
||||
setup = function()
|
||||
require("core.utils").packer_lazy_load "nvim-lspinstall"
|
||||
-- reload the current file so lsp actually starts for it
|
||||
vim.defer_fn(function()
|
||||
vim.cmd "silent! e %"
|
||||
end, 0)
|
||||
end,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user