Skip to content

hisasann/neovim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenshot.png

screenshot2.png

screenshot3.png

How to my coding style using Neovim, tmux, iTerm2 with fish - YouTube

My neovim settings

Plugins

Shell setup

Dotfiles

hisasann/dotfile

Neovim setup

Install Neovim

$ brew install neovim

Already installed Neovim

If it is already included, uninstall it and then install it.

We start with unlink, but if you have never installed neovim via brew, you only need to install.

$ brew unlink neovim
$ brew uninstall --force neovim
$ brew install --HEAD neovim
$ brew link neovim

If you get an Xcode error, do the following

$ sudo rm -rf /Library/Developer/CommandLineTools
$ sudo xcode-select --install

If you have not yet installed neovim, run this command.

$ brew install --HEAD neovim

For init.lua configuration files

git clone [email protected]:hisasann/neovim.git ~/.config/nvim

If you get an error with defx.nvim, etc., running the following on neovim may fix the problem.

:UpdateRemotePlugins

Type checking with nvim-lspconfig

Built-in commands

If lsp is not working properly, you may want to check with the following command.

  • :LspInfo shows the status of active and configured language servers.

The following support tab-completion for all arguments:

  • :LspStart <config_name> Start the requested server name. Will only succesfully start if the command detects a root directory matching the current config. Pass autostart = false to your .setup{} call for a language server if you would like to launch clients solely with this command. Defaults to all servers matching current buffer filetype.
  • :LspStop <client_id> Defaults to stopping all buffer clients.
  • :LspRestart <client_id> Defaults to restarting all buffer clients.

neovim/nvim-lspconfig: Quickstart configurations for the Nvim LSP client

lspsaga.nvim

This is useful because it can produce floating windows, etc., which was not possible with coc.nvim.

glepnir/lspsaga.nvim: neovim lsp plugin

What is required for TypeScript type checking.

If typescript typescript-language-server is not installed globally, then

client 1 quit with exit code 126 and signal 0
If not, you will get error messages like

error message will appear in the status bar.

Also, if you are using .node-version or other node version control, you will need to install the following in multiple npm environments.

If lsp does not work properly, make a habit of typing

npm i -g typescript typescript-language-server

theia-ide/typescript-language-server: TypeScript & JavaScript Language Server

Learn Lua

If you want to learn Lua, read the following README, as you will be able to write neovim configuration files in Lua.

nvim-lua-guide-ja/README.ja.md at master · willelz/nvim-lua-guide-ja

🍟 Author

🥫 License

MIT © hisasann (Yoshiyuki Hisamatsu)