|
|
|
@ -50,25 +50,11 @@ local on_attach = require('navigator.lspclient.attach').on_attach
|
|
|
|
|
-- gopls["ui.completion.usePlaceholders"] = true
|
|
|
|
|
|
|
|
|
|
-- lua setup
|
|
|
|
|
local library = {}
|
|
|
|
|
|
|
|
|
|
local luadevcfg = {
|
|
|
|
|
library = {
|
|
|
|
|
vimruntime = true, -- runtime path
|
|
|
|
|
types = true, -- full signature, docs and completion of vim.api, vim.treesitter, vim.lsp and others
|
|
|
|
|
plugins = { 'nvim-treesitter', 'plenary.nvim' },
|
|
|
|
|
},
|
|
|
|
|
lspconfig = {
|
|
|
|
|
-- cmd = {sumneko_binary},
|
|
|
|
|
on_attach = on_attach,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
local luadev = {}
|
|
|
|
|
local user_luadev = _NgConfigValues.lsp['neodev']
|
|
|
|
|
if next(user_luadev) then
|
|
|
|
|
luadev = vim.tbl_deep_extend('force', luadev, user_luadev)
|
|
|
|
|
if _NgConfigValues.lsp['lua-dev'] ~= nil then
|
|
|
|
|
vim.notify('lua-dev is deprecated, please use neodev instead', vim.lsp.log_levels.WARN)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
require('navigator.lazyloader').load('neodev.nvim', 'folke/neodev.nvim')
|
|
|
|
|
|
|
|
|
|
if _NgConfigValues.mason then
|
|
|
|
|