Skip to content

AndreM222/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

45 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

NVIM Dotfiles

Contents ๐Ÿ“ฆ

  • Neovim Configuration

Navigation โœˆ๏ธ

Back To Windows-Dotfiles <- (For Detailed Setup)

Dependencies ๐Ÿ“ƒ

  • Neovim >= 0.10.0 (needs to be built with LuaJIT)

  • Nerd Fonts >= 3.0

Setup โš’๏ธ

Package Managers ๐Ÿ“ฆ
winget install CoreyButler.NVMforWindows
nvm install lts
nvm use lts
Scoop - Needs Installation

Neovim Plugins ๐Ÿ“ฒ

Directory Structure ๐Ÿ—‚๏ธ

๐Ÿ“‚ $HOME/AppData/Local/Nvim
|__๐Ÿ“‚lua/andrem222
|   |__๐Ÿ“‚ lang
|   |   |__๐Ÿ“‘ All Translations Files
|   |__๐Ÿ“‚ pluginDev
|   |   |__๐Ÿ“‘ All Personal Plugin Installation and Setup Files
|   |__๐Ÿ“‚ plugins
|   |   |__๐Ÿ“‘ All Plugin Installation and Setup Files
|   |__๐Ÿ“„bindings.lua
|   |__๐Ÿ“„config.lua
|   |__๐Ÿ“„debug.lua
|   |__๐Ÿ“„devconfig.lua
|   |__๐Ÿ“„langMSG.lua
|   |__๐Ÿ“„lazy.lua
|   |__๐Ÿ“„theme.lua
|__๐Ÿ“„init.lua

Languages ๐Ÿ—ฃ๏ธ

Completion, Format, Compiler, and Linter

Servers ๐Ÿ—ƒ๏ธ


Winget - Windows Installed

C++ winget install clangd

Lua winget install lua-language-server

NodeJS - Needs Installation

Live-Server npm install -g live-server

Python npm install -g pyright

Typescript npm install -g typescript typescript-language-server

Tailwind CSS npm install -g tailwindcss-language-server

Dotnet - Windows Installed

C-Sharp dotnet tool install --global csharp-ls

Format Languages ๐Ÿ“„


C++ at the setup of llvm

Pip - Needs Installation

Python pip install --upgrade autopep8

NodeJS - Needs Installation

Marksman npm install -g marksman

Typescript npm install -g prettier

Compilers And Intrepeters โš™๏ธ


Winget - Windows Installed
  • Python - At the installation of Python Package Manager

  • Rust - At the installation of Rust Package Manager

  • C++ - winget install -i LLVM.LLVM

NodeJS - Needs Installation
  • NodeJS - At the installation of NodeJS Package Manager

Translations ๐ŸŒ

Because I am currently learning japanese and trying to use it daily I wanted to change the language of the setup. But knowing some people who use english may want to use my setup I have decided to add translations in the dotfiles.

When run nvim will pass the language you have set and translate it to the desired language. If no language available or translation than it will setup the default message.

Warning

Japanese is still now available. Will be coming as soon as I finish learning sufficient to bring a well translated configuration.

Format for translations:

    "Message to print (message Id)": {
        "msgstr (Translated message/Id)": ""
    },

Location of translation files:

๐Ÿ“‚ $HOME/AppData/Local/Nvim/lua/andrem222/lang
|__๐Ÿ“‘ All Translations Files

Info โ„น๏ธ

Read: To visualize on vim the keybindings press F3. I also documented all my custom bindings.

Custom Mappings โŒจ๏ธ

\ + f - Telescope Find Files

\ + r - Telescope Live Grep

\ + \ + \ - Telescope Buffers

\ + t - Telescope

\ + r - Telescope Resume Search

\ + w - Telescope Diagnostics

\ + g - Telescope Git-Status

F2 - Telescope Help Tags

F3 - Telescope Keymaps

Alt - Up - Move Line | Block up

Alt - Down - Move Line | Block Down

Alt - Left - Move Line | Block Left

Alt - Right - Move Line | Block Right

Shift - f - Format

K - Lspsaga Hover Doc

Alt - k - Lspsaga Peek Definition

Ctrl - k - Lspsaga Go To Definition

g + d - lspsaga Finder

g + p - Lspsaga Code Actions

Ctrl - j - Lspsaga Jump Diagnostic Forward

Ctrl - Shift- j - Lspsaga Jump Diagnostic Reverse

g - l - Lspsaga Line Diagnostic

g + r - Lspsaga Rename

s + s - Horizontal Split

s + v - Vertical Split

Ctrl - Alt - k - Increase Pane Vertical

Ctrl - Alt - i - Decrease Pane Vertical

Ctrl - Alt - l - Increase Pane Horizontal

Ctrl - Alt - j - Decrease Pane Horizontal

s + k - Pane Move Up

s + j - Pane Move Down

s + h - Pane Move Left

s + l - Pane Move Right

F9 - Debugger Continue

F10 - Debugger Step Over

F11 - Debugger Step Into

F12 - Debugger Step Out

\ + b + b - Debugger Breakpoint

\ + b + c - Debugger Breakpoint With Conditions

\ + b + l - Debugger Breakpoint With Log Message

\ + b + u - Debugger Toggle

Alt - = - Open Fold All

Alt - - - Close Fold All

+ - Open Folds Selected

_ - Close Folds Selected

CTRL - / - Comment Line In Line

CTRL - Alt - / - Comment BLock

Esc - Clear hlsearch

\p - Paste Without Deleting

\d - Delete Without Deleting

Debugging ๐Ÿž

Problem: Icons are not showing completly

Fix:

Some fonts do not work well with some color themes and can cause that issue or the terminal.
You have to try until you find the right font, switch the theme, terminal or make tweaks by yourself. Generaly fonts ending with mono work.

problem: Transparency Not Available

Fix:

Check you enabled transparency in the temrinal. If you still encounter
problems then you probably have to enable it from your nvim configuration.
Dracula theme transparency is not sufficient so some tweaks are requried.
For example:
                colors = {},
                transparent_bg = true,
                show_end_of_buffer = true,
                overrides = {
                    EndOfBuffer = { fg = "#282A36" }
                },

This will disable the background from dracula so transparency can be seen.

Problem: C-Sharp not running

Fix: You are required to create a project for it to work

Problem: Customize format

Fix:

Look for the documentation to make the changes on the CLI.

For clang-format: https://clang.llvm.org/docs/ClangFormat.html
For prettier: https://prettier.io/docs/en/options.html#vue-files-script-and-style-tags-indentation

Problem: Scoop buckets wont update

Fix:

scoop config SCOOP_BRANCH master
scoop update

Problem: C++ compiler not working

Fix:

When installing LLVM choose add to path.
Also be use clang if you are using LLVM

Problem: Markdown-Preview not installing

Fix:

In case of not installing. You can go directly to the installed plugins
folder, and run the installer manually.

About

My nvim portable setup

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages