summaryrefslogtreecommitdiffstats
path: root/nvim/init.lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-03-12 22:06:12 +0100
committerGitHub <noreply@github.com>2024-03-12 17:06:12 -0400
commitd11b8a0a9a3a1b03e5f785b68decc24c3d388b6b (patch)
tree93b3ec9aab481254693f23fc72a8b2bfbdc4f77b /nvim/init.lua
parente03a46b2f1ec26dd5b5eda1d8884df6f93a39490 (diff)
downloaddots-d11b8a0a9a3a1b03e5f785b68decc24c3d388b6b.tar.gz
Added folke/neodev.nvim for proper nvim api completion and annotation (#754)
Fixes nvim-lua/kickstart.nvim#692 `neodev` configures Lua LSP for your Neovim config, runtime and plugins used for completion, annotations and signatures of Neovim apis With neodev, there's no more need to manually set lua_ls workspace settings which don't seem to work properly anyway as currently nvim api completion does not work.
Diffstat (limited to 'nvim/init.lua')
-rw-r--r--nvim/init.lua16
1 files changed, 4 insertions, 12 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index c570c4c..04cc6b7 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -410,6 +410,10 @@ require('lazy').setup({
-- 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?**
@@ -551,18 +555,6 @@ require('lazy').setup({
-- 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',
},