Giter Club home page Giter Club logo

nvim's Introduction

What is this?

This is a configuration for Neovim. It's written in Lua, and uses modern plugins like Treesitter, Telescope, and Lualine.

Plugins (08/05/2022)

Prerequisites

:checkhealth
  • Neovim 0.5 or above
    • mac: brew install nvim --head
    • linux: sudo apt-get install neovim
  • Node.js
    • mac: brew install node
    • linux: sudo apt install node
  • pynvim
    • pip3 install pynvim
  • Hack Nerd Font
    • mac: brew tap homebrew/cask-fonts && brew install --cask font-hack-nerd-font

    • linux: download Hack Nerd Font in your ~/.fonts directory and run fc-cache -fv

Setup this nvim config

1. Download configuration

Clone repository

git clone https://github.com/ra-res/nvim ~/.config/nvim

2. Install plugins

Install Packer

This nvim config uses Packer as its Neovim plugin manager. Packer will install by itself when loading this config for the first time.

To install the plugins used in this config, open nvim and run :PackerInstall command.

nvim ~/.config/nvim/init.lua
:PackerInstall

Speed up your keyboard

xset r rate 200

nvim's People

Contributors

ra-res avatar

Stargazers

Roman avatar  avatar

Watchers

 avatar

nvim's Issues

bug: init.lua

Bug:
Plugin configs get loaded before plugin installation

Fix:
Move ra-res.plugins to top of file in init.lua

upgrade to 0.8

Changes:

  • replace resolved_capabilities with server_capabilities in handlers.lua
  • replace vim.lsp.buf.formatting with vim.lsp.buf.format { async = true }

Configure tsserver to use non-relative paths (native lsp)

Install https://github.com/jose-elias-alvarez/nvim-lsp-ts-utils

Add this file:
ra-res/lsp/settings/tsserver.lua

return {
  init_options = vim.tbl_deep_extend(
    "force",
    require("nvim-lsp-ts-utils").init_options,
    {
      preferences = {
        importModuleSpecifierEnding = "auto",
        importModuleSpecifierPreference = "non-relative",
      },
      documentFormatting = false,
    }
  ),
}

References:
https://github.com/typescript-language-server/typescript-language-server
https://github.com/elianiva/dotfiles/blob/master/nvim/.config/nvim/lua/modules/lsp/init.lua

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.