[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: IMG_1753.png (156 KB, 368x321)
156 KB PNG
>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 neovim
What do I do anons?
>>
>>109095917
what 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 clangd
you point it in configuration to the clangd server binary and you can append header paths
just 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 paths
How do I that for MSVC toolchain specifically? It conflicts with clangd and autocomplete doesn’t work at all.
>>
>>109096189
I 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.
>>
>>109096189
prep your translator
https://github.com/hongwenjun/tmux_for_windows#fish_for_git-bash
>lsp autocompletion
I've never used lsp before but ctags have a use for this :help ins-completion



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.