From 0e692de1352504a49b7d84c736880210f2c0365b Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 27 Apr 2025 21:26:36 +0300 Subject: Fixed bug where lsp wouldn't work between nvim restarts --- .config/nvim/init.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.config') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 38394e5..bc312dd 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -15,14 +15,14 @@ require('options') vim.schedule(function() require('keymaps') require('commands') - - -- Enable all LSPs - local lsp = require('lsp') - for server, _ in pairs(lsp) do - vim.lsp.enable(server) - end end) +-- Enable all LSPs +local lsp = require('lsp') +for server, _ in pairs(lsp) do + vim.lsp.enable(server) +end + local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' if not (vim.uv or vim.loop).fs_stat(lazypath) then vim.fn.system({ -- cgit v1.3.1