feat(nvim): neodev -> lazydev
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
392a2038f7
commit
248d04c2b0
1 changed files with 6 additions and 9 deletions
|
@ -15,7 +15,7 @@ in {
|
||||||
neovim = {
|
neovim = {
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
plugin = pkgs.vimPlugins.neodev-nvim;
|
plugin = pkgs.vimPlugins.lazydev-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config =
|
config =
|
||||||
# lua
|
# lua
|
||||||
|
@ -38,14 +38,11 @@ in {
|
||||||
end,
|
end,
|
||||||
});
|
});
|
||||||
|
|
||||||
-- IMPORTANT: make sure to setup neodev BEFORE lspconfig
|
require('lazydev').setup({
|
||||||
require("neodev").setup({
|
library = {
|
||||||
override = function(root_dir, library)
|
-- Load luvit types when the `vim.uv` word is found
|
||||||
if root_dir:find('${flakeEnv}', 1, true) == 1 then
|
{ path = '${pkgs.vimPlugins.luvit-meta}/library', words = { 'vim%.uv' } },
|
||||||
library.enabled = true;
|
},
|
||||||
library.plugins = true;
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
require('lspconfig').lua_ls.setup({
|
require('lspconfig').lua_ls.setup({
|
||||||
|
|
Loading…
Reference in a new issue