Add neodev for better completion within lua config
This commit is contained in:
parent
13e1004eb4
commit
c4a9c95473
@ -20,6 +20,7 @@
|
|||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "e7b64c11035aa924f87385b72145e0ccf68a7e0a" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "e7b64c11035aa924f87385b72145e0ccf68a7e0a" },
|
||||||
"mason-nvim-dap.nvim": { "branch": "main", "commit": "f0cd12f7a8a310c58cecebddb6b219ffad1cfd0f" },
|
"mason-nvim-dap.nvim": { "branch": "main", "commit": "f0cd12f7a8a310c58cecebddb6b219ffad1cfd0f" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "cd7835b15f5a4204fc37e0aa739347472121a54c" },
|
"mason.nvim": { "branch": "main", "commit": "cd7835b15f5a4204fc37e0aa739347472121a54c" },
|
||||||
|
"neodev.nvim": { "branch": "main", "commit": "da1562e1e3df0e994ddc52cb4ba22376a5d7f2fc" },
|
||||||
"neogit": { "branch": "master", "commit": "eb9d6b8f0840e4f2fa775bca7ec4a5df8b42ed6d" },
|
"neogit": { "branch": "master", "commit": "eb9d6b8f0840e4f2fa775bca7ec4a5df8b42ed6d" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "f6c71641f6f183427a651c0ce4ba3fb89404fa9e" },
|
"nvim-autopairs": { "branch": "master", "commit": "f6c71641f6f183427a651c0ce4ba3fb89404fa9e" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" },
|
"nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" },
|
||||||
|
3
lua/.luarc.json
Normal file
3
lua/.luarc.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"workspace.checkThirdParty": false
|
||||||
|
}
|
@ -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()
|
lsp_zero.setup()
|
||||||
|
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
|
@ -4,6 +4,7 @@ local spec = {
|
|||||||
|
|
||||||
spec.dependencies = {
|
spec.dependencies = {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
|
"folke/neodev.nvim",
|
||||||
}
|
}
|
||||||
|
|
||||||
spec.config = function()
|
spec.config = function()
|
||||||
@ -31,6 +32,18 @@ spec.config = function()
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require("neodev").setup()
|
||||||
|
|
||||||
|
lsp_config.lua_ls.setup {
|
||||||
|
settings = {
|
||||||
|
Lua = {
|
||||||
|
completion = {
|
||||||
|
callSnippet = "Replace"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lsp_config.rust_analyzer.setup {
|
lsp_config.rust_analyzer.setup {
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user