1
0

Add neodev for better completion within lua config

This commit is contained in:
Patrick Auernig 2023-10-21 17:16:25 +02:00
parent 13e1004eb4
commit c4a9c95473
4 changed files with 17 additions and 4 deletions

View File

@ -20,6 +20,7 @@
"mason-lspconfig.nvim": { "branch": "main", "commit": "e7b64c11035aa924f87385b72145e0ccf68a7e0a" },
"mason-nvim-dap.nvim": { "branch": "main", "commit": "f0cd12f7a8a310c58cecebddb6b219ffad1cfd0f" },
"mason.nvim": { "branch": "main", "commit": "cd7835b15f5a4204fc37e0aa739347472121a54c" },
"neodev.nvim": { "branch": "main", "commit": "da1562e1e3df0e994ddc52cb4ba22376a5d7f2fc" },
"neogit": { "branch": "master", "commit": "eb9d6b8f0840e4f2fa775bca7ec4a5df8b42ed6d" },
"nvim-autopairs": { "branch": "master", "commit": "f6c71641f6f183427a651c0ce4ba3fb89404fa9e" },
"nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" },

3
lua/.luarc.json Normal file
View File

@ -0,0 +1,3 @@
{
"workspace.checkThirdParty": false
}

View File

@ -21,10 +21,6 @@ spec.config = function()
}
})
local lsp_config = require("lspconfig")
lsp_config.lua_ls.setup(lsp_zero.nvim_lua_ls())
lsp_zero.setup()
vim.diagnostic.config({

View File

@ -4,6 +4,7 @@ local spec = {
spec.dependencies = {
"nvim-telescope/telescope.nvim",
"folke/neodev.nvim",
}
spec.config = function()
@ -31,6 +32,18 @@ spec.config = function()
end
})
require("neodev").setup()
lsp_config.lua_ls.setup {
settings = {
Lua = {
completion = {
callSnippet = "Replace"
}
}
}
}
lsp_config.rust_analyzer.setup {
settings = {
["rust-analyzer"] = {