New answers tagged lua
3
votes
Avoiding name conflicts in ~/.config/nvim/lua/
Most configs I've seen handle this by putting a my directory inside the lua directory. This would allow you to do:
require("my.telescope")
0
votes
How do I open an existing file in a floating window?
instead of vim.cmd(":edit catalog.txt")
you could use vim.cmd(":read catalog.txt")
1
vote
Accepted
How to exclude a specific buffer from the BufEnter autocmd group?
So I found a solution which is to use the BufRead event, which doesn't affect dashboard for some reason.
return {
"your/plugin",
event = "BufRead",
}
0
votes
How to exclude a specific buffer from the BufEnter autocmd group?
I would put a condition in the autocmd command:
For Startify I would do:
augroup NVIMCMP
autocmd!
autocmd BufEnter * if &filetype!=#'startify' | MyCommand | endif
augroup END
For Dashboard I ...
Top 50 recent answers are included
Related Tags
lua × 145neovim × 128
vimscript × 21
lsp × 13
autocmd × 9
vimscript-lua × 7
plugin × 7
nvchad × 7
vimrc × 6
packer × 6
init.lua × 5
key-bindings × 4
command-line × 4
vim-windows × 3
init × 3
plugin-treesitter × 3
astronvim × 3
buffers × 2
insert-mode × 2
functions × 2
highlight × 2
plugin-system × 2
filetype × 2
register × 2
ex-mode × 2