aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua')
-rw-r--r--nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua36
1 files changed, 17 insertions, 19 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua b/nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua
index f764559..660fb55 100644
--- a/nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua
+++ b/nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua
@@ -7,30 +7,28 @@ M.setup = function()
return
end
+ lua_dev.setup()
+
local lsp = require("tobyvin.lsp")
local lspconfig = require("lspconfig")
- lspconfig.sumneko_lua.setup(lua_dev.setup({
- library = {
- vimruntime = true, -- runtime path
- types = true, -- full signature, docs and completion of vim.api, vim.treesitter, vim.lsp and others
- plugins = true, -- installed opt or start plugins in packpath
- -- you can also specify the list of plugins to make available as a workspace library
- -- plugins = { "nvim-treesitter", "plenary.nvim", "telescope.nvim" },
- },
- -- runtime_path = true,
- lspconfig = lsp.config({
- settings = {
- Lua = {
- format = {
- enable = false,
- },
- telemetry = {
- enable = false,
- },
+ lspconfig.sumneko_lua.setup(lsp.config({
+ settings = {
+ Lua = {
+ completion = {
+ callSnippet = "Replace",
+ },
+ diagnostics = {
+ globals = { "vim" },
+ },
+ format = {
+ enable = false,
+ },
+ telemetry = {
+ enable = false,
},
},
- }),
+ },
}))
end