19 lines
402 B
Lua
19 lines
402 B
Lua
|
-- IMPORTANT: make sure to setup neodev BEFORE lspconfig
|
||
|
require("neodev").setup({
|
||
|
library = { plugins = { "nvim-dap-ui" }, types = true }
|
||
|
})
|
||
|
|
||
|
-- then setup your lsp server as usual
|
||
|
local lspconfig = require('lspconfig')
|
||
|
|
||
|
-- example to setup lua_ls and enable call snippets
|
||
|
lspconfig.lua_ls.setup({
|
||
|
settings = {
|
||
|
Lua = {
|
||
|
completion = {
|
||
|
callSnippet = "Replace"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
})
|