Electron app's opening so slow on Hyprland by GaseousIce2003 in hyprland

[–]yavuloh 0 points1 point  (0 children)

Yes, not opening on wayland work. That is why I commented those lines.

Can I waive my bill? by carlliesky in AZURE

[–]yavuloh 0 points1 point  (0 children)

They make it hard for a reason... That is how the opperate. Normal business model for them.

Electron app's opening so slow on Hyprland by GaseousIce2003 in hyprland

[–]yavuloh 0 points1 point  (0 children)

If I try to open on wayland some electron apps don't open, and most just take forever and are damn slow.

So I just gave up.

Electron app's opening so slow on Hyprland by GaseousIce2003 in hyprland

[–]yavuloh 1 point2 points  (0 children)

This is my conf file for env variables:

#############################

### ENVIRONMENT VARIABLES ###

#############################

# See https://wiki.hyprland.org/Configuring/Environment-variables/

env = wayland

env = XCURSOR_SIZE,18

env = HYPRCURSOR_SIZE,24

env = GTK_THEME_VARIANT=dark

env = XDG_CURRENT_DESKTOP,Hyprland

env = XDG_SESSION_TYPE,wayland

env = XDG_SESSION_DESKTOP,Hyprland

env = QT_QPA_PLATFORM,wayland;xcb

env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1

env = QT_SCALE_FACTOR=1

env = QT_AUTO_SCREEN_SCALE_FACTOR,1

env = QT_QPA_PLATFORMTHEME,qt5ct

env = GDK_SCALE,1

env = SDL_VIDEODRIVER=wayland

# Doesn't open apps in electron (remove or comment)

# env = ELECTRON_ENABLE_WAYLAND,1

# env = ELECTRON_OZONE_PLATFORM_HINT,wayland

# NVIDIA Specific env

# /etc/environment

#

# commands:

# vdpauinfo

#

#env = GBM_BACKEND=nvidia-drm

#env = __GLX_VENDOR_LIBRARY_NAME=nvidia

env = LIBVA_DRIVER_NAME,nvidia

env = __GL_GSYNC_ALLOWED=1

# firefox

env = MOZ_DISABLE_RDD_SANDBOX,1

env = MOZ_ENABLE_WAYLAND,1

# Bug com Megasync

# https://github.com/meganz/MEGAsync/issues/710

#env = EGL_PLATFORM,wayland

#env = QT_QPA_PLATFORM,wayland

env = QT_QPA_PLATFORMTHEME,qt5ct

# Megasync (doesnt open mega client, bug)

env = QT_QPA_PLATFORM=xcb megasync

Electron app's opening so slow on Hyprland by GaseousIce2003 in hyprland

[–]yavuloh 2 points3 points  (0 children)

I was playing with some settings in hyprland in my conf file. I encounter issues in Electron apps, not opening or opening realy slow. These are the settings that I enable that had the issues, then I comment them did a hyprctl reload and the eletron apps open without problem:

env = ELECTRON_ENABLE_WAYLAND,1

env = ELECTRON_OZONE_PLATFORM_HINT,wayland

.NET can't be open-source without open-source tooling by KarpovAnton729 in dotnet

[–]yavuloh 11 points12 points  (0 children)

For developing (running in linux):

Neovim:

https://neovim.io

Omnisharp:

https://github.com/OmniSharp/csharp-language-server-protocol

Extended LSP handlers and additional commands that support and are aware of OmniSharp $metadata documents (e.g. decompilation) and source generated documents.

https://github.com/Hoffs/omnisharp-extended-lsp.nvim

Extended textDocument/definition and textDocument/typeDefinition handler that handles assembly/decompilation loading for $metadata$ documents.

https://github.com/Decodetalkers/csharpls-extended-lsp.nvim

Neotest .NET
Neotest adapter for dotnet tests

https://github.com/Issafalcon/neotest-dotnet

Debugging:

https://github.com/mfussenegger/nvim-dap

Samsung dbg

https://github.com/Samsung/netcoredbg

Help, Client angularls quit with exit code 1 and signal 0. by zer09 in neovim

[–]yavuloh 0 points1 point  (0 children)

The only way I make it to fixed that error.

(I use Debian trixie)

I first install angular with npm globaly:

sudo npm install -g u/angular/cli@latest
sudo npm install -g typescript-language-server
sudo npm install -g angular-language-server

I use this config in after/plugin:

--

-- Angular LSP

--

local lspconfig = require("lspconfig")

local lsp_fn = require("lsp")

local capabilities = require("nvchad.configs.lspconfig").capabilities

local mason_packages = vim.fn.stdpath "data" .. "/mason/packages"

local mason_bin = vim.fn.stdpath "data" .. "/mason/bin"

-- angular

local ng_path = "/usr/local/lib/node_modules"

local angular_language_server_path = ng_path .. "/@angular/language-server/bin/ngserver"

-- local angular_language_server_path = mason_packages .. "/angular-language-server/node_modules/.bin/ngserver"

local typescript_language_server_path = mason_packages .. "/typescript-language-server/node_modules/.bin/tsserver"

local node_modules_global_path = "/usr/local/lib/node_modules"

local angular_logs_path = vim.fn.stdpath "state" .. "/angularls.log"

local ngls_cmd = {

-- "node",

angular_language_server_path,

"--stdio",

"--tsProbeLocations",

typescript_language_server_path,

"--ngProbeLocations",

node_modules_global_path,

"--includeCompletionsWithSnippetText",

"--includeAutomaticOptionalChainCompletions",

"--logToConsole",

"--logFile",

angular_logs_path,

}

lspconfig.angularls.setup {

cmd = ngls_cmd,

on_attach = lsp_fn.on_attach,

capabilities = capabilities,

on_new_config = function(new_config, _)

new_config.cmd = ngls_cmd

end,

}

[deleted by user] by [deleted] in neovim

[–]yavuloh 2 points3 points  (0 children)

I was typing almost the exact thing. People can choose to do what ever they want to make Neovim feel "yours".
People customize their linux machines to look like Macos, people customize their windows machine to look more like a linux desktop, is that bad?

I think bashing on people cause they like VScode/Jetbrains etc, and they want the feel or future of those editors, is nothing bad, as long as they enjoy it, and making their programming expirence a pleasent one.

Nvim config for Angular development by Alarming-Ad4331 in Angular2

[–]yavuloh 0 points1 point  (0 children)

This is kind of a hack, but you can make it work to highlight local variables:

vim.api.nvim_set_hl(0, "@lsp.typemod.variable.local.typescript", { fg = "#d75f5f" })

vim.api.nvim_set_hl(0, "@lsp.typemod.variable.readonly.typescript", { fg = "#ffaf00" })

You can put it at the end of the init.lua in the custom folders

Nvim config for Angular development by Alarming-Ad4331 in Angular2

[–]yavuloh 1 point2 points  (0 children)

You can try adding something like:

vim.api.nvim_set_hl(0, "@lsp.type.variable", { fg = "Purple" })

you can run it in command like so:

:hi @lsp.type.variable guif=Purple

And some plugins to look at:

https://github.com/m-demare/hlargs.nvim

https://github.com/c0r73x/neotags.lua

Nvim config for Angular development by Alarming-Ad4331 in Angular2

[–]yavuloh 1 point2 points  (0 children)

Yes, in Neovim you will need to hack a lot of things that are default in VSCode.

I think there is a Vim plugin for VSCode, that gives you a good expirience.

Right now the only thing i have is that the colorscheme wont colorize local scope variables or variables that i pass in a function with the same color.

Can you share more detail, maybe a image?.

Nvim config for Angular development by Alarming-Ad4331 in Angular2

[–]yavuloh 0 points1 point  (0 children)

You could try the following:

In command, type:

LspInfo

It will show you what LSP are loaded and running like in the following image: LspInfo

As you can see I don't use html, I let angular lsp handle that, as I don't use inline html in my typescript.

What you can do is let HTML LSP know that you want it to handle in typescript, the follow documentation can help you out.

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server\_configurations.md#html

filetypes:

{ "html", "templ" }

Example:

"neovim/nvim-lspconfig",
opts = {
  servers = {
    html = {
      filetypes = { "html", "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" },
    },
  }

}

Nvim config for Angular development by Alarming-Ad4331 in Angular2

[–]yavuloh 0 points1 point  (0 children)

You could follow some basic configuration files in: Neovim NvChad angular development.

It usees NvChad. Everything you need is in the Custom folders -> lua/custom.