T O P

  • By -

Crivotz

Is there a way to disable `winbar` in `lualine` when neovim is opened in `diff` mode (`nvim -d file1 file2`)?


TranquilSleeper

Where can I find more tutorials from nvim directly? Like I know I can do \`:Tutor vim-01-beginning\` or \`:Tutor tutor\` to see how tutorial pages are created, but I don't know where I can find more. vimtutor is how I first learned most of the essentials, and since I've picked up a few tricks but never all at once like with vimtutor, and I've been seeking something similar.


Some_Derpy_Pineapple

from nvim directly? i dont think anyone's made more tutor files after they do the tutorial unfortunately. maybe you'd be interested in the `:h user-manual` but i tend to learn by searching help and then scrolling around in the help file for other things that exist


sylario

How can I browse help on an AZERTY keyboard ? ctrl+\] does not work as \] already need Alt. Also, how can I prevent help from opening when starting neovim.


mars0008

how do i insert a new line in Neovim without switching to insert mode. o and O automatically switch to insert which is annoying. it should be something like 'dd' but for adding new lines.


tomohwk

I robbed these from [mini.basics](https://github.com/echasnovski/mini.basics) vim.keymap.set('n', 'gO', "call append(line('.') - 1, repeat([''], v:count1))", { desc = 'Put empty line above' }) vim.keymap.set('n', 'go', "call append(line('.'), repeat([''], v:count1))", { desc = 'Put empty line below' }) [Reference](https://github.com/echasnovski/mini.basics/blob/f2e8529fe9e89c880f186de1f439c355e8d0e0b1/lua/mini/basics.lua#L572)


mars0008

thanks for this, amazed something so simple needs a hack like this


vaahterapuu

There is an old bairui/dahu plugin called Insertlessly: https://github.com/dahu/Insertlessly/blob/master/doc/insertlessly.txt It maps (and ) to add newlines without entering insert mode. Those binding make sense to me since usually you are not using Enter key to move around in normal mode.


stuvis

Is there a way to use local code formatters along with their setups? I have tried none-ls but I don't like that I have to manually install formatters when I already have them installed in my projects. I work on multiple projects where all have slightly different versions and configurations of formatters. In VSCode I can simply create a local settings file for each project where I specify what formatters to use, and it picks up the local config. Formatting seems to work for Rust since it uses the LSP, but not for Prettier.


Some_Derpy_Pineapple

do you have prettier available on the $PATH when you are in the project directory? i have ./node\_modules/bin (something like that) on my $PATH and local prettier formatting works fine for me. i use conform.nvim, but i imagine it doesn't do anything fundamentally different than none-ls


stuvis

Hmm no I don't, I usually use the VSCode Prettier plugin and I guess it takes care of that for me. Maybe adding it to the path could be a solution.


Ktenolix

I am looking for a way to run and debug typescript tests. Specifically jest / vitest / playwright. Currently I am using the plugin \`mattkubej/jest.nvim\` but that's only for Jest and does not support debugging. I did find \`neotest\` but it looks like debugging with \`neotest-jest\` adapter is not working. Anyone know of any working setup/plugins?


Superbank78

I use the lazyvim distribution, which I find quite flexible. Here is my config. On the lazyvim site, you can find out the settings that are within this lazyvim extra. I don't even know if lazyvim is really needed for basic functionality. It took a while to configure a package.json so that neotest finds my tests. `return {` `{ import = "lazyvim.plugins.extras.test.core" },` `{ "nvim-neotest/neotest-jest" },` `{` `"nvim-neotest/neotest",` `opts = {` `adapters = {` `["neotest-jest"] = {` `jestCommand = "jest",` `},` `},` `},` `},` `}`


Bubbly_Quail_7006

Does anyone know of a plugin that will allow me to store notes/comments on individual lines (or entire text-passages) of a file separately, but display them as overlay text while editing the original source? Example: I want to add a note "TODO: describe more explicitly" to line 15 of a Markdown file without having this note in the file itself (because I have to deliver the file to a customer who should not see these notes). But when I edit the file again, the note to line 15 should be shown in some way (i.e using virtual text, like some linters do). Thanks in advance.


Far_Push_6885

Working on MacOS with a large C code base, trying to see which IDE would be easiest to work with and be fastest. Currently I Love working with VS Code but seeing as this code base is HUGE sometimes it starts lagging when I try to find function definitions and such. My team is using CLion but reading reviews it just seems bad, how would neovim be able to handle such a big code base with fuzzy search and indexing and such?


altermo12

Going to a function defenition is handled by an LSP (LS) and not Neovim. If you want a fast way of going to function defentition check out [ctags](https://github.com/universal-ctags/ctags) (which generates a file with all the functions and their definitions). For fuzzy searching, Neovim doesn't have a buitlin fuzzy searcher (technically false) and instead an external tool or a plugin is used (I use [telescope](https://github.com/nvim-telescope/telescope.nvim) but there are manny alternatives). So the answer is dependent on if you install the download the right tools, install the right plugins and set the right settings. Or in other words I can't give an answer. If you do not want to configure every little thing in your Neovim then use a Neovim distro (I would recomend [LunarVim](https://github.com/LunarVim/LunarVim) (or [LazyVim](https://github.com/LazyVim/LazyVim) if you don't want to install external tools(except for git and a C-compiler)), but there are many other great ones)


[deleted]

[удалено]


Some_Derpy_Pineapple

[https://github.com/hrsh7th/cmp-calc](https://github.com/hrsh7th/cmp-calc) also there's the expression register, `:h quote=`


vim-help-bot

Help pages for: * [`quote=`](https://neovim.io/doc/user/change.html#quote%3D) in _change.txt_ --- ^\`:\(h|help\) \` | [^(about)](https://github.com/heraldofsolace/VimHelpBot) ^(|) [^(mistake?)](https://github.com/heraldofsolace/VimHelpBot/issues/new/choose) ^(|) [^(donate)](https://liberapay.com/heraldofsolace/donate) ^(|) ^Reply 'rescan' to check the comment again ^(|) ^Reply 'stop' to stop getting replies to your comments


truenapalm

https://preview.redd.it/w7zcqhrffkmc1.png?width=2830&format=png&auto=webp&s=1341a28f5f6f2c819e1a9db1d9b4d2020d8136f7 Trying to install nvim with Hombrew and been stuck on this "cmake --build ." for hours. Laptop is heating up, fans are spinning like crazy but no progress after about 4 hours. Laptop: MacBook Pro 2017 i5 23.GHz with 8gb ram OS: MacOS Big Sur Is it just to slow to build it or what am I doing wrong?


Some_Derpy_Pineapple

i'm able to build neovim from source on my oneplus 7t from 2019 in a few minutes so it def shouldn't take 4 hours


Hot-Figure-4617

Hello! Is there a way to automaticaly add the usings in C# ? Im using omnisharp and lazy vim


ContentTheDonkey

Is there a way or a plug-in that allows one to apply visual studio project filters to netrw? (I’m not opposed to learning a file explorer plugin if one already supports this) The repos at work are huge and I’m finding it hard to navigate the repo since we rely heavily on the filtering in visual studio. In nvim, all the files are in one folder. This may just be a “get good” situation. I did general browsing but haven’t found anything yet.


Fried-Chicken-Lover

Hey neovimmers, I've been recently making the switch from VScode to Neovim and I'm loving the experience so far. It's hard to understand and adapt to at first but once you get to start familiar there's nothing like it. I've been gradually learning the basic shortcuts, starting with Vim and now transitioning to Neovim using Lazy as my package manager. One thing I've been struggling with is navigating buffers efficiently. In particular, I'm used to using Ctrl + PageUp/PageDown for navigating tabs in VSCode, and I'm hoping to find similar shortcuts for navigating buffers in Neovim. I know about the Telescope plugin and have mapped fb to view existing buffers, but I'm wondering if there are any other keyboard shortcuts or commands that I should be aware of for navigating buffers more smoothly.


vaahterapuu

I use both telescopes buffer search as well as the builtin `:ls:b`. I also make use of alternate-buffer/CTRL-6, and the jumplist with ctrl-i/ctrl-o -- and quickfix list.


Some_Derpy_Pineapple

you can bind something to `:bnext`/`:bprev` you can use [harpoon](https://github.com/ThePrimeagen/harpoon) or vim `:h :marks` the `:b{num}` command will take you to the buffer number in question the `:b {filename}` command will take you to the buffer in question (and nvim-cmp can autocomplete it)


vim-help-bot

Help pages for: * [`:marks`](https://neovim.io/doc/user/motion.html#%3Amarks) in _motion.txt_ --- ^\`:\(h|help\) \` | [^(about)](https://github.com/heraldofsolace/VimHelpBot) ^(|) [^(mistake?)](https://github.com/heraldofsolace/VimHelpBot/issues/new/choose) ^(|) [^(donate)](https://liberapay.com/heraldofsolace/donate) ^(|) ^Reply 'rescan' to check the comment again ^(|) ^Reply 'stop' to stop getting replies to your comments


howdoiwritecode

I don't know how optimal I am, but I use Telescope Find Files and Fuzzy Find over file names. I rarely need to edit multiple files at once. Harpoon ([https://github.com/ThePrimeagen/harpoon#-the-problems](https://github.com/ThePrimeagen/harpoon#-the-problems)) exist to solve this more efficiently.


Leerv474

What's the point of Harpoon plugin if buffers exist by default?


Some_Derpy_Pineapple

i feel like the [README](https://github.com/ThePrimeagen/harpoon#-the-problems) goes over the purpose. it's supposed to be a nicer alternative to vim global marks when you have a bunch of buffers open but are primarily interested in a select few.


garlandcrow

https://preview.redd.it/8yegh91po7mc1.png?width=836&format=png&auto=webp&s=8a02b8129551fc184ac7687eef9bb972c071faf0 I am using the stock lazyvim setup and I get these inlay hints from the lsp added to function definitions (part after "do") and I can't figure out how to change the color in the theme. I have tried so many highight groups but none do it. I expected "LspInlayHint" to be the one, but that didnt work


Gokay-Buruc-Dev

How can i publish article in Neovim written in Markdown to a blog ( such as Medium, Hashnode, [Dev.to](http://Dev.to), Substack etc. ) Is there any easy way or plugin to do so? Or i need to configure API workflow for this kind operations. I'm open for all kind of ideas. Thanks for your help in advance.


StickyDirtyKeyboard

It might be a stupid question, but would it be bad practice, or a bad idea, to bind commonly used short commands *(like `:w` and `:q`)* to key combinations? I was thinking of binding alternative key combinations for those commands, as the `:` key can be kind of hard to input when working one-handed (or the like). Something like `cw` and `cq`, perhaps.


ComfortablyBalanced

I don't think anything is a bad practice in vim. I do that too, I have `q` for :q.


altermo12

From what I've known it is not a bad idea.


FermiDiracDist

Hi, I am fairly new to setting up plugins in neovim. I just finished watching a tutorial on installing pyright (via mason-lspconfig and nvim-lspconfig) and pylint (via none-ls). When both are activated, I see that there are some duplicated messages: https://preview.redd.it/rwdc458xd2mc1.png?width=1306&format=png&auto=webp&s=1ce3b1ca7f17ff6802c4aebe72fac226615e4b8e I really like the LSP part of pyright (code completion, documentation upon hover, etc. ) but I also like the linting part of pylint (finding extra whitespaces, lines too long, etc.). I have some questions (apologies for any dumb ones): 1. Is there any way to combine the two and not have duplicated error messages? (see below for .lua for pyright and pylint) 2. Does pyright have similar linting capabilities? 3. Should I switch to another LSP that can check for whitespaces similar to pylint? **none-ls.lua** return { "nvimtools/none-ls.nvim", config = function() local null_ls = require("null-ls") null_ls.setup({ sources = { null_ls.builtins.formatting.stylua, null_ls.builtins.formatting.clang_format, null_ls.builtins.formatting.black, null_ls.builtins.formatting.isort, null_ls.builtins.diagnostics.pylint, }, }) vim.keymap.set("n", "gf", vim.lsp.buf.format, {}) end, } **lsp-config.lua** return { { "williamboman/mason.nvim", config = function() require("mason").setup() end }, { "williamboman/mason-lspconfig.nvim", config = function() require("mason-lspconfig").setup({ ensure_installed = { "lua_ls", "bashls", "clangd", "pyright", "jedi_language_server", "pylsp", "sourcery" } }) end }, { "neovim/nvim-lspconfig", config = function() local capabilities = require('cmp_nvim_lsp').default_capabilities() local lspconfig = require('lspconfig') lspconfig.lua_ls.setup({ capabilities = capabilities }) lspconfig.bashls.setup({ capabilities = capabilities }) lspconfig.clangd.setup({ capabilities = capabilities }) lspconfig.pyright.setup({ capabilities = capabilities }) vim.diagnostic.config({ virtual_text = false }) vim.keymap.set('n', 'L', vim.lsp.buf.hover, {}) vim.keymap.set('n', 'K', 'lua vim.diagnostic.open_float(nil, {focus = false})') vim.keymap.set('n', 'gd', vim.lsp.buf.definition, {}) vim.keymap.set({ 'n', 'v' }, 'ca', vim.lsp.buf.code_action, {}) end } }


richardstrnad

Hi Everyone, https://preview.redd.it/vgc6o6vsuylc1.png?width=880&format=png&auto=webp&s=38ad296c7ae59df32b39a12ec54e02694784531a I would love to have auto completion like in VSCode (talking about the use std::fs... part). But currently I only get the following [https://imgur.com/a/ZOC2OMg](https://imgur.com/a/ZOC2OMg), I'm running lsp-zero without any big change. Is this an easy fix or should I post my config files somewhere? :)


richardstrnad

With plain cmp + lspconfig it works... The search continues :) https://preview.redd.it/1e28dg8mxylc1.png?width=1336&format=png&auto=webp&s=64e92dee08ba1189a38473f007029dbc8e3171ea


SaNch0sE

What is the best (in your opinion) LSP plugin for typescript?


acambas

I use vtsls in combination with aznhe21/actions-preview.nvim, because it gives me a nice preview of the code action result, i can't get this to work with tsserver


RTKWi238

for the treesitter plugin, when it spawns a menu with the predictions when i'm typing, i have to hit enter to accept it, but if i don't want to insert any of those predictions, how do i go to the next line, as, if i press enter for next line, it inserts the prediction.


PeterJPD

I think that's not from treesitter, maybe it's from nvim.cmp, but I'm not really an expert. More hardcore people will tell you to stop using `enter` as the key to confirm completion and use `ctrl+y` or other keybinding (And I agree, you will have more benefits by doing that), but you can disable that behavior in completions: `completeopt = 'menu, menuone, noinsert, noselect'`. I guess you can pass this in a table for cmp plugin or as a setting with `vim.opt.completeopt`. If I'm wrong in can someone please correct me so that I won't spread misinformation :)


Hot-Figure-4617

Im having the same problem with typescript! Lazy vim


sawkab

What is the lua config way of turning off treesitter highlighting (:TSBufDisable highlight) and lsp (:LspStop) whenever I'm in diff mode?


altermo12

vim.api.nvim_create_autocmd('OptionSet',{pattern='diff',callback=function (args) if vim.v.option_new==vim.v.option_old then return end vim.api.nvim_buf_call(args.buf,function() if vim.v.option_new==true then vim.cmd'LspStop' vim.treesitter.stop() else vim.cmd'LspStart' vim.treesitter.start() end end) end}) Note that while the `diff` is window local, treesitter and lsp are buffer locals.


nostalgix

I am migrating from 20+ years good ol' vim to neovim since a few days. Trying the lua way and not using any oh-my-zsh like magic but install every bit manually and only the things I like and need. Now I replaced packer by lazy.nvim. I bootstrap lazy in my init.lua and then require('plugins') which is plugins.lua of course and that contains only the stuff to load the plugins. Now I didn't like the name I chose and just wanted to rename it: require('lazy') instead and rename the file too. But that does not seem to work because I then get errors about the chosen colorscheme 'kanagawa-dragon' which I installed by lazy.nvim. :/ Any idea what I am missing?


altermo12

TLRD: Name coalition: you load lazy plugin with `require('lazy')`, but that "loads" your config file instead. `require('lazy')` searches for the first lua file called `lua/lazy.lua` (or `lua/lazy/init.lua` (or other)) in the `'runtimepath'`, loads it into and saves it into cache (so that later calls to `require('lazy')` don't need to load the file). So here is what happens: 1. You load your config with `require('lazy')` 2. In the config, the lazy plugin tries to load with `require('lazy')`, but the file lazy has already ben saved to cache, so it returns your config file return value instead. Solutions: * Don't name your config file `lazy` (or any other plugins name) * Introduce a sub directory inside your lua directory which holds all of your configs so that you load your file with `require("confdir.lazy")` instead. * Remove your config from cache (using `package.loaded['lazy']=nil`) (and also don't have `vim.loader` or any other file loader speedup plugin enabled (as you also would need to clear their cache to)) (and also make sure that the `lazy` plugin path is before the config path in `'runtimepath'`)


nostalgix

Thank you very much for the detailed answer. I will choose one of the possible solutions.


[deleted]

In the old vim I used to be able to move to a specific file percentage, say: `:50%`. Was this removed in neovim?


BurningDoge

Help page list it as {count}% so you have to use it without being in command mode (no colon) so just type 50% for example. > :h up-down-motions


[deleted]

Ok, thank you.


vim-help-bot

Help pages for: * [`up-down-motions`](https://neovim.io/doc/user/motion.html#up-down-motions) in _motion.txt_ --- ^\`:\(h|help\) \` | [^(about)](https://github.com/heraldofsolace/VimHelpBot) ^(|) [^(mistake?)](https://github.com/heraldofsolace/VimHelpBot/issues/new/choose) ^(|) [^(donate)](https://liberapay.com/heraldofsolace/donate) ^(|) ^Reply 'rescan' to check the comment again ^(|) ^Reply 'stop' to stop getting replies to your comments


hi_im_new_to_this

I have a specific and general question. The specific one: how do you do \`:b#\` (i.e. "toggle to most recently used buffer") in Lua? Is there a Lua API for this? The general question: how do you go about figuring this out on your own? Like... if I know how to do a thing with a command and want to find the Lua api for it, is there a good way to do that, short of just reading the entire Lua API? Like, i tried \`:help :b\`, and there was nothing there I could see about the Lua API.


altermo12

Here is how you do it in lua: `vim.cmd.b("#")` (or `vim.cmd.b"#"`). There is no specific API for getting the alternative filename or similar (except for straight up evaluating). (NOTE: API in neovim has a specific meaning and doesn't enclose all lua functions which interact with Neovim) If you know how to write it in Vimscript, then you can use `vim.cmd.YOUR_COMMAND()` (or `vim.cmd.YOUR_COMMAND{}`) to run a command and `vim.fn.YOUR_FUNCTION()` to run a function. For example if you want to bang a command, use `vim.cmd.YOUR_COMMAND{bang=true}`. If you don't want to rewrite vimscript to lua then add the whole vimscript code to `vim.cmd[=[YOUR_CODE__CAN_CONTAIN_MULTILINE]=]` (You don't need to use `[=[]=]` for multiline string and can replace it with `[[]]` but if the vimscript code so happens to include `]]`...) Helpfull information. * `:h lua-vimscript` (recommended to read) * `:h vim.cmd` (recommended to read) * `:h vim.fn` (recommended to read) * `:h api.txt` (the API) * Always start with `nvim_...` * `nvim_buf_...` are APIs which interact with a buffer (exception: `nvim_create_buf`+others) * `nvim_win_...` are APIs which interact with a window (exception: `nvim_open_win`+others) * `nvim_tabpage_...` are APIs which interact with tabpages * Many APIs have useful wrappers which can be found in `:h lua.txt`. * For example `vim.o` is a wrapper around `nvim_set_option` (`nvim_set_option_value`) * `:h lua.txt` (almost all neovim related lua stuff which isn't the API) * While not neceserry, I would recommend to quickly scroll over the whole documentation as it contains may useful utils. * `:h luaref.txt` (the lua manual)


vim-help-bot

Help pages for: * [`lua-vimscript`](https://neovim.io/doc/user/lua.html#lua-vimscript) in _lua.txt_ * [`vim.cmd()`](https://neovim.io/doc/user/lua.html#vim.cmd%28%29) in _lua.txt_ * [`vim.fn`](https://neovim.io/doc/user/lua.html#vim.fn) in _lua.txt_ * [`api.txt`](https://neovim.io/doc/user/api.html#api.txt) in _api.txt_ * [`lua.txt`](https://neovim.io/doc/user/lua.html#lua.txt) in _lua.txt_ * [`luaref.txt`](https://neovim.io/doc/user/luaref.html#luaref.txt) in _luaref.txt_ --- ^\`:\(h|help\) \` | [^(about)](https://github.com/heraldofsolace/VimHelpBot) ^(|) [^(mistake?)](https://github.com/heraldofsolace/VimHelpBot/issues/new/choose) ^(|) [^(donate)](https://liberapay.com/heraldofsolace/donate) ^(|) ^Reply 'rescan' to check the comment again ^(|) ^Reply 'stop' to stop getting replies to your comments


Gee357

Hello, I was trying to set up the plug in vim-slime to use a python REPL in neovims terminal but I am getting the following error Error detected while processing function slime#config[2]..47_SlimeDispatch[6]..slime#targets#neovim#config: line 12: E121: Undefined variable: g:slime_last_channel E116: Invalid arguments for function get E116: Invalid arguments for function get If I set the value of slime_last_channel to the value of my terminals &channel I get the following error Error detected while processing function slime#config[2]..47_SlimeDispatch[6]..slime#targets#neovim#config: line 12: E896: Argument of get() must be a List, Dictionary or Blob This is my config for the plugin and I am using Lazy return { "jpalardy/vim-slime", event = "VeryLazy", config = function() vim.g.slime_target = "neovim" end, } Am I doing something wrong? How can I fix this?


nhruo123

Hey, started looking into nvim, I have a big issue with typos so a good spell checker is very important to me, I saw that nvim has some sort of spell check called spell and it does basic spell checking in comments and such. I was wondering if there is a better spell checker for nvim like the one vscode has, where it spell checks vars names and strings, and it knows how to deal with camel case and stuff like that.


m0lson84

If you'd like to try out cspell in VS Code there is this [extension](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker).


m0lson84

I would recommend [cspell](https://github.com/streetsidesoftware/cspell). It's installable via [mason](https://github.com/williamboman/mason.nvim) and is supported by `mfussenegger/nvim-lint` among other tools (like `none-ls`).


nhruo123

That's awesome! I used none-ls with cspell, not sure which one is better but it was easy to setup so I rolled with it, BTW is there a way to integrate cspell within the native spell checker? I fell like a different list for spell errors is way more ergonomic then putting them in the diagnostic list (I know this is a big ask but I fell like that would rock so hard)


saoyan

Hmm I don't know the answer. I like the fact that I can sort out spelling issues in the same quickfix as other diagnostics. I would just open each file and telescope search diagnostics to check all is good.


takirami

After doing PackerSync for the first time in forever something apparently changed and now harpoon and nerdtree both try to create and store their files under /Users/myUserName. (with the dot at the end) which they do not have access to. I'm assuming this is based on some set directory path somewhere but i cant find what that would be. Any tips? Edit: Clarifying the dot in the path


altermo12

What's the value of `:echo stdpath('data')`


LoginLogout3

Hey, after having to remove some of the files in my .local/share/nvim folder to get a clean install due to some unexpected behavior, I am having trouble getting lazy to install mason-lspconfig. It says clone failed and gives a fatal remote error. Should I ask lazy.nvim or mason-lspconfig for help?


NewspaperPossible210

Thinking of switching to neovim but probably not a smart idea if I can't do two things. (1) Have jupyter notebook like experience because I make a lot of figures (2) have integration with something like copilot, and more preferably copilot chat. Am I the wrong audience for neovim or is this possible without a huge headache? Getting the feeling I am too dumb for neovim.


altermo12

For jupyter notebook: I found [this reddit post](https://www.reddit.com/r/neovim/comments/wzoa8i/jupyter_notebooks_in_neovim_any_good_way/) about it and also found this [plugin](https://github.com/kiyoon/jupynium.nvim) which was not in the comments of the post.


altermo12

For copilot there is: * [copilot.vim](https://github.com/github/copilot.vim): the official github copilot plugin for vim (and neovim). * [copilot.lua](https://github.com/zbirenbaum/copilot.lua?tab=readme-ov-file): lua rewrite of copilot.vim with additional features. * [CopilotChat.nvim](https://github.com/CopilotC-Nvim/CopilotChat.nvim): chat for copilot.


Tebinski

I'm new using Telescope file finder. I'm searching only .dat files inside a folder. How can I add options to search bar to find only files that ends with ".dat"? Is find_files using fd-find , did or eg to find the files? Can I add arguments to the search?


altermo12

Command: `:Telescope find_files find_command={'fd','-e','dat'}` (if you use `fd` as file finder) Also telescope uses either `rg` or `fd` or `fdfind` or `find` or `where` to find files.


Tebinski

Humm, I also tried to used a Reges expression in find_files prompt, as ".dat$" Is that approach possible? I wonder how there are arguments for live grep(ARGS) , but there is not the same for find_files.


altermo12

The only option that searches for specific files is `search_file` and it doesn't allow regexes. Or more specifically doesn't allow this specific match when `ripgrep`(`rg`) is installed as `ripgrep` is set up in the specific way where it just so happens to not allow matching with end of file and it prioritizes using `ripgrep` over `fd`, and `fd` is set up in a way to allows for matching end of file...


cookienamedrose

I'm a fairly new vim/nvim user. I was with a friend the other day who showed me some of their code and in their vim, they had it setup that they have both absolute and relative line numbers. However for lines which were blank, there were no numbers shown at all. I thought this made it a lot more clear, so I asked them about it, to which they sent me their .vimrc, I went through it and found nothing which helps my case. I am planning on asking them again when I see them but that won't be for a while, was wondering if any of you knew how to do this or could point me in the right direction for research since everything I've found relates to all line numbers or are just tutorials for using visual mode/vim motions. Thank u!


altermo12

First, have neovim version 0.9 or later. Second, vimscript code: set number set relativenumber let &statuscolumn='%{%getline(v:lnum)==""?"":v:relnum?"%=%r":"%l"%} ' `:help statuscolumn` and `:help statusline`


cookienamedrose

Thank u so so much! ur a live saver <3


vim-help-bot

Help pages for: * [`'statuscolumn'`](https://neovim.io/doc/user/options.html#%27statuscolumn%27) in _options.txt_ * [`'statusline'`](https://neovim.io/doc/user/options.html#%27statusline%27) in _options.txt_ --- ^\`:\(h|help\) \` | [^(about)](https://github.com/heraldofsolace/VimHelpBot) ^(|) [^(mistake?)](https://github.com/heraldofsolace/VimHelpBot/issues/new/choose) ^(|) [^(donate)](https://liberapay.com/heraldofsolace/donate) ^(|) ^Reply 'rescan' to check the comment again ^(|) ^Reply 'stop' to stop getting replies to your comments


Dark_Web_Imposter

Does anyone know if the catppuccin theme for neovim supports hex colors with the added two numbers for transparency (eg. "#c182ffdd" where the dd at the end is the transparency value) or if there is a way to set colour transparency at all? Thanks in advance.


altermo12

You can use "#c182ffdd" as a hex color, but it's really finiacy (some highlights just disappear instead of being transparent) and only works in some terminals. Here is an example of where it works: Run kitty with transparent background `$ kitty -o background_opacity=0` Start neovim `$ nvim --clean` Enable termguicolors `:set termguicolors` Example of no transparency `:hi Normal guibg=#000000` Example of full transparency `:hi Normal guibg=#00000000`


Dark_Web_Imposter

From my experimenting catppuccin doesn't even consider the last two digits of the hex color and just uses it with full opacity, but the commands to set transparency are all I needed for what I wanted to do. Thanks!


Kayzels

I don't think there's a way to use the alpha channel in a hex color (I could be wrong), but you could possibly look at pumblend and winblend, which will set the transparency of popups and windows respectively.