/fanyfull-astronvim

My own configuration for AstroNvim.

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

About

preface

中文的效果是怎么样的呢?似乎有点粗了。将军直接。

Maybe some people would say, it is useless for coding to spend such a lot of time on configuring code editors.

Who cares?

Just for fun :)

description

99.99% inspired by AstroNvim.

Based on AstroNvim, I made my own customized config by my own preference. Some of these configs are not that elegant, cause that now I don't have so much time to apply so said best practice.

But I also believe that someone would get it easy to configure some parts of neovim or AstroNvim when watching my config, to some extend. For example, I found that many guys do not exactly know how to change cursor color of neovide, a gui front-end app for neovim, I also did not know before, but eventually I make it. I think that's it and would make some little sense. For another example, that's hop-nvim, and I make it more like easymotion in vim and vscode-vim.

features

All my added options/features are list as follows.

neovide

Neovim front-end app written by Rust.

cursor color

Change neovide cursor color to Water blue.

#AFDFE4

Neovim docs link is as follows,

https://neovim.io/doc/user/options.html#%27guicursor%27

animation

Out of box features.

particles.

nvim-cmp

How to make auto-completion to accept first selection when we press the enter key.

nvim-hop

Let's use keyboard like a black wizard.

Rewrited version of vim-easymotion.

Workaround to solve current flaws.

nvim-surround

Just install and use the default utilities it provide.

recursively indent lines

toggle-terminal

PowerShell.

clangd for c++

How to disable auto import header files.

python

Mainly two plugins.

  • pyright: not implement formatting codes.
  • autopep8: used to format codes

telescope

Hidden files.

leader + fF leader + fW

fontLigatures

Default feature is enough.

F11 fullscreen

This may calse some problem, it even would flash a windows7 window frame in a second! Oh my godness. But I believe it's Microsoft's fault.

shortcuts

diagnostics

auto-formated

This default switch is turned on.

I turned it off.

better-escape.nvim

By default, this switch is on, that means when we enter jj in a fast speed during insert mode, nvim will escape to normal mode.

rust

rust-analyser.

Todo.

Some useful keymaps

Here are some useful keymaps, whether default or not.

  • K: show the symbol docs. just like show docs when cursor is over the symbol. if we hit the capital K twice then we would get carete focused on the pop up windows.