mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nvim): reformat using the all mighty lsp ✨
This commit is contained in:
parent
88a5ea7267
commit
bc9b520671
12 changed files with 147 additions and 152 deletions
|
|
@ -1,46 +1,46 @@
|
|||
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
|
||||
local install_path = vim.fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
|
||||
local is_bootstrap = false
|
||||
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
|
||||
is_bootstrap = true
|
||||
vim.fn.system { 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path }
|
||||
vim.cmd [[packadd packer.nvim]]
|
||||
is_bootstrap = true
|
||||
vim.fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }
|
||||
vim.cmd "packadd packer.nvim"
|
||||
end
|
||||
|
||||
require('packer').startup(function(use)
|
||||
use "wbthomason/packer.nvim"
|
||||
require("packer").startup(function(use)
|
||||
use "wbthomason/packer.nvim"
|
||||
|
||||
use "Th3Whit3Wolf/one-nvim"
|
||||
use "ThePrimeagen/vim-be-good"
|
||||
|
||||
use "numToStr/Comment.nvim"
|
||||
use "lewis6991/gitsigns.nvim"
|
||||
use "nvim-lualine/lualine.nvim"
|
||||
|
||||
use "Th3Whit3Wolf/one-nvim"
|
||||
use { -- LSP Configuration & Plugins
|
||||
'neovim/nvim-lspconfig',
|
||||
requires = {
|
||||
'williamboman/mason.nvim',
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
'j-hui/fidget.nvim',
|
||||
'folke/neodev.nvim',
|
||||
},
|
||||
}
|
||||
use 'numToStr/Comment.nvim'
|
||||
use 'lewis6991/gitsigns.nvim'
|
||||
use {
|
||||
'hrsh7th/nvim-cmp',
|
||||
requires = { 'hrsh7th/cmp-nvim-lsp', 'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip' },
|
||||
}
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
run = function()
|
||||
local ts_update = require "nvim-treesitter.install".update({ with_sync = true })
|
||||
ts_update()
|
||||
end,
|
||||
}
|
||||
use "lukas-reineke/indent-blankline.nvim"
|
||||
use {
|
||||
"neovim/nvim-lspconfig",
|
||||
requires = {
|
||||
"williamboman/mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"j-hui/fidget.nvim",
|
||||
"folke/neodev.nvim",
|
||||
},
|
||||
}
|
||||
use {
|
||||
"hrsh7th/nvim-cmp",
|
||||
requires = { "hrsh7th/cmp-nvim-lsp", "L3MON4D3/LuaSnip", "saadparwaiz1/cmp_luasnip" },
|
||||
}
|
||||
|
||||
use("nvim-lualine/lualine.nvim")
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = function()
|
||||
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
|
||||
ts_update()
|
||||
end,
|
||||
}
|
||||
use 'lukas-reineke/indent-blankline.nvim'
|
||||
use 'ThePrimeagen/vim-be-good'
|
||||
use 'tpope/vim-sleuth'
|
||||
|
||||
if is_bootstrap then
|
||||
require('packer').sync()
|
||||
end
|
||||
if is_bootstrap then
|
||||
require "packer".sync()
|
||||
end
|
||||
end)
|
||||
|
||||
-- When we are bootstrapping a configuration, it doesn't
|
||||
|
|
@ -48,11 +48,10 @@ end)
|
|||
--
|
||||
-- You'll need to restart nvim, and then it will work.
|
||||
if is_bootstrap then
|
||||
print '=================================='
|
||||
print ' Plugins are being installed'
|
||||
print ' Wait until Packer completes,'
|
||||
print ' then restart nvim'
|
||||
print '=================================='
|
||||
return
|
||||
print "=================================="
|
||||
print " Plugins are being installed"
|
||||
print " Wait until Packer completes,"
|
||||
print " then restart nvim"
|
||||
print "=================================="
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue