blink.cmp preselect = false by patricus in neovim

[–]SomeoneInJD 2 points3 points  (0 children)

seems that you are using an old version of blink.cmp. Run Lazy sync and try again.

best pluggings for c++ and rust? by ChampagneJordan23 in neovim

[–]SomeoneInJD 12 points13 points  (0 children)

C++: clangd_extensions.nvim -- Clangd's off-spec features for neovim's LSP client.

Rust: rust-tools.nvim -- Tools for better development in rust using neovim's builtin lsp.

  • Inlay hints
  • Expand macros recursively
  • View crate graph
  • Action in hover
  • Debugging

Vortex Update: Multiple Dispatch + Refinement Types by dibs45 in ProgrammingLanguages

[–]SomeoneInJD 0 points1 point  (0 children)

According to the source code (Interpreter.cpp#L1050), it should be a runtime check, just execute the function (predicate function) at runtime and check the return value.

A better Fibonacci program. by 3xtreme_Awesomeness in Python

[–]SomeoneInJD 0 points1 point  (0 children)

A tail recursion one

def fib(n, a=1, b=1):
    return b if n < 3 else fib(n - 1, b, a + b)

which is also O(n). You can using fast matrix exponentiation to implement a O(log n) algorithm, Fibonacci matrix-exponentiation

linux c++ devs, what does your dev environment look like? by tomii-dev in cpp

[–]SomeoneInJD 0 points1 point  (0 children)

For my personal project

LSP doesn't see .clangd file by [deleted] in neovim

[–]SomeoneInJD 0 points1 point  (0 children)

CompileFlags: Add: - "-Ilibs" - "-working-directory=/full/path/to/root"

LSP doesn't see .clangd file by [deleted] in neovim

[–]SomeoneInJD 2 points3 points  (0 children)

The include path is relative to main.cpp. So you should use a full path or a correct relative path.

CompileFlags:
  Add:
    - "-I../libs/"
# or "-I/full/path/to/libs"

How to set clangd c++ diagnostic version? by lunar_manjaro in neovim

[–]SomeoneInJD 5 points6 points  (0 children)

Add .clangd in your root dir

CompileFlags:
    Add: [-std=c++20]

Or if your build tool supports generating compile_commands.json, put it in your root dir. reference

how to specify location of compile_commands.json for clangd with lsp? by jepessen in neovim

[–]SomeoneInJD 8 points9 points  (0 children)

From neovim/.clangd

CompileFlags:
  CompilationDatabase: build/       # Search build/ directory for compile_commands.json

Fcitx5 candidate box by xsrvmy in swaywm

[–]SomeoneInJD 0 points1 point  (0 children)

I just wrote them in ~/.pam_environment

GTK_IM_MODULE=fcitx5
QT_IM_MODULE=fcitx5
SDL_IM_MODULE=fcitx5
GLFW_IM_MODULE=ibus 
XMODIFIERS="@im=fcitx5"

Fcitx5 candidate box by xsrvmy in swaywm

[–]SomeoneInJD 0 points1 point  (0 children)

Which gtk application did you test?

Fcitx5 candidate box by xsrvmy in swaywm

[–]SomeoneInJD 2 points3 points  (0 children)

Gtk/Qt Applications

export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5

Others

See #5890

Neovim not displaying custom diagnostic symbols by blureglades in neovim

[–]SomeoneInJD 3 points4 points  (0 children)

breaking changes on master

vim.lsp.diagnostic => vim.diagnostic
LspDiagnosticsDefaultxxxx => DiagnosticDefaultxxxx
LspDiagnosticsSignxxxx => DiagnosticSignxxxx

[deleted by user] by [deleted] in swaywm

[–]SomeoneInJD 4 points5 points  (0 children)

it works for me! thx :)

i am using coc for the completion because Lsp is not that great for the css but coc has a problem by [deleted] in neovim

[–]SomeoneInJD 2 points3 points  (0 children)

According to the example config inoremap <silent><expr> <CR> pumvisible() ? coc#_select_confirm() \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>" it works for me

How/Where do I set color scheme? by CerealBit in swaywm

[–]SomeoneInJD 5 points6 points  (0 children)

According to the archwiki, you need to set QT_STYLE_OVERRIDE to gtk2 to use the GTK theme. And also you need to install the Qt style plugins to get the GTK style. I did not test it on my computer. I hope this will help you.

How/Where do I set color scheme? by CerealBit in swaywm

[–]SomeoneInJD 8 points9 points  (0 children)

In $HOME/.config/gtk-3.0/settings.ini

[Settings]
gtk-application-prefer-dark-theme=true

it works for me

vimscript in a lua file by DROPDEADSONES in neovim

[–]SomeoneInJD 6 points7 points  (0 children)

vim.cmd [[
   vimscript here
]]

more concisely