Update nvim config

This commit is contained in:
Shockwave 2024-11-08 13:30:51 +08:00
parent 8dd1b2a146
commit 6993837710
2 changed files with 41 additions and 16 deletions

View File

@ -3,7 +3,6 @@
## Introduction ## Introduction
This project mainly stores config files, or dot files for development, such as vim, zsh, tmux and so on. This project mainly stores config files, or dot files for development, such as vim, zsh, tmux and so on.
The purpose of this project is to build a Persional Develop Environment, AKA PDE, based on Linux and Windows. The purpose of this project is to build a Persional Develop Environment, AKA PDE, based on Linux and Windows.
## Content ## Content
@ -16,7 +15,7 @@ The purpose of this project is to build a Persional Develop Environment, AKA PDE
1. vim/neovim 1. vim/neovim
God of text editor. Emacs is also cool. God of text editor. Emacs is also cool especially for its org-mode.
2. zsh with oh-my-zsh 2. zsh with oh-my-zsh
@ -25,14 +24,17 @@ Zsh is compatible with Bash. With plugins, it is an ultimate shell for *nix User
3. Windows Terminal & PowerShell 3. Windows Terminal & PowerShell
It's hard to obtain Zsh on Windows, but PowerShell won't fail me. Although it supports Multi-platform, It's hard to obtain Zsh on Windows, but PowerShell won't fail me. Although it supports Multi-platform,
but I only use it on Windows 10+。 but I only use it on Windows 10+。Cmder is also cool for Windows 7 or 8.
There are two PowerShells. One is WindowsPowerShell within Windows. The other is PowerShell on github. There are two PowerShells. One is WindowsPowerShell within Windows. The other is PowerShell on github,
The former is only for Windows, and it needs to set text encoding to support utf-8. The latter supports which was called PowerShell Core. The former is only for Windows, and it needs to set text encoding to
Muti-platform, and is strongly recommended. support utf-8. The latter supports Muti-platform, and is strongly recommended.
4. tmux 4. tmux
A powerful terminal mulitplexer. It supports multi-sessions, multi-windows, multi-tabs using one SSH
connection. With oh-my-tmux, it becomes more efficient. Of course, you can also try Zellij.
5. vscode/vscodium 5. vscode/vscodium
@ -41,20 +43,35 @@ But it took months to change vim/neovim vscode-like😂.
6. kitty/wezterm/alacritty 6. kitty/wezterm/alacritty
These are cool Terminal Emulators, I prefer wezterm and kitty. These are cool Terminal Emulators, and I prefer wezterm and kitty.
7. yacHttp 7. yacHttp
Yet Another HTTP client, written HTTP requests in *.http files, and run in neovim or vscode. No need Yet Another HTTP client, written HTTP requests in *.http files, and run in neovim or vscode. No need
to install postman or ApiFox. to install postman or ApiFox.
8. mycli/pgcli
Mycli is a cool terminal client tools to visit MySQL/Mariadb servers, and pgcli is for PostgreSQL.
9. IDEA/PyCharm Community
Though vim/neovim is powerful, IDEA is the supreme IDE in Java development. IDEA Community version is
enough for Spring Boot based projects. PyCharm Community is also a choice for Python development.
All IDE products of JetBrains can be vim-like with idea-vim plugin.
10. Dependency sources
Experience of using maven, pip, Golang and npm can be improved with local images. For example,
tuna image source.
## Experimental Tools ## Experimental Tools
1. helix 1. helix
A post-modern terminal text editor with LSP inside. A post-modern terminal text editor with LSP inside. It may be more powerful than vim/neovim in the future.
2. nushell 2. nushell
A new Shell developed by Rust, with unique grammer. A new Shell developed by Rust, with unique grammer and behaves, which is worth trying.

View File

@ -31,14 +31,22 @@ end
local dashboard = require("alpha.themes.dashboard") local dashboard = require("alpha.themes.dashboard")
dashboard.section.header.val = pic dashboard.section.header.val = pic
dashboard.section.buttons.val = { dashboard.section.buttons.val = {
dashboard.button("f", " Find file", ":Telescope find_files <CR>"), -- dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"), -- dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("p", " Find project", ":Telescope projects <CR>"), -- dashboard.button("p", " Find project", ":Telescope projects <CR>"),
dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"), -- dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
dashboard.button("t", " Find text", ":Telescope live_grep <CR>"), -- dashboard.button("t", " Find text", ":Telescope live_grep <CR>"),
-- dashboard.button("c", " Configuration", ":e ~/.config/nvim/init.lua <CR>"), -- dashboard.button("c", " Configuration", ":e ~/.config/nvim/init.lua <CR>"),
dashboard.button("u", " Update plugins", ":Lazy<CR>"), -- dashboard.button("u", " Update plugins", ":Lazy<CR>"),
dashboard.button("q", " Quit Neovim", ":qa<CR>"), -- dashboard.button("q", " Quit Neovim", ":qa<CR>"),
dashboard.button("f", "🔎 Find file", ":Telescope find_files <CR>"),
-- dashboard.button("e", "📄 New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("l", "⚙ Show plugins", ":Lazy<CR>"),
dashboard.button("p", "📁 Find project", ":Telescope projects <CR>"),
dashboard.button("r", "🕒 Recently used files", ":Telescope oldfiles <CR>"),
dashboard.button("t", "📝 Find text", ":Telescope live_grep <CR>"),
dashboard.button("u", "🔄 Update plugins", ":Lazy<CR>"),
dashboard.button("q", "⛔ Quit Neovim", ":qa<CR>"),
} }
local vim_footer = [[ local vim_footer = [[