Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

how to setup lua-dev #605

Discussion options

You must be logged in to vote
require 'paq' {
  'savq/paq-nvim',
  'williamboman/nvim-lsp-installer',
  'neovim/nvim-lspconfig',
  'folke/lua-dev.nvim',
}

require('nvim-lsp-installer').setup {
  automatic_installation = true, -- detect servers to install based on lspconfig
}

local on_attach = function(client, bufnr)
--- stuff
end

-- nvim-cmp supports additional completion capabilities
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)

local luadev = require("lua-dev").setup({
  lspconfig = {
    on_attach = on_attach,
    capabilities = capabilities,
  },
})
lspconfig.sumneko_lua.setup(luadev)

It is pretty much that with Paq as…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by williamboman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants