diff options
author | Damjan 9000 <damjan.9000@gmail.com> | 2024-03-12 23:40:44 +0100 |
---|---|---|
committer | Damjan 9000 <damjan.9000@gmail.com> | 2024-03-12 23:40:44 +0100 |
commit | f02070e07692bdcad7398642149e2093e8836344 (patch) | |
tree | 229b7422666bca3f5a8440cd17889a428f80a9cb | |
parent | 7da09adddbe4533376fea9b80267bd72281770b5 (diff) | |
parent | b529bc33590cbb81a5916408b2d6001a643e596c (diff) |
Merge 'upstream' Added folke/neodev.nvim for proper nvim api completion and annotation
-rw-r--r-- | lua/kickstart/plugins/lspconfig.lua | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/lua/kickstart/plugins/lspconfig.lua b/lua/kickstart/plugins/lspconfig.lua index 67a2bdf..2783c69 100644 --- a/lua/kickstart/plugins/lspconfig.lua +++ b/lua/kickstart/plugins/lspconfig.lua @@ -10,6 +10,10 @@ return { -- Useful status updates for LSP. -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})` { 'j-hui/fidget.nvim', opts = {} }, + + -- `neodev` configures Lua LSP for your Neovim config, runtime and plugins + -- used for completion, annotations and signatures of Neovim apis + { 'folke/neodev.nvim', opts = {} }, }, config = function() -- Brief Aside: **What is LSP?** @@ -151,18 +155,6 @@ return { -- capabilities = {}, settings = { Lua = { - runtime = { version = 'LuaJIT' }, - workspace = { - checkThirdParty = false, - -- Tells lua_ls where to find all the Lua files that you have loaded - -- for your neovim configuration. - library = { - '${3rd}/luv/library', - unpack(vim.api.nvim_get_runtime_file('', true)), - }, - -- If lua_ls is really slow on your computer, you can try this instead: - -- library = { vim.env.VIMRUNTIME }, - }, completion = { callSnippet = 'Replace', }, |