This commit is contained in:
Nikos Papadakis 2023-07-12 12:59:53 +03:00
parent 94b8437962
commit 33e36e742f
Signed by untrusted user who does not match committer: nikos
GPG key ID: 78871F9905ADFF02
3 changed files with 28 additions and 20 deletions

View file

@ -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 = {

View file

@ -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

View file

@ -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
if not is_installed then
vim.fn.system { vim.fn.system {
"git", "git",
"clone", "clone",
"--depth", "--depth",
"1", "1",
"https://github.com/savq/paq-nvim.git", "https://github.com/savq/paq-nvim.git",
install_path, 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",
-- Treesitter
{ "nvim-treesitter/nvim-treesitter", branch = "master" }, { "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",