Created
November 7, 2021 07:49
-
-
Save AlixShahid/2266e0b24ca0717884be912900ede2fd to your computer and use it in GitHub Desktop.
Medium-Setting Up Neovim for Web Development - 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --If you want to automatically ensure that packer.nvim is installed on any machine you clone your configuration to, | |
| --add the following snippet (which is due to @Iron-E) somewhere in your config before your first usage of packer: | |
| local execute = vim.api.nvim_command | |
| local fn = vim.fn | |
| local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' | |
| if fn.empty(fn.glob(install_path)) > 0 then | |
| fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path}) | |
| execute 'packadd packer.nvim' | |
| end | |
| return require('packer').startup{function() | |
| -- Packer can manage itself | |
| use 'wbthomason/packer.nvim' | |
| use { -- A collection of common configurations for Neovim's built-in language server client | |
| 'neovim/nvim-lspconfig', | |
| config = [[ require('plugins/lspconfig') ]] | |
| } | |
| use { | |
| 'williamboman/nvim-lsp-installer', | |
| config = [[ require('plugins/lsp_installer_nvim') ]] | |
| } | |
| use { -- vscode-like pictograms for neovim lsp completion items Topics | |
| 'onsails/lspkind-nvim', | |
| config = [[ require('plugins/lspkind') ]] | |
| } | |
| use { -- Utility functions for getting diagnostic status and progress messages from LSP servers, for use in the Neovim statusline | |
| 'nvim-lua/lsp-status.nvim', | |
| config = [[ require('plugins/lspstatus') ]] | |
| } | |
| end, config = { | |
| -- Move to lua dir so impatient.nvim can cache it | |
| compile_path = vim.fn.stdpath('config')..'/plugin/packer_compiled.lua' | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setting Up Neovim for Web Development
https://xlwe.medium.com/setting-up-neovim-for-web-development-70c57c3d7d61