sbeyer / neovim-config Goto Github PK
View Code? Open in Web Editor NEWMy configuration for neovim
My configuration for neovim
It's nice to be sure to be in the project root.
Need e.g. d,w
and c,w
E5108: Error executing lua: .../.config/nvim/lua/astronvim/utils/buffer.lua:72: attempt to concatenate local 'bufnr' (a nil value)
stack traceback:
.../.config/nvim/lua/astronvim/utils/buffer.lua:72: in function 'close'
.../.config/nvim/lua/astronvim/mappings.lua:49: in function <.../.config/nvim/lua/astronvim/mappings.lua:49>
nmap <silent> <F2> :%ClangFormat<CR>
Remove rename current renaming feature
nmap <silent>gD <Plug>(lcn-definition)
nmap <silent>gd :split<CR><Plug>(lcn-definition)
e.g. for LaTeX but also for Doxygen (when desired)
I recently started trying https://github.com/tpope/vim-obsession and https://github.com/dhruvasagar/vim-prosession for this, but I did not find a conclusion if I really liked it.
indentLine relies on the conceal feature, which is probably nice but I don't like the way many syntax highlighters use it (including tex, json and markdown). Either look for an alternative to indentLine or find a way to disable it for syntax highlighting
TSInstall qmljs
works, however, *.qml
files should then also be considered as qmljs
filetype.
No need for vim-qml
then.
https://github.com/ConradIrwin/vim-bracketed-paste
This was a must-have in my old vim configuration.
But nowadays I don't paste that much anymore ;-)
echo "Plug 'sheerun/vim-polyglot'" > plugin/polyglot.vim
https://github.com/tpope/vim-surround
I remember using it but having issues with inserted spaces. Like cs({
did not replace (foo)
by {foo}
, but by { foo }
which rendered the whole thing as useless for me. Still have to take a look as soon as I need it.
from UltiSnips/xml.snippets
:
snippet < "Add oneline XML tag"
<${1:tag}>${2:content}</${1/([\w:._-]+).*/$1/}>
endsnippet
snippet << "Add multiline XML tag" b
<${1:tag}>
${2:content}
</${1/([\w:._-]+).*/$1/}>
endsnippet
https://github.com/danymat/neogen seems to be nice if it works for C++
See also https://code.mehalter.com/projects/68/files/master/plugins/neogen
In the paq init:
-- nicer git commit
'rhysd/committia.vim';
We should have one way to auto-install the (for my use cases) necessary treesitter parsers.
Also, there seems to be an auto-install feature, see https://github.com/nvim-treesitter/nvim-treesitter/pull/3130/files which could be interesting to use.
However, we would still need a default TS installation, e.g. for TSInstall comment
.
like this:
command! Rw call RipgrepFzf(expand('<cword>'), 0)
pynvim / python3-neovim missing
AstroNvim is now a plugin to be used by lazy, so that changes a lot.
In my old vim configuration, I used https://github.com/tpope/vim-eunuch to get file system commands.
In particular, I used the :Move
command. However, since I am in git repositories most of the time, I did not need it, because I usually do :GMove newfilename
from vim-fugitive. The unavailability of :Move
is good in this case, so I cannot accidentally use it and then have to update git's index later.
However, sometimes things like :Mkdir
might be useful. Maybe there is a better solution that works nicely with or is somewhat integrated into dirvish?
The latest dirvish is very buggy. AstroNVim's choice of neo-tree seems to be a good alternative, so we should be able to remove dirvish and just get used to using neo-tree.
I still don't understand why this is not one of neovim's defaults.
See https://crispgm.com/page/neovim-is-overpowering.html
and https://console.dev/reviews/neovim-best-code-editor-ide-for-developers/
and https://blog.inkdrop.app/how-to-set-up-neovim-0-5-modern-plugins-lsp-treesitter-etc-542c3d9c9887
Telescope and nvim-comple are probably also better than fzf and deoplete, respectively?
It seems that ClangFormat does not format if no .clang-format file is existent, which is a behavior that I like.
System fzf may lead to problems. fzf.vim can download its own version of fzf.
Makes search better
Try these and choose one:
I used https://github.com/chrisbra/NrrwRgn for this but it was ... well ... a little buggy, or let's say, not as robust as it could be.
Add typical vim commands/shortcuts in my workflow to README.md
imap <F2> <ESC><F2>
:)
https://github.com/tpope/vim-speeddating
I used it in my old config and I wonder where I really used it... I guess I will install it as soon as I stumble over the case where I need it.
Also keep in mind that it's more useful when used with https://github.com/tpope/vim-repeat which is generally a good idea.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.