Need help with nvf updating after 5 months #1412
-
|
Hello guys, Before I talk too much without actually saying anything, I'll just post some logs nvim gave me and what I have tried so far: Logsnvim --headless "+qa" 2>&1 | tee /tmp/nvim-headless.erroutputError detected while processing VIMINIT..script /nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/init.lua:
E5113: Error while calling lua chunk: ...pack/mnw/start/lzn-auto-require/lua/lzn-auto-require.lua:66: ...pack/mnw/start/lzn-auto-require/lua/lzn-auto-require.lua:66: ...pack/mnw/start/lzn-auto-require/lua/lzn-auto-require.lua:66: ...pack/mnw/start/lzn-auto-require/lua/lzn-auto-require.lua:66: module 'nvim-treesitter.ts_utils' not found:
no field package.preload['nvim-treesitter.ts_utils']
no file '/nix/store/rizkaz7ccp9gh69s27q7nf406nqmcnbf-luajit-2.1.1741730670-env/share/lua/5.1/nvim-treesitter/ts_utils.lua'
no file '/nix/store/rizkaz7ccp9gh69s27q7nf406nqmcnbf-luajit-2.1.1741730670-env/share/lua/5.1/nvim-treesitter/ts_utils/init.lua'
no file './nvim-treesitter/ts_utils.lua'
no file '/nix/store/4qxq4arv32ly13kl3g0m5q80gm3a35xr-luajit-2.1.1741730670/share/luajit-2.1/nvim-treesitter/ts_utils.lua'
no file '/usr/local/share/lua/5.1/nvim-treesitter/ts_utils.lua'
no file '/usr/local/share/lua/5.1/nvim-treesitter/ts_utils/init.lua'
no file '/nix/store/4qxq4arv32ly13kl3g0m5q80gm3a35xr-luajit-2.1.1741730670/share/lua/5.1/nvim-treesitter/ts_utils.lua'
no file '/nix/store/4qxq4arv32ly13kl3g0m5q80gm3a35xr-luajit-2.1.1741730670/share/lua/5.1/nvim-treesitter/ts_utils/init.lua'
no file '/nix/store/rizkaz7ccp9gh69s27q7nf406nqmcnbf-luajit-2.1.1741730670-env/lib/lua/5.1/nvim-treesitter/ts_utils.so'
no file './nvim-treesitter/ts_utils.so'
no file '/usr/local/lib/lua/5.1/nvim-treesitter/ts_utils.so'
no file '/nix/store/4qxq4arv32ly13kl3g0m5q80gm3a35xr-luajit-2.1.1741730670/lib/lua/5.1/nvim-treesitter/ts_utils.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/pack/mnw/opt/blink-cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/libnvim-treesitter/ts_utils.so'
no file '/nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/pack/mnw/opt/blink-cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/nvim-treesitter/ts_utils.so'
no file '/nix/store/rizkaz7ccp9gh69s27q7nf406nqmcnbf-luajit-2.1.1741730670-env/lib/lua/5.1/nvim-treesitter.so'
no file './nvim-treesitter.so'
no file '/usr/local/lib/lua/5.1/nvim-treesitter.so'
no file '/nix/store/4qxq4arv32ly13kl3g0m5q80gm3a35xr-luajit-2.1.1741730670/lib/lua/5.1/nvim-treesitter.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/pack/mnw/opt/blink-cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/libnvim-treesitter.so'
no file '/nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/pack/mnw/opt/blink-cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/nvim-treesitter.so'
stack traceback:
[C]: in function 'error'
...pack/mnw/start/lzn-auto-require/lua/lzn-auto-require.lua:66: in function 'require'
/nix/store/fx32ha8wgljr0c1yb3zlamyfl7i7sdw1-init.lua:785: in main chunk
[C]: in function 'dofile'
.../3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/init.lua:5: in main chunksed -n '1,160p' /tmp/nvim-verbose.logoutputsourcing "nvim_exec2()"
line 1: amenu PopUp.Open\ in\ web\ browser gx
line 2: anoremenu PopUp.Inspect <Cmd>Inspect<CR>
line 3: anoremenu PopUp.Go\ to\ definition <Cmd>lua vim.lsp.buf.definition()<CR>
line 4: anoremenu PopUp.Show\ Diagnostics <Cmd>lua vim.diagnostic.open_float()<CR>
line 5: anoremenu PopUp.Show\ All\ Diagnostics <Cmd>lua vim.diagnostic.setqflist()<CR>
line 6: anoremenu PopUp.Configure\ Diagnostics <Cmd>help vim.diagnostic.config()<CR>
line 7: anoremenu PopUp.-1- <Nop>
line 8: vnoremenu PopUp.Cut "+x
line 9: vnoremenu PopUp.Copy "+y
line 10: anoremenu PopUp.Paste "+gP
line 11: vnoremenu PopUp.Paste "+P
line 12: vnoremenu PopUp.Delete "_x
line 13: nnoremenu PopUp.Select\ All ggVG
line 14: vnoremenu PopUp.Select\ All gg0oG$
line 15: inoremenu PopUp.Select\ All <C-Home><C-O>VG
line 16: anoremenu PopUp.-2- <Nop>
line 17: anoremenu PopUp.How-to\ disable\ mouse <Cmd>help disable-mouse<CR>
line 18:
finished sourcing nvim_exec2()
Executing: lua vim.opt.packpath:prepend('/nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir');vim.opt.runtimepath:prepend('/nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir');vim.g.loaded_node_provider=0;vim.g.loaded_perl_provider=0;vim.g.loaded_python_provider=0;vim.g.loaded_python3_provider=0;vim.g.loaded_ruby_provider=0
Searching for "ftplugin.vim" in runtime path
Searching for "/nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/ftplugin.vim"
Searching for "/nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/pack/mnw/start/SchemaStore.nvim/ftplugin.vim"
Searching for "/nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/pack/mnw/start/alpha-nvim/ftplugin.vim"
...(many more "Start searching for" lines)
Searching for "/nix/store/lpvd9jcq8k518mrafh2srw9a41cdavyd-neovim-unwrapped-0.11.6/share/nvim/runtime/ftplugin.vim"
sourcing "/nix/store/lpvd9jcq8k518mrafh2srw9a41cdavyd-neovim-unwrapped-0.11.6/share/nvim/runtime/ftplugin.vim"
line 1: " Vim support file to switch on loading plugins for file types
line 2: "
line 3: " Maintainer:^IThe Vim Project <https://github.com/vim/vim>
line 4: " Last change:^I2023 Aug 10
line 5: " Former Maintainer:^IBram Moolenaar <Bram@vim.org>
line 6:
line 7: if exists("did_load_ftplugin")
line 8: finish
line 9: endif
line 10: let did_load_ftplugin = 1
line 11:
line 12: augroup filetypeplugin
line 13: au FileType * call s:LoadFTPlugin()
line 14:
line 15: func! s:LoadFTPlugin()
line 39: augroup END
finished sourcing /nix/store/lpvd9jcq8k518mrafh2srw9a41cdavyd-neovim-unwrapped-0.11.6/share/nvim/runtime/ftplugin.vim
Searching for "/nix/store/lpvd9jcq8k518mrafh2srw9a41cdavyd-neovim-unwrapped-0.11.6/lib/nvim/ftplugin.vim"
Searching for "/nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/pack/mnw/start/indent-blankline-nvim/after/ftplugin.vim"
...(many more "Start searching for" lines)grep -nE "E[0-9]+|Error|ERROR|stack traceback" /tmp/nvim-verbose.log | head -n 80output504: Error detected while processing VIMINIT..script /nix/store/3rayxdlf0abn8ha8zmhy8lxyxxhqv1bb-mnw-configDir/init.lua:
505:E5113: Error while calling lua chunk: ...pack/mnw/start/lzn-auto-require/lua/lzn-auto-require.lua:66: ...pack/mnw/start/lzn-auto-require/lua/lzn-auto-require.lua:66: ...pack/mnw/start/lzn-auto-require/lua/lzn-auto-require.lua:66: ...pack/mnw/start/lzn-auto-require/lua/lzn-auto-require.lua:66: module 'nvim-treesitter.ts_utils' not found:
529:stack traceback:
1380:line 47: catch /^Vim\%((\a\+)\)\=:E216/
2981:line 2: " Johann Höchtl: reported that the call range... line causes an E488: Trailing characters
2985:line 6: " Ingo Karkat : E488 also in Vim 8.1.1602
3202:line 180: function! provider#clipboard#Error() abortMy (sad) attempts at finding out what's actually wrong here
My config./nvf/default.nix{
pkgs,
lib,
...
}: {
imports = [
./keymaps
./plugins
./theme.nix
];
programs.nvf = {
enable = true;
settings = {
vim = {
viAlias = true;
vimAlias = true;
debugMode = {
enable = false;
level = 16;
logFile = "/tmp/nvim.log";
};
globals = {
neovide_padding_top = 0;
neovide_padding_bottom = 0;
neovide_padding_right = 0;
neovide_padding_left = 0;
neovide_opacity = 0.85;
neovide_normal_opacity = 0.8;
};
clipboard = {
enable = true;
providers = {
wl-copy.enable = true;
};
registers = "unnamedplus";
};
diagnostics = {
enable = true;
config = {
# virtual_lines = {
# only_current_line = true;
# };
virtual_lines = false;
virtual_text = false;
underline = true;
signs = {
text = {
"vim.diagnostic.severity.ERROR" = "";
"vim.diagnostic.severity.WARN" = "";
"vim.diagnostic.severity.INFO" = "";
"vim.diagnostic.severity.HINT" = "";
};
};
update_in_insert = false;
};
};
extraPlugins = {
betterEscape = {
package = pkgs.vimPlugins.better-escape-nvim;
setup = ''
require("better_escape").setup {
default_mappings = false,
mappings = {
i = {
j = {
j = "<Esc>",
},
},
t = {
["<leader>"] = {
q = "<C-\\><C-n>",
},
},
},
}
'';
};
spider = {
package = pkgs.vimPlugins.nvim-spider;
setup = ''
require("spider").setup {
skipInsignificantPunctuation = true,
consistentOperatorPending = false,
subwordMovement = true,
customPatterns = {},
}
'';
};
# Plugin to provide JSON schemas
schemastore = {
package = pkgs.vimPlugins.SchemaStore-nvim;
};
# Plugin that registers json-ls manually
jsonLsp = {
package = pkgs.vimPlugins.nvim-lspconfig;
setup = ''
local lspconfig = require("lspconfig")
local schemastore = require("schemastore")
lspconfig.jsonls.setup {
cmd = { "${pkgs.vscode-langservers-extracted}/bin/vscode-json-language-server", "--stdio" },
capabilities = capabilities,
on_attach = default_on_attach,
settings = {
json = {
schemas = schemastore.json.schemas(),
validate = { enable = true },
},
},
init_options = {
provideFormatter = true,
},
}
'';
};
};
options = {
updatetime = 100;
timeoutlen = 500;
# Line numbers
relativenumber = true;
number = true;
hidden = true; # Keep closed buffer open in the background
mouse = "a";
mousemodel = "extend";
splitbelow = true;
splitright = true;
swapfile = false;
modeline = true;
modelines = 100;
undofile = true;
incsearch = true;
inccommand = "split";
ignorecase = true;
smartcase = true;
scrolloff = 8;
cursorline = false;
cursorcolumn = false;
signcolumn = "yes";
laststatus = 3;
fileencoding = "utf-8";
termguicolors = true;
wrap = true;
linespace = 8;
# Tab options
tabstop = 2; # Number of spaces a <Tab> represents
shiftwidth = 2; # Number of spaces for each (auto)indent
expandtab = true; # Expand <Tab> to spaces in Insert mode
autoindent = true;
textwidth = 0;
sessionoptions = "buffers,curdir,folds,help,tabpages,winsize,winpos,terminal";
# Folding
foldcolumn = "1";
foldlevel = 99; # Folds deeper than this level are closed
foldlevelstart = 99;
foldenable = true;
foldmethod = "manual";
# foldexpr = "nvim_treesitter#foldexpr()";
# Window title: show shortened file path (not CWD)
title = true;
# Use expand('%:p:~') for full path with '~', then pathshorten() to compact directories
titlestring = "%{pathshorten(expand('%:p:~'))}";
};
spellcheck = {
enable = false;
};
lsp = {
enable = true;
formatOnSave = true;
lspkind.enable = true;
lightbulb.enable = true;
lspsaga.enable = true;
trouble.enable = true;
lspSignature.enable = false;
otter-nvim.enable = true;
nvim-docs-view = {
enable = false;
mappings = {
viewToggle = "";
viewUpdate = "";
};
};
};
debugger = {
nvim-dap = {
enable = true;
ui.enable = true;
};
};
languages = {
enableFormat = true;
enableTreesitter = true;
enableExtraDiagnostics = true;
assembly.enable = true;
nix = {
enable = true;
lsp = {
enable = true;
servers = ["nil"];
};
treesitter = {
enable = true;
};
};
markdown = {
enable = true;
extensions = {
render-markdown-nvim = {
enable = true;
};
};
};
bash = {
enable = true;
};
clang.enable = true;
csharp.enable = true;
css.enable = true;
# BUG: Re-enable once build is fixed
html.enable = false;
sql.enable = true;
java.enable = true;
kotlin.enable = true;
ts.enable = false;
go.enable = true;
lua.enable = true;
# BUG: Re-enable once build is fixed
zig.enable = false;
python = {
enable = true;
format = {
enable = true;
type = ["black"]; #NOTE: ["black", "black-and-isort", "isort", "ruff"]
};
lsp = {
enable = true;
servers = ["basedpyright"];
};
treesitter.enable = true;
};
typst.enable = true;
rust = {
enable = true;
extensions.crates-nvim.enable = true;
};
svelte.enable = true;
yaml.enable = true;
astro.enable = false;
nu.enable = false;
julia.enable = false;
vala.enable = false;
scala.enable = false;
r.enable = false;
gleam.enable = false;
dart.enable = false;
ocaml.enable = false;
elixir.enable = false;
haskell.enable = false;
ruby.enable = false;
tailwind.enable = false;
nim.enable = false;
};
visuals = {
nvim-scrollbar.enable = false;
nvim-web-devicons.enable = true;
nvim-cursorline.enable = true;
cinnamon-nvim.enable = true;
fidget-nvim.enable = true;
highlight-undo.enable = true;
indent-blankline.enable = true;
};
statusline = {
lualine = {
enable = true;
# theme = "auto";
};
};
mini = {
statusline = {
enable = false;
};
};
# FIX: Theme is ugly and unreadable
# luaConfigPost = ''
# ${builtins.readFile ./lua/themes/m3scheme.lua}
# '';
autopairs.nvim-autopairs.enable = true;
autocomplete = {
nvim-cmp.enable = false;
blink-cmp = {
enable = true;
friendly-snippets.enable = true;
setupOpts = {
signature = {
enabled = true;
window = {
border = "rounded";
};
trigger = {
enabled = true;
show_on_trigger_character = true;
show_on_insert_on_trigger_character = true;
};
};
completion = {
list.selection = {
preselect = true;
auto_insert = true;
};
documentation = {
auto_show = true;
auto_show_delay_ms = 200;
};
menu.auto_show = true;
ghost_text.enabled = true;
};
keymap = {
preset = "default";
};
cmdline = {
keymap = {
preset = "default";
};
completion = {
menu = {
auto_show = true;
};
};
};
};
};
};
snippets = {
luasnip = {
enable = true;
setupOpts = {
enable_autosnippets = true;
};
};
};
tabline = {
nvimBufferline = {
enable = true;
setupOpts = {
options = {
tab_size = 18;
indicator.style = "icon";
};
};
};
};
treesitter = {
fold = true;
context.enable = false;
};
binds = {
whichKey = {
enable = true;
register = {
"<leader>/" = "Toggle Line/Block Comment";
};
};
cheatsheet.enable = true;
};
telescope.enable = false;
fzf-lua = {
enable = true;
};
git = {
enable = true;
gitsigns.enable = true;
gitsigns.codeActions.enable = false;
};
minimap = {
codewindow.enable = true;
};
dashboard = {
alpha = {
enable = true;
};
startify = {
enable = false;
# bookmarks = {
# f = "~/.dotfiles/flake.nix";
# c = "~/.dotfiles/home/editors/nvf/default.nix";
# };
};
};
notify = {
nvim-notify.enable = true;
};
projects = {
project-nvim.enable = true;
};
utility = {
icon-picker.enable = true;
surround.enable = true;
diffview-nvim.enable = true;
direnv.enable = true;
motion = {
hop.enable = true;
leap.enable = false;
precognition.enable = false;
};
};
notes = {
mind-nvim.enable = false;
todo-comments.enable = true;
};
terminal = {
toggleterm = {
enable = true;
lazygit.enable = true;
};
};
ui = {
borders = {
enable = true;
plugins = {
fastaction.enable = true;
lsp-signature.enable = true;
nvim-cmp.enable = false;
which-key.enable = true;
};
};
noice.enable = true;
colorful-menu-nvim.enable = true;
colorizer = {
enable = true;
setupOpts = {
filetypes = {
"*" = {};
};
};
};
illuminate.enable = true;
breadcrumbs = {
enable = false;
navbuddy.enable = true;
};
smartcolumn = {
enable = true;
setupOpts = {
custom_colorcolumn = {
nix = "110";
ruby = "120";
java = "130";
go = ["90" "130"];
};
};
};
fastaction.enable = true;
modes-nvim = {
enable = true;
setupOpts = {
line_opacity.visual = 0.2;
};
};
nvim-ufo = {
enable = true;
setupOpts = {
# Use LSP, then Treesitter, then indent
provider_selector =
lib.generators.mkLuaInline
#lua
''
function(_, filetype, buftype)
local function handleFallbackException(bufnr, err, providerName)
if type(err) == "string" and err:match "UfoFallbackException" then
return require("ufo").getFolds(bufnr, providerName)
else
return require("promise").reject(err)
end
end
return (filetype == "" or buftype == "nofile") and "indent"
or function(bufnr)
return require("ufo")
.getFolds(bufnr, "lsp")
:catch(
function(err)
return handleFallbackException(bufnr, err, "treesitter")
end
)
:catch(
function(err)
return handleFallbackException(bufnr, err, "indent")
end
)
end
end,
'';
close_fold_kinds_for_ft = {default = ["comment" "imports"];};
preview = {
win_config = {
border = "rounded";
winblend = 12;
winhighlight = "Normal:Normal";
maxheight = 20;
};
mappings = {
scrollU = "<C-u>";
scrollD = "<C-d>";
jumpTop = "[";
jumpBot = "]";
close = "q";
switch = "<Tab>";
trace = "<CR>";
};
};
};
};
};
assistant = {
chatgpt = {
enable = false;
};
copilot = {
enable = false;
cmp.enable = true;
mappings = {
panel = {
open = "<C-CR>";
};
};
};
};
comments = {
comment-nvim = {
enable = true;
mappings = {
toggleCurrentLine = "<leader>/";
toggleSelectedLine = "<leader>/";
};
};
};
};
};
};
}Thank you all in advance and most of all, thanks to @NotAShelf and the community/maintainers for providing this awesome solution for NixOS. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It seems that codewindow is the culprit. |
Beta Was this translation helpful? Give feedback.
It seems that codewindow is the culprit.
I found #13 which addresses a similar issue regarding ts_utils.
Commenting out / disabling codewindow fixes my issue.