>Host running Fedora Linux>config.fish with several abbrs and functions>Programming in neovim>Decides to configure a Windows 10/11 dev vm in qemu/kvm>Find out that my config.fish doesn’t work on Windows>#include <windows.h> doesn’t work with autocomplete or LSP in neovimWhat do I do anons?
>>109095917what do you mean?you posted several unrelated things and expect people to know what's the setup?IIRC vim/neovim lsp for c, c++ uses clangdyou point it in configuration to the clangd server binary and you can append header pathsjust add the paths to your windows headers whether it's visual studio bloated cancer installation or msys2 aka not retarded toolchain and distribution on windows
>>109096003>you posted several unrelated things and expect people to know what's the setup?I literally posted the setup??config.fish is my config file for fish shell which apparently isn’t supported on Windows, and thus all my abbreviations don’t work inside any terminal emulator on native Windows.>point it in configuration to the clangd server binary and you can append header pathsHow do I that for MSVC toolchain specifically? It conflicts with clangd and autocomplete doesn’t work at all.
>>109096189I don't remember exactly, but the clangd lsp plugin (client) only works with clang lsp server. It doesn't mean you need to use clang for compilation, but it's the most compatible because it's literally made for it. It expects clang flags, so your best bet is clang or gcc thus msys2 (ucrt64 for windows dev). I think I hacked it up with TCC and ucrt64 myself when I played with win32 dev. These three should work. They have basically the same cli interface. So ad I previously said, just configure the header paths (INCLUDE dirs) with -I flags in the json config of the plugin. You need to find the paths yourself. There is no automatic tool that would find it for you.I wouldn't use msvc personally for windows dev - it's shit. And it won't work with clangd, at least not seamlessly. The clangd expects clang compile flags which are like gcc/clang.If you actually want to use it then you may need to suffer poor UX and no support or just use Visual Studio. The good thing about it is though it just works - easy way.Fon't expect someone will tell you exactly what to setup. We don't have the same setup as you. I don't code on Windows much and have no environment set up for development anymore.
>>109096189prep your translatorhttps://github.com/hongwenjun/tmux_for_windows#fish_for_git-bash>lsp autocompletionI've never used lsp before but ctags have a use for this :help ins-completion