aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/kickstart/plugins/lspconfig.lua31
-rw-r--r--lua/options.lua5
2 files changed, 20 insertions, 16 deletions
diff --git a/lua/kickstart/plugins/lspconfig.lua b/lua/kickstart/plugins/lspconfig.lua
index e5944e5..57c15ec 100644
--- a/lua/kickstart/plugins/lspconfig.lua
+++ b/lua/kickstart/plugins/lspconfig.lua
@@ -1,5 +1,20 @@
+-- LSP Plugins
return {
- { -- LSP Configuration & Plugins
+ {
+ -- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
+ -- used for completion, annotations and signatures of Neovim apis
+ 'folke/lazydev.nvim',
+ ft = 'lua',
+ opts = {
+ library = {
+ -- Load luvit types when the `vim.uv` word is found
+ { path = 'luvit-meta/library', words = { 'vim%.uv' } },
+ },
+ },
+ },
+ { 'Bilal2453/luvit-meta', lazy = true },
+ {
+ -- Main LSP Configuration
'neovim/nvim-lspconfig',
dependencies = {
-- Automatically install LSPs and related tools to stdpath for Neovim
@@ -10,20 +25,6 @@ return {
-- Useful status updates for LSP.
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
{ 'j-hui/fidget.nvim', opts = {} },
-
- -- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
- -- used for completion, annotations and signatures of Neovim apis
- {
- 'folke/lazydev.nvim',
- ft = 'lua',
- opts = {
- library = {
- -- Load luvit types when the `vim.uv` word is found
- { path = 'luvit-meta/library', words = { 'vim%.uv' } },
- },
- },
- },
- { 'Bilal2453/luvit-meta', lazy = true },
},
config = function()
-- Brief aside: **What is LSP?**
diff --git a/lua/options.lua b/lua/options.lua
index c97d75f..94ee2ed 100644
--- a/lua/options.lua
+++ b/lua/options.lua
@@ -16,9 +16,12 @@ vim.opt.mouse = 'a'
vim.opt.showmode = false
-- Sync clipboard between OS and Neovim.
+-- Schedule the setting after `UiEnter` because it can increase startup-time.
-- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'`
-vim.opt.clipboard = 'unnamedplus'
+vim.schedule(function()
+ vim.opt.clipboard = 'unnamedplus'
+end)
-- Enable break indent
vim.opt.breakindent = true