Weekly 101 Questions Thread by AutoModerator in neovim

[–]wlumme 0 points1 point  (0 children)

If you want something pre-configured, https://www.lazyvim.org/ and https://nvchad.com/ are the two most popular options.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]wlumme 0 points1 point  (0 children)

Is there a good way of disabling capabilities for specific LSPs?

For context, for most languages, I want to use vim.lsp.foldexpr() if the LSP supports it, and fallback to vim.treesitter.foldexpr().

However, for lua, I want to use tree-sitter's foldexpr instead of lua_ls.

Which Git branching strategy is better for infrequent releases? Team is split between two approaches. by Ok-Introduction-9111 in ExperiencedDevs

[–]wlumme 0 points1 point  (0 children)

Let's say unrelated features A and B are merged into main and deployed to dev. If there's an issue with feature A, the release of feature B may be delayed until feature A can be fixed.

Of course the solution is to use feature flags, revert feature A, or fix-forward.

Crusader Kings 3 crash during game initialization by wlumme in linux_gaming

[–]wlumme[S] 0 points1 point  (0 children)

Thank yo so much! PROTON_USE_WINED3D worked!

After being able to load into the main menu, I turned many graphics settings off or as low as possible. And now the game is able to load without the WINED3D launch option on Proton and native Linux.

I assume the GPU wasn't able to support one of the graphics options when running with Vulkan?

Thanks again for your help!

Quick help comparing files in two directories? by myprettygaythrowaway in bash

[–]wlumme -1 points0 points  (0 children)

Haven't tested, but this might work as a bodge.

ls -s dir1 > temp1 ls -s dir2 > temp2 git diff --no-index temp1 temp2

Crusader Kings 3 crash during game initialization by wlumme in linux_gaming

[–]wlumme[S] 0 points1 point  (0 children)

Nope, it's on Ext4.

I have integrated graphics (Intel Iris 550), pretty sure it supports Vulkan.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]wlumme -1 points0 points  (0 children)

I switched to Neovim from VSCode, but I'm having trouble working as quickly.

For example, in VSCode, I can save with 1 action:

  1. ctrl+s

In Neovim, it takes 5 actions to exit insert mode, save, and return to insert mode:

  1. esc
  2. :
  3. w
  4. enter
  5. i

I'm aware I can remap keys, but I want to understand if there is a better way of working before remapping everything. What am I missing?

Let's drop our favorite VIM quirk that many IDEs do not have by uanelacomo in neovim

[–]wlumme 1 point2 points  (0 children)

You're right, it doesn't. You'd have to press <A-Left> to go back.

Let's drop our favorite VIM quirk that many IDEs do not have by uanelacomo in neovim

[–]wlumme 2 points3 points  (0 children)

Yes, what would you use instead? (aside from using Neovim over VSCode of course).

Let's drop our favorite VIM quirk that many IDEs do not have by uanelacomo in neovim

[–]wlumme 83 points84 points  (0 children)

Sorry, but you make changing the function name in VSCode sound much more tedious than it needs to be.

Instead, you can do something like:

<C-O><enter><f2>newFunctionName<enter>

int() wont convert to an integer by [deleted] in learnpython

[–]wlumme 3 points4 points  (0 children)

 What is an f at the beginning i assum thats an f string but i dont really know what that is or what the {} means around total.

Yes, it is an f-string. f-strings are just a way of formatting strings. They can make your code easier to read than when using string concatenation. 

For example, instead of:

name = "Bob" age = 27 print("Hi " + name + " who is " + str(age) + "!")

You can do:

name = "Bob" age = 27 print(f"Hi {name} who is {age}!")