nvim
This commit is contained in:
parent
94b8437962
commit
33e36e742f
3 changed files with 28 additions and 20 deletions
|
@ -127,6 +127,7 @@ local servers = {
|
||||||
globals = { "vim" },
|
globals = { "vim" },
|
||||||
},
|
},
|
||||||
workspace = {
|
workspace = {
|
||||||
|
checkThirdParty = false,
|
||||||
library = vim.api.nvim_get_runtime_file("", true),
|
library = vim.api.nvim_get_runtime_file("", true),
|
||||||
},
|
},
|
||||||
telemetry = {
|
telemetry = {
|
||||||
|
|
|
@ -9,6 +9,7 @@ FD_EXISTS = vim.fn.executable("fd")
|
||||||
RIPGREP_EXISTS = vim.fn.executable("rg")
|
RIPGREP_EXISTS = vim.fn.executable("rg")
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
|
vim.g.maplocalleader = " "
|
||||||
-- vim.g.netrw_banner = 0
|
-- vim.g.netrw_banner = 0
|
||||||
vim.g.loaded_netrw = 1
|
vim.g.loaded_netrw = 1
|
||||||
vim.g.loaded_netrwPlugin = 1
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
|
|
@ -1,22 +1,32 @@
|
||||||
local install_path = vim.fn.stdpath "data" .. "/site/pack/paqs/start/paq-nvim"
|
local function clone_paq()
|
||||||
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
|
local path = vim.fn.stdpath "data" .. "/site/pack/paqs/start/paq-nvim"
|
||||||
BOOTSTRAP = true
|
local is_installed = vim.fn.empty(vim.fn.glob(path)) == 0
|
||||||
vim.fn.system {
|
if not is_installed then
|
||||||
"git",
|
vim.fn.system {
|
||||||
"clone",
|
"git",
|
||||||
"--depth",
|
"clone",
|
||||||
"1",
|
"--depth",
|
||||||
"https://github.com/savq/paq-nvim.git",
|
"1",
|
||||||
install_path,
|
"https://github.com/savq/paq-nvim.git",
|
||||||
}
|
path,
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if BOOTSTRAP then
|
local function bootstrap_paq(packages)
|
||||||
|
local first_install = clone_paq()
|
||||||
|
local paq = require("paq")
|
||||||
|
|
||||||
|
paq(packages)
|
||||||
vim.cmd("packadd paq-nvim")
|
vim.cmd("packadd paq-nvim")
|
||||||
print "New installation. Run :PaqSync and restart nvim"
|
|
||||||
|
if first_install then
|
||||||
|
paq.install()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
require "paq" {
|
bootstrap_paq {
|
||||||
"savq/paq-nvim",
|
"savq/paq-nvim",
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
|
@ -30,15 +40,11 @@ require "paq" {
|
||||||
{ "catppuccin/nvim", as = "catppuccin" },
|
{ "catppuccin/nvim", as = "catppuccin" },
|
||||||
{ "williamboman/mason.nvim", branch = "v1.6.0" },
|
{ "williamboman/mason.nvim", branch = "v1.6.0" },
|
||||||
{ "lukas-reineke/lsp-format.nvim", branch = "v2.5.1" },
|
{ "lukas-reineke/lsp-format.nvim", branch = "v2.5.1" },
|
||||||
"stevearc/oil.nvim",
|
{ "nvim-treesitter/nvim-treesitter", branch = "master" },
|
||||||
|
|
||||||
-- Treesitter
|
|
||||||
{ "nvim-treesitter/nvim-treesitter", branch = "master" },
|
|
||||||
"nvim-treesitter/playground",
|
"nvim-treesitter/playground",
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
"nvim-treesitter/nvim-treesitter-context",
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
|
"stevearc/oil.nvim",
|
||||||
-- LSP & Completion
|
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
|
Loading…
Reference in a new issue