Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure this for editing neovim's configuration files? #98

Open
FalcoGer opened this issue Nov 12, 2023 · 1 comment
Open

How to configure this for editing neovim's configuration files? #98

FalcoGer opened this issue Nov 12, 2023 · 1 comment

Comments

@FalcoGer
Copy link

I wish to use this mainly to edit the config files for neovim. However with my current configuration, whenever I save the file, it does "Diagnose Workspace x/817", which takes ages.

I don't understand which files it is trying to diagnose and why. The lua files I'm editing are in ~/.vim

My current config file is this

    "Lua.addonManager.enable": true,
    "Lua.codeLens.enable": true,
    "Lua.completion.enable": true,
    "Lua.completion.keywordSnippet": "Both",
    "Lua.completion.displayContext": 10,
    "Lua.format.enable": true,
    "Lua.workspace.library": [
        "/usr/share/nvim/runtime/lua",
        "/usr/share/nvim/runtime/lua/vim",
        "/usr/share/nvim/runtime/lua/vim/lsp",
        "~/.vim/plugged/**/lua/"
    ],
    "Lua.workspace.ignoreDir": [
        ".vscode",
        "plugged",
        ".git"
    ],
    "Lua.diagnostics.globals": [
        "vim"
    ],
    "Lua.diagnostics.workspaceRate": 100,
    "Lua.doc.privateName": [
        "m_*"
    ],
    "Lua.hint.enable": true,
@FalcoGer
Copy link
Author

FalcoGer commented Nov 12, 2023

I found out why it was taking forever. It tried parsing every file in ~/.vim/ including subdirectories, which also had my backup, swap files and undo files. I moved all the files I source from my vim config into their own config directory and it loads a lot faster now.

At least it doesn't do that diagnosing workspace thing. Instead it gives me "loaded more than 10000 files" after a few minutes, where there are only 703 lua files in ~/.vim/plugged/ and only 76 in /usr/share/nvim/runtime/lua/.

image

I also can't get it to recognize the members when I use require(). For example require('neo-tree') would be pulled from ~/.vim/plugged/neo-tree.nvim/lua/neo-tree.lua.
There is no LSP completions and the status bar says

Loading Workspace 0/508 Loading Workspace 0/520

with two running indicators that don't move except when I move the cursor around.

image

I got it to load once, but not anymore. I don't think I changed anything.

My updated config

    "Lua.addonManager.enable": true,
    "Lua.codeLens.enable": true,
    "Lua.completion.enable": true,
    "Lua.completion.keywordSnippet": "Both",
    "Lua.completion.displayContext": 10,
    "Lua.format.enable": true,
    "Lua.workspace.library": [
        "/usr/share/nvim/runtime/lua",
        "/usr/share/nvim/runtime/lua/vim",
        "/usr/share/nvim/runtime/lua/vim/lsp",
        "~/.vim/plugged"
    ],
    "Lua.workspace.ignoreDir": [
        ".vscode",
        ".git"
    ],
    "Lua.diagnostics.globals": [
        "vim"
    ],
    "Lua.runtime.path": [
        "?.lua",
        "?/init.lua",
        "?/lua/?.lua",
        "?.nvim/lua/?.lua"
    ],
    "Lua.diagnostics.workspaceRate": 100,
    "Lua.doc.privateName": [
        "m_*"
    ],
    "Lua.hint.enable": true,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant