Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
0
answers
19
views
weird background when neovim plugins create panels
I'm not 100% sure how to describe the problem, but there's this background color applied to the editor whenever Telescope, NerdTree, or CtrlP display. Incase it wasn't obvious [nixos is configuring neovim](https://github.com/danhab99/dotfiles/tree/448a482f06431d28f778750f86e16692451c5d7d/modules/neo...
I'm not 100% sure how to describe the problem, but there's this background color applied to the editor whenever Telescope, NerdTree, or CtrlP display. Incase it wasn't obvious [nixos is configuring neovim](https://github.com/danhab99/dotfiles/tree/448a482f06431d28f778750f86e16692451c5d7d/modules/neovim) . How do I remove this background?
> *Telescope*
> *NerdTree*
> *Ctrl+P*



Dan
(111 rep)
Apr 11, 2025, 03:16 AM
3
votes
3
answers
6622
views
link config files
## Problem I'm trying to move my config files **from** a `.dotfiles` folder, and link those files to the corresponding config path. ## Example In this example I'm trying ```console $ ln -s ~/.dotfiles/nvim/init.vim ~/.config/nvim/init.vim ``` And the program (`nvim` in this case), the config file do...
## Problem
I'm trying to move my config files **from** a
.dotfiles
folder, and link those files to the corresponding config path.
## Example
In this example I'm trying
$ ln -s ~/.dotfiles/nvim/init.vim ~/.config/nvim/init.vim
And the program (nvim
in this case), the config file doesn't take effect.
But when I copy the file instead of linking
$ cp ~/.dotfiles/nvim/init.vim ~/.config/nvim/init.vim
It does take effect.
## Other example
When I do the same thing but with my .zshrc
file
ln -s .dotfiles/zsh/.zshrc ~/.zshrc
It takes effect...
## Question
How could I link my .dotfiles
config files to the according path for config?
---
Thanks
Norman Perrin
(31 rep)
Nov 17, 2019, 12:28 PM
• Last activity: Apr 4, 2025, 07:05 AM
1
votes
1
answers
2611
views
How to install NeoVim v0.9.5 on Debian, by means of downloading the tarball file, unpacking it and running ./nvim-linux64/bin/nvim?
I'm asking this, because I need to install NeoVim from [github][1] to get the latest 0.9.5 version instead of the v0.7.something available via ```apt``` package manager. ``` $ sudo apt list neovim Listing... Done neovim/stable 0.7.2-7 amd64 ``` But I rarely install software manually, so I have no id...
I'm asking this, because I need to install NeoVim from github to get the latest 0.9.5 version instead of the v0.7.something available via
package manager.
$ sudo apt list neovim
Listing... Done
neovim/stable 0.7.2-7 amd64
But I rarely install software manually, so I have no idea where exactly (what location) should I choose to install NeoVim manually in the following manner :
Install NeoVim from tarball file:
1. Download -linux64.tar.gz
(**yes, but into what exact location am I supposed 2 download this file?**)
2. Extract: xzvf nvim-linux64.tar.gz
(**yes, but into what exact location am I supposed 2 extract this file?**)
3. Run ./nvim-linux64/bin/nvim
(**what exact dir is represented by the "." in this path?**)
I'm going to install this NeoVim onto Debian 12, virtual private server, no graphical environment.
$ hostnamectl
Static hostname: debian
Icon name: computer-vm
Chassis: vm 🖴
Virtualization: microsoft
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-17-amd64
Architecture: x86-64
Hardware Vendor: Vultr
Hardware Model: HFC
And it's important for me, that this NeoVim opens easily, using
command and not some cumbersome and long, full path and filename invocation.
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
I want to install NeoVim system-wide, so that all the users can use it, the same way they're using any other program.
michal roesler
(289 rep)
Jan 9, 2024, 06:54 PM
• Last activity: Jan 19, 2025, 12:57 AM
4
votes
2
answers
344
views
Linux mint man pages require sudo when pager is neovim
If I `sudo man` it works fine, otherwise I'm getting ``` ~$ man ls fuse: mount failed: Permission denied Cannot mount AppImage, please check your FUSE setup. You might still be able to extract the contents of this AppImage if you run it with the --appimage-extract option. See https://github.com/AppI...
If I
sudo man
it works fine, otherwise I'm getting
~$ man ls
fuse: mount failed: Permission denied
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory
for reference, setting the MANPAGER
as per neovim help
export MANPAGER='nvim +Man!'
:Man
command works fine from inside nvim.
sudavid4
(181 rep)
Jun 6, 2020, 11:15 AM
• Last activity: Jan 10, 2025, 10:51 AM
1
votes
1
answers
44
views
File 'darkmode.sty' not found, emergency stop
### Description When using vimtex to compile my document, I get the error: ``` File `darkmode.sty' not found. error| Emergency stop. error| Fatal error occurred, no output PDF file produced! ``` This error is coming up with several different packages such as darkmode, circuitikz, and float. When I r...
### Description
When using vimtex to compile my document, I get the error:
File `darkmode.sty' not found.
error| Emergency stop.
error| Fatal error occurred, no output PDF file produced!
This error is coming up with several different packages such as darkmode, circuitikz, and float. When I run latexmk from my command line, it compiles without an issue. Specifically, the following is the output I get on an example file:
Rc files read:
NONE
Latexmk: This is Latexmk, John Collins, 31 Jan. 2024. Version 4.83.
No existing .aux file, so I'll make a simple one, and require run of *latex.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': Reasons for rerun
Category 'other':
Rerun of 'pdflatex' forced or previously required:
Reason or flag: 'Initial setup'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -recorder "temp.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/nixos.org) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./temp.tex
LaTeX2e patch level 1
L3 programming layer
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/base/size10.clo))
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/darkmode/darkmode.sty
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/l3kernel/expl3.sty
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/l3backend/l3backend-pdftex.def))
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/l3packages/l3keys2e/l3keys2e.sty)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/xcolor/xcolor.sty
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/graphics-cfg/color.cfg)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/graphics-def/pdftex.def)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/graphics/mathcolor.ltx))
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/pagecolor/pagecolor.sty
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/kvoptions/kvoptions.sty
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/graphics/keyval.sty)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/generic/ltxcmds/ltxcmds.sty)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/kvsetkeys/kvsetkeys.sty)))) (./temp.aux)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) [1{/nix/store/43i94gavdacv9x87kjw3d11lrh05wffn-texlive-combined-2023/share/te
xmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./temp.aux) )
Output written on temp.pdf (1 page, 16780 bytes).
Transcript written on temp.log.
Latexmk: Getting log file 'temp.log'
Latexmk: Examining 'temp.fls'
Latexmk: Examining 'temp.log'
Latexmk: Log file says output to 'temp.pdf'
Latexmk: All targets (temp.pdf) are up-to-date
The example file in question is:
\documentclass{article}
\usepackage{darkmode}
\enabledarkmode
\begin{document}
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{document}
### Steps to reproduce
1. Open a minimal tex document in neovim
2. Use the darkmode package (also an issue with several other packages)
3. Run :VimtexCompileSS
### Expected behavior
The document compiles with no issues as is the case one the command line
### Actual behavior
The error in question is output and the document fails to compile
### VimtexInfo
System info:
OS: Linux 6.6.63
Vim version: NVIM v0.10.2
Has clientserver: true
Servername: /run/user/1000/nvim.29353.0
VimTeX project: temp
base: temp.tex
root: /home/ea
tex: /home/ea/temp.tex
main parser: current file verified
document class: article
packages: darkmode expl3 keyval kvoptions kvsetkeys l3keys2e ltxcmds pagecolor xcolor
compiler: latexmk
engine: -pdf
options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
callback: 1
continuous: 1
executable: latexmk
viewer: Zathura
xwin id: 0
qf method: LaTeX logfile
### System Info
I run NixOS with home manager. I have latex installed according to the NixOS Wiki page on TexLive . Specifically, I've installed a combined set of the full scheme with the darkmode package specified:
let
tex = (pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-full
darkmode;
});
dependencies = with pkgs; [
tex
];
in {
and
home.packages = with pkgs; [
tex
];
ethananthony271
(31 rep)
Dec 24, 2024, 02:39 AM
• Last activity: Dec 24, 2024, 05:38 AM
0
votes
1
answers
33
views
Installing lunarvim from script with the questions answered
On their website, you're asked to install their program via a script instead of downloading it via a package repository like most regular apps do. ``` LV_BRANCH='release-1.4/neovim-0.9' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.4/neovim-0.9/utils/installer/install....
On their website, you're asked to install their program via a script instead of downloading it via a package repository like most regular apps do.
LV_BRANCH='release-1.4/neovim-0.9' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.4/neovim-0.9/utils/installer/install.sh)
The installation process, but I want to create a script where the questions are answered.
How would one write a command that deals with the questions automatically?
Folaht
(1156 rep)
Nov 18, 2024, 02:09 PM
• Last activity: Nov 18, 2024, 02:16 PM
0
votes
1
answers
242
views
How to Disable Picom Transparency While Neovim is Opened?
I'm using the st, simple terminal from suckless. I am running picom on startup with `picom --backend glx`, and the terminal is transparent. I like how the terminal is transparent all the way up until I try using Neovim, where I think it is distracting to see my desktop while editing files. Is there...
I'm using the st, simple terminal from suckless. I am running picom on startup with
picom --backend glx
, and the terminal is transparent. I like how the terminal is transparent all the way up until I try using Neovim, where I think it is distracting to see my desktop while editing files. Is there some way I can disable this transparency only while Neovim is opened?
I have tried googling, and I could only find ways of turning off transparency for an entire window, but that doesn't help because it doesn't only turn it off while Neovim is opened.
Catten
(3 rep)
Oct 26, 2024, 04:20 AM
• Last activity: Oct 26, 2024, 09:34 AM
0
votes
1
answers
104
views
Neovim tabstops and git diff
I am new to vim and have difficulty setting it up. I am working with a FRR code in which the tab is 8 spaces. I want to see 4 spaces instead of 8 and have added the following settings [*options.lua*]: vim.opt.expandtab = true vim.opt.shiftwidth = 4 vim.opt.tabstop = 4 vim.opt.smarttab = true vim.opt...
I am new to vim and have difficulty setting it up.
I am working with a FRR code in which the tab is 8 spaces. I want to see 4 spaces instead of 8 and have added the following settings [*options.lua*]:
vim.opt.expandtab = true
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
vim.opt.smarttab = true
vim.opt.autoindent = true
vim.opt.smartindent = true
git shows new lines in the file as:
- memset(&mroute, 0, sizeof(mroute));
+ memset(&mroute, 0, sizeof(mroute));
stream_get(&mroute.sg.src, client->ibuf, 4);
stream_get(&mroute.sg.grp, client->ibuf, 4);
I don't see the difference in the file itself, but git shows that it is there. How can this be fixed?
Fidelity
(1 rep)
Oct 6, 2024, 05:11 PM
• Last activity: Oct 6, 2024, 05:38 PM
1
votes
2
answers
680
views
How to detect the linux distribution name in Neovim init.lua
How can I detect in my neovim `~/.config/nvim/init.lua` configuration which operating system distribution nvim is running? I want different Neovim configurations on debian servers as on my fedora linux workstation machines. - `vim.loop.os_uname()` only detects 'Linux'. - Is there some builtin like t...
How can I detect in my neovim
~/.config/nvim/init.lua
configuration which operating system distribution nvim is running? I want different Neovim configurations on debian servers as on my fedora linux workstation machines.
- vim.loop.os_uname()
only detects 'Linux'.
- Is there some builtin like the /etc/os-release
file?
Simon Schürg
(241 rep)
Feb 28, 2023, 07:56 PM
• Last activity: Aug 13, 2024, 12:04 AM
0
votes
1
answers
900
views
wezterm > tmux > nvim colors not forwarded through tmux correctly
I'm currently having the problem that the colors are not forwarded correctly from nvim through tmux to wezterm. I think `tmux` is to blame since the colors work like expected when I invoke `nvim` from `wezterm` directly. Compare this: * This is `wezterm` -> `tmux` -> `nvim`: [
wezterm
-> nvim
directly:

.tmux.conf
file:
* .tmux.conf
# Fix Colors
set -g default-terminal "screen-256color"
set -as terminal-features ",xterm-256color:RGB"
But when I do that nothing changes. Strangely, also tmux doesn't seem to detect wezterm correctly, I needed to add export TERM=xterm
to my .bashrc
(I believe TERM
should be set by all terminal emulators to inform subshells about their capabilities?). Maybe the issue is related to this.
OS is Ubuntu 20.04/GNOME
glades
(117 rep)
Jul 18, 2024, 04:14 AM
• Last activity: Jul 24, 2024, 09:33 AM
5
votes
2
answers
6668
views
Error With gtk-launch: Unable to find terminal required for application
I tried to use the following command: ```sh gtk-launch nvim file.txt ``` But it gave me this error: ```sh gtk-launch: error launching application: Unable to find terminal required for application ``` How am I supposed to set the terminal required for application? I already set my `$TERM` and `$TERMI...
I tried to use the following command:
gtk-launch nvim file.txt
But it gave me this error:
gtk-launch: error launching application: Unable to find terminal required for application
How am I supposed to set the terminal required for application? I already set my $TERM
and $TERMINAL
environmental variables:
export TERM="kitty"
export TERMINAL="kitty"
Amarakon
(373 rep)
Jun 25, 2022, 07:48 AM
• Last activity: Mar 22, 2024, 02:38 PM
0
votes
1
answers
202
views
yamlfix not using configuration + (neo)vim usage
I'm using yamlfix with [ale](https://github.com/dense-analysis/ale) in vim. I followed [these steps](https://lyz-code.github.io/yamlfix/) because I wanted to remove the automatic "---" adding on top of the file every time I save my work (and some others default configurations). For some reason, the...
I'm using yamlfix with [ale](https://github.com/dense-analysis/ale) in vim.
I followed [these steps](https://lyz-code.github.io/yamlfix/) because I wanted to remove the automatic "---" adding on top of the file every time I save my work (and some others default configurations).
For some reason, the file is correctly fixed, but my configuration is skipped..
So I decided to try with CLI in order to test my config.
yamlfix exits without error, fixes my file, but is completely skipping my configuration..
The configuration is in ~/pyproject.toml:
# pyproject.toml
[tool.yamlfix]
explicit_start = false
The command is
yamlfix -c ~/pyproject.toml file.yaml
Do I miss something ? Do I need something more ?
Corentin Michel
(3 rep)
Dec 22, 2023, 06:49 AM
• Last activity: Dec 22, 2023, 01:45 PM
2
votes
0
answers
198
views
How to configure coc and nvim to sort react imports correcty?
I use nvim daily in conjunction with coc and it has been extremely more efficient than VS code, however, something that is done in vscode and I can't configure for when I use React is the import in this order . React ( useState, useEffect, useRef) Dependencies ( momentjs, antd ) Built-in ( My own co...
I use nvim daily in conjunction with coc and it has been extremely more efficient than VS code, however, something that is done in vscode and I can't configure for when I use React is the import in this order .
React ( useState, useEffect, useRef)
Dependencies ( momentjs, antd )
Built-in ( My own components as Component.tsx )
I've tried several ways, using coc-eslint, coc-prettier, coc-tsserver, but none of them really work.
I've tried using CocCommand editor.action.organizeImport but it just leaves it in alphabetical order
*My nvim config*
set nocompatible
syntax enable
set colorcolumn=80
set updatetime=500
set relativenumber
set viminfo='1000
set tabstop=2
set shiftwidth=2
set expandtab
set completeopt=noinsert,menuone,noselect
set wildmenu
set ignorecase
set autoindent
let g:fzf_preview_command = 'bat --color=always --plain {-1}'
let let g:fzf_preview_git_files_command = 'fd .'
let g:fzf_preview_filelist_command = 'rg --files --hidden --follow --no-messages -g \!"* *"'
highlight ColorColumn ctermbg=0 guibg=lightgrey
call plug#begin()
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree' " NERD Tree
Plug 'Xuyuanp/nerdtree-git-plugin' " show git status in Nerd tree
Plug 'itchyny/lightline.vim' " UI
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
" Code {{{
Plug 'editorconfig/editorconfig-vim'
Plug 'maxmellon/vim-jsx-pretty'
Plug 'othree/html5.vim'
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }} " Markdown preview
"}}}
" GIT {{{
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
" }}}
call plug#end()
let mapleader=" "
" by myself
"go to
nmap gy (coc-type-definition)
nmap gi (coc-implementation)
nmap gr (coc-references)
nmap gd (coc-definition)
"search
map g :CocCommand fzf-preview.ProjectGrep
nnoremap f :CocCommand fzf-preview.GitFiles
nnoremap d :CocCommand fzf-preview.CocDefinition
nnoremap :CocCommand fzf-preview.CocDiagnostics
nnoremap :CocCommand fzf-preview.CocTypeDefinition
nnoremap :CocCommand fzf-preview.CocImplementations
"snippets
inoremap
\ coc#pum#visible() ? coc#_select_confirm() :
\ coc#expandableOrJumpable() ? "\=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\" :
\ CheckBackspace() ? "\" :
\ coc#refresh()
function! CheckBackspace() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
let g:coc_snippet_next = ''
" Use for both expand and jump (make expand higher priority.)
imap (coc-snippets-expand-jump)
" Use for jump to previous placeholder, it's default of coc.nvim
let g:coc_snippet_prev = ''
"tabs & navigation
map t gt
map n :tabnew
map m :tabmove
map c :close
map :tabclose
map o :tabonly
"common
noremap l :nohl
noremap s :vsp
map w :w
map y "+y
map p "+p
map r w
"autoindent - eslint - prettier
command! -nargs=0 Prettier :call CocAction('runCommand', 'prettier.formatFile')
augroup Mygroup
autocmd!
autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')
autocmd BufWritePre .ts,.js,.py,.rb,*.go silent! call CocAction('runCommand', 'editor.action.organizeImport')
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end
*My CocConfig*
{
"suggest.noselect": true,
"javascript.updateImportsOnFileMove": "always",
"javascript.suggestionActions.enabled": true,
"javascript.implementationsCodeLens.enabled": true,
"javascript.preferences.quoteStyle":"single",
"javascript.suggest.autoImports": true,
"tsserver.experimental.enableProjectDiagnostics": true,
"typescript.suggest.autoImports": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false,
"typescript.preferences.importModuleSpecifier": "shortest",
"typescript.preferences.importModuleSpecifierEnding": "minimal",
"snippets.ultisnips.pythonPrompt": false,
"eslint.autoFixOnSave": true,
"eslint.filetypes":["javascript", "javascriptreact", "typescript", "typescriptreact"],
"prettier.disableSuccessMessage": true,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"tsserver.formatOnType": true,
"coc.preferences.formatOnType": true
}
Hudson Ribeiro
(21 rep)
Dec 12, 2023, 08:31 PM
0
votes
0
answers
1008
views
Setting indent blankline plugin in lua with custom options
I do not know how to write configs in lua. I am using neovim and my configartion is written in lua. I have few plugins and I use lazy nvim as my plugin manager. I have a seperate plugins directory which holds my plugins' lua files. I currently have the below as my indent-blankline.lua file: ``` loca...
I do not know how to write configs in lua.
I am using neovim and my configartion is written in lua.
I have few plugins and I use lazy nvim as my plugin manager.
I have a seperate plugins directory which holds my plugins' lua files.
I currently have the below as my indent-blankline.lua file:
local Plugin = {'lukas-reineke/indent-blankline.nvim'}
Plugin.name = 'indent_blankline'
Plugin.main = 'ibl'
Plugin.event = {'BufReadPost', 'BufNewFile'}
-- See :help ibl.setup()
Plugin.opts = {
enabled = false,
scope = {
enabled = false,
},
indent = {
char = '▏',
},
}
return Plugin
I want to add the config below which I found in the github page of the plugin. It will apply colors to the lines:
local highlight = {
"RainbowRed",
"RainbowYellow",
"RainbowBlue",
"RainbowOrange",
"RainbowGreen",
"RainbowViolet",
"RainbowCyan",
}
local hooks = require "ibl.hooks"
-- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
end)
require("ibl").setup { indent = { highlight = highlight } }
I am not sure how/where to place the above.
I wonder if someone can tell me how do I integrate this to my config.
Muzzamil
(3 rep)
Oct 15, 2023, 07:09 AM
2
votes
1
answers
2174
views
Colors different when running nvim through tmux using alacritty config
Background: I'm just setting up an install of Arcolinux. I have a keyboard shortcut SUPER+Enter to launch alacritty. What I want is to have alacritty automatically create and start in a new tmux session if there are none that havent been attached to. Or attach to an existing tmux session if nothing...
Background:
I'm just setting up an install of Arcolinux. I have a keyboard shortcut SUPER+Enter to launch alacritty.
What I want is to have alacritty automatically create and start in a new tmux session if there are none that havent been attached to.
Or attach to an existing tmux session if nothing is attached to it.
I got this working by adding the following into alacritty.yml:
shell:
program: /usr/bin/bash
args:
- -l
- -c
- "tmux ls | grep -v attached && tmux attach || tmux"
This all works exactly as I would like apart from one thing, the colors in nvim are messed up using this method (darker so visual mode has the same highlight color as the background - annoying).
I found several related issues and have tried solutions from there:
e.g
I have the following in my tmux config (as well as some other variants including a 2 liner):
set -ag terminal-overrides ",xterm-256color:RGB"
I've made sure the TERM variable is set to
xterm-256color
and I also tried setting background to "dark" in nvim.
None of this seems to help when I launch nvim from a tmux session connected to using the above configuration in alacritty.
However if I remove the alactritty configuration and run the command to connect to tmux manually everything works fine and nvim looks as expected:
/usr/bin/bash -l -c "tmux ls | grep -v attached && tmux attach || tmux"
Any ideas why im getting different results launching from the alacritty config.
FYI part of the reason I am doing it this way is because I have no idea where the binding for SUPER+Enter is set, cant find it in any config files or settings (is there a better way to chase it down) so thoughts on that might be useful too.
SwiftD
(191 rep)
Sep 28, 2023, 01:45 PM
• Last activity: Sep 28, 2023, 03:08 PM
1
votes
1
answers
686
views
Just installed nvim 0.10 and can't find or open it
I installed nvim 0.9 from [this site][1] but I can't find or open it, if I try to use `sudo dnf install neovim` It says `Package neovim-0.10.0~dev.361.ge3e6fadfd-500.fc36.x86_64 is already installed.` but when I type the `nvim` command it says `zsh: nvim: command not found... Similar command is: 'vi...
I installed nvim 0.9 from this site but I can't find or open it, if I try to use
sudo dnf install neovim
It says Package neovim-0.10.0~dev.361.ge3e6fadfd-500.fc36.x86_64 is already installed.
but when I type the nvim
command it says `zsh: nvim: command not found...
Similar command is: 'vim'`. Please what can I do.
Emac342007
(111 rep)
Sep 13, 2023, 09:30 AM
• Last activity: Sep 14, 2023, 12:18 PM
0
votes
0
answers
254
views
piping text file contents with unsaved modifications to a command with the neovim interactive terminal emulator
I want to know if theres an equivalent to `:w !cmd` for the nvim terminal emulator. Like `:te cat % | cmd` is almost there but you would have to save the file before using it. Is there another way? Like can you use other registers as substitutions in commands like you can with %?
I want to know if theres an equivalent to
:w !cmd
for the nvim terminal emulator. Like :te cat % | cmd
is almost there but you would have to save the file before using it.
Is there another way?
Like can you use other registers as substitutions in commands like you can with %?
teo
(1 rep)
Jun 4, 2023, 12:48 AM
• Last activity: Jun 4, 2023, 02:20 AM
1
votes
1
answers
334
views
SetFileTypeSH missing
I try to edit a SH file but I always get an error opening: ``` Error detected while processing BufReadPre Autocommands for "*": ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:171: Vim(echomsg):E114: Missing quote: "Error in packer_compiled: ...m/site/pack/packer/start/packer.nvim/lua/pa...
I try to edit a SH file but I always get an error opening:
Error detected while processing BufReadPre Autocommands for "*":
...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:171: Vim(echomsg):E114: Missing quote: "Error in packer_compiled: ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:160: Vim(lua):E5108: Error executing lua ...r/start/filetype.nvim/lu
a/filetype/mappings/function.lua:391: Vim(call):E117: Unknown function: dist#ft#SetFileTypeSH
Error detected while processing BufReadPost Autocommands for "*":
E5108: Error executing lua ...r/start/filetype.nvim/lua/filetype/mappings/function.lua:391: Vim(call):E117: Unknown function: dist#ft#SetFileTypeSH
stack traceback:
...r/start/filetype.nvim/lua/filetype/mappings/function.lua:391: in function 'name'
...te/pack/packer/start/filetype.nvim/lua/filetype/init.lua:17: in function 'set_filetype'
...te/pack/packer/start/filetype.nvim/lua/filetype/init.lua:65: in function 'try_lookup'
...te/pack/packer/start/filetype.nvim/lua/filetype/init.lua:168: in function 'resolve'
I do install neovim through ppa, so it should be part of it.
neovim info:
NVIM v0.9.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -ffile-prefix-map=/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f/build/cmake.config -I/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f/src -I/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f/.deps/usr/include -I/usr/include -I/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f/build/src/nvim/auto -I/build/neovim-HE6zRx/neovim-0.9.0~ubuntu1+git202301100019-364b131f4-333b5866f/build/include
Compiled by buildd@lcy02-amd64-115
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
Searching for that error has not revaeled something that appears to be a solution (at least for me)
Has someone a clue?
Sascha
(245 rep)
Jan 10, 2023, 01:49 PM
• Last activity: May 12, 2023, 12:10 PM
0
votes
1
answers
1862
views
treesitter Neovim plugin not working on nixos
I have installed home-manager in a flake as a module. The Flake and the Module are in ```/etc/nixos/```. My Home manager File links to another file in which I configure neovim, this file is located in ```/etc/nixos/config/nvim/nvim.nix```. The Contents of that file are ``` # neovim configuration fil...
I have installed home-manager in a flake as a module.
The Flake and the Module are in
My Home manager File links to another file in which I configure neovim, this file is located in
The Contents of that file are
The Flake and the Module are in
/etc/nixos/
.My Home manager File links to another file in which I configure neovim, this file is located in
/etc/nixos/config/nvim/nvim.nix
.
The Contents of that file are
# neovim configuration file
pkgs:
{
enable = true;
vimAlias = true;
# A simple configuration for neovim (sourced files)
extraLuaConfig = ''
-- Indentation
vim.opt.smartindent = true
vim.opt.autoindent = true
-- UI settings
vim.opt.number = true
vim.opt.cursorline = true
'';
plugins = with pkgs.vimPlugins; [
vim-nix
yuck-vim
markdown-preview-nvim
{
plugin = telescope-nvim;
config = ''
" Find files using Telescope command-line sugar.
noremap ff Telescope find_files
nnoremap fg Telescope live_grep
nnoremap fb Telescope buffers
nnoremap fh Telescope help_tags
" Using Lua functions
nnoremap ff lua require('telescope.builtin').find_files()
nnoremap fg lua require('telescope.builtin').live_grep()
nnoremap fb lua require('telescope.builtin').buffers()
nnoremap fh lua require('telescope.builtin').help_tags()
'';
}
{
type = "lua";
plugin = catppuccin-nvim;
config = ''
require("catppuccin").setup({
flavour = "mocha", -- latte, frappe, macchiato, mocha
background = { -- :h background
light = "latte",
dark = "mocha",
},
transparent_background = false,
show_end_of_buffer = false, -- show the '~' characters after the end of buffers
term_colors = false,
dim_inactive = {
enabled = false,
shade = "dark",
percentage = 0.15,
},
no_italic = false, -- Force no italic
no_bold = false, -- Force no bold
styles = {
comments = { "italic" },
conditionals = { "italic" },
loops = {},
functions = {},
keywords = {},
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = {},
operators = {},
},
color_overrides = {},
custom_highlights = {},
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
telescope = true,
notify = false,
mini = false,
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
})
-- setup must be called before loading
vim.cmd.colorscheme "catppuccin"
'';
}
nvim-web-devicons
neo-tree-nvim
{
type = "lua";
plugin = nvim-treesitter;
config = ''
require'nvim-treesitter.configs'.setup {
ensure_installed = "maintained",
highlight = {
enable = true,
}
}
'';
}
nvim-lspconfig
rust-tools-nvim
];
extraPackages = with pkgs; [
tree-sitter
rust-analyzer
ripgrep
nil
zig
ripgrep
kotlin-language-server
fd
statix
cppcheck
deadnix
alejandra
nodePackages.pyright
nodejs-16_x
tree-sitter
nil
clang-tools
cmake-language-server
# ccls
wl-clipboard
omnisharp-roslyn
netcoredbg
gcc # treesitter
nixfmt
nodePackages.typescript-language-server
python310Packages.autopep8
lazygit
];
}
When I open a file, for example a *.lua
I get the error Message:Error detected while processing /home/simon/.config/nvim/init.lua:
Could not create parser dir ' /nix/store/w3x3582xldrjymxbxz98lzlfmhazibmy-vim-pack-dir/pack/myNeovimPackages/start/nvim-treesitter/parser ': Vim:E739: Cannot create directory /nix/sto
re/w3x3582xldrjymxbxz98lzlfmhazibmy-vim-pack-dir/pack/myNeovimPackages/start/nvim-treesitter/parser: read-only file system
How can I fix this? Any help is greatly appreciated.
Zxmon
(3 rep)
Feb 11, 2023, 06:03 PM
• Last activity: Feb 11, 2023, 06:38 PM
0
votes
1
answers
274
views
Installing Neovim v0.8.1 with Guix makes some treesitter parser unusuable because of GLIBCXX_3.4.29 not found
It seems that guix compile neovim with gcc 10.3 which does not come with `GLIBCXX_3.4.29` (like described [here](https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html)). The exact error provided while opening neovim with an html file for example is : ``` Error detected while processing BufNewFile...
It seems that guix compile neovim with gcc 10.3 which does not come with
GLIBCXX_3.4.29
(like described [here](https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html)) . The exact error provided while opening neovim with an html file for example is :
Error detected while processing BufNewFile Autocommands for "*":
Error executing lua callback: ...vwccg5g0rcy-neovim-0.8.1/share/nvim/runtime/filetype.lua:22: Error execu
ting lua: ...vwccg5g0rcy-neovim-0.8.1/share/nvim/runtime/filetype.lua:23: Vim(append):Error executing lua
callback: Failed to load parser: uv_dlopen: /gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/l
ib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/chillpc/.local/share/nvim/lazy/n
vim-treesitter/parser/html.so)
stack traceback:
...
From the package description, neovim use the cmake build system and pkg-config. I didn't see any possibility to specify the gcc version used in order to get everything needed. Just installing the last version of gcc does not, of course, fix my issue.
Can you give me pointers?
ChillPC
(1 rep)
Jan 31, 2023, 08:55 PM
• Last activity: Feb 1, 2023, 09:13 AM
Showing page 1 of 20 total questions