Mercurial > dotfiles
changeset 703:50c025a59b95
fix: update lua-dev to neodev config
author | zegervdv <zegervdv@me.com> |
---|---|
date | Thu, 20 Oct 2022 16:24:39 +0000 |
parents | fb751a7650e9 |
children | c78a2c1388e9 |
files | .chezmoitemplates/init.lua |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua Thu Oct 20 16:13:08 2022 +0000 +++ b/.chezmoitemplates/init.lua Thu Oct 20 16:24:39 2022 +0000 @@ -409,7 +409,7 @@ 'jose-elias-alvarez/null-ls.nvim', requires = 'nvim-lua/plenary.nvim', } - use { 'folke/lua-dev.nvim' } + use { 'folke/neodev.nvim' } use { 'smjonas/inc-rename.nvim', config = function() @@ -1169,7 +1169,8 @@ root_dir = require('null-ls.utils').root_pattern('.hg', '.git', 'stylua.toml'), } -local luadev = require('lua-dev').setup { +require('neodev').setup {} +lsp.sumneko_lua.setup { lspconfig = { cmd = { 'lua-language-server' }, on_attach = on_attach, @@ -1179,13 +1180,14 @@ diagnostics = { globals = { 'use' }, }, + completion = { + callSnippet = 'Replace', + }, }, }, }, } -lsp.sumneko_lua.setup(luadev) - local fd_quickfix = function(args) local grepprg = vim.opt.grepprg local grepformat = vim.opt.grepformat