adding in plenary with null ls for formatting and linting
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
local null_ls = require("null-ls")
|
||||||
|
|
||||||
|
null_ls.setup({
|
||||||
|
sources = {
|
||||||
|
null_ls.builtins.diagnostics.eslint,
|
||||||
|
},
|
||||||
|
})
|
||||||
+45
-42
@@ -4,54 +4,57 @@
|
|||||||
vim.cmd.packadd('packer.nvim')
|
vim.cmd.packadd('packer.nvim')
|
||||||
|
|
||||||
return require('packer').startup(function(use)
|
return require('packer').startup(function(use)
|
||||||
-- Packer can manage itself
|
-- Packer can manage itself
|
||||||
use 'wbthomason/packer.nvim'
|
use 'wbthomason/packer.nvim'
|
||||||
|
|
||||||
use {
|
use('nvim-lua/plenary.nvim')
|
||||||
'nvim-telescope/telescope.nvim', tag = '0.1.0',
|
|
||||||
-- or , branch = '0.1.x',
|
|
||||||
requires = { {'nvim-lua/plenary.nvim'} }
|
|
||||||
}
|
|
||||||
|
|
||||||
use({
|
use {
|
||||||
'rose-pine/neovim',
|
'nvim-telescope/telescope.nvim', tag = '0.1.0',
|
||||||
as = 'rose-pine',
|
-- or , branch = '0.1.x',
|
||||||
config = function()
|
requires = { { 'nvim-lua/plenary.nvim' } }
|
||||||
vim.cmd('colorscheme rose-pine')
|
}
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
use({'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'})
|
use({
|
||||||
use('nvim-treesitter/playground')
|
'rose-pine/neovim',
|
||||||
use('theprimeagen/harpoon')
|
as = 'rose-pine',
|
||||||
use('mbbill/undotree')
|
config = function()
|
||||||
|
vim.cmd('colorscheme rose-pine')
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
use {
|
use({ 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' })
|
||||||
'VonHeikemen/lsp-zero.nvim',
|
use('nvim-treesitter/playground')
|
||||||
branch = 'v1.x',
|
use('theprimeagen/harpoon')
|
||||||
requires = {
|
use('mbbill/undotree')
|
||||||
-- LSP Support
|
|
||||||
{'neovim/nvim-lspconfig'},
|
|
||||||
{'williamboman/mason.nvim'},
|
|
||||||
{'williamboman/mason-lspconfig.nvim'},
|
|
||||||
|
|
||||||
-- Autocompletion
|
use {
|
||||||
{'hrsh7th/nvim-cmp'},
|
'VonHeikemen/lsp-zero.nvim',
|
||||||
{'hrsh7th/cmp-buffer'},
|
branch = 'v1.x',
|
||||||
{'hrsh7th/cmp-path'},
|
requires = {
|
||||||
{'saadparwaiz1/cmp_luasnip'},
|
-- LSP Support
|
||||||
{'hrsh7th/cmp-nvim-lsp'},
|
{ 'neovim/nvim-lspconfig' },
|
||||||
{'hrsh7th/cmp-nvim-lua'},
|
{ 'williamboman/mason.nvim' },
|
||||||
|
{ 'williamboman/mason-lspconfig.nvim' },
|
||||||
|
|
||||||
-- Snippets
|
-- Autocompletion
|
||||||
{'L3MON4D3/LuaSnip'},
|
{ 'hrsh7th/nvim-cmp' },
|
||||||
{'rafamadriz/friendly-snippets'},
|
{ 'hrsh7th/cmp-buffer' },
|
||||||
}
|
{ 'hrsh7th/cmp-path' },
|
||||||
}
|
{ 'saadparwaiz1/cmp_luasnip' },
|
||||||
|
{ 'hrsh7th/cmp-nvim-lsp' },
|
||||||
|
{ 'hrsh7th/cmp-nvim-lua' },
|
||||||
|
|
||||||
use("folke/zen-mode.nvim")
|
-- Snippets
|
||||||
use("github/copilot.vim")
|
{ 'L3MON4D3/LuaSnip' },
|
||||||
use("eandrju/cellular-automaton.nvim")
|
{ 'rafamadriz/friendly-snippets' },
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use("folke/zen-mode.nvim")
|
||||||
|
use("github/copilot.vim")
|
||||||
|
use("eandrju/cellular-automaton.nvim")
|
||||||
|
|
||||||
|
use("jose-elias-alvarez/null-ls.nvim")
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@@ -139,6 +139,11 @@ _G.packer_plugins = {
|
|||||||
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/mason.nvim",
|
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/mason.nvim",
|
||||||
url = "https://github.com/williamboman/mason.nvim"
|
url = "https://github.com/williamboman/mason.nvim"
|
||||||
},
|
},
|
||||||
|
["null-ls.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
|
||||||
|
url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
|
||||||
|
},
|
||||||
["nvim-cmp"] = {
|
["nvim-cmp"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||||
@@ -185,11 +190,6 @@ _G.packer_plugins = {
|
|||||||
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/undotree",
|
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/undotree",
|
||||||
url = "https://github.com/mbbill/undotree"
|
url = "https://github.com/mbbill/undotree"
|
||||||
},
|
},
|
||||||
["vim-fugitive"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/vim-fugitive",
|
|
||||||
url = "https://github.com/tpope/vim-fugitive"
|
|
||||||
},
|
|
||||||
["zen-mode.nvim"] = {
|
["zen-mode.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/zen-mode.nvim",
|
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/zen-mode.nvim",
|
||||||
|
|||||||
Reference in New Issue
Block a user