mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
refactor: config.plugins -> plugins
This commit is contained in:
parent
8625b49288
commit
09c27b5e4d
17 changed files with 43 additions and 36 deletions
|
@ -1,11 +1,17 @@
|
|||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
|
||||
vim.fn.system({ "git", "-C", lazypath, "checkout", "tags/stable" }) -- last stable release
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup("user.plugins", {
|
||||
require("lazy").setup("plugins", {
|
||||
defaults = { lazy = true, version = "*" },
|
||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||
checker = { enabled = true },
|
|
@ -1,8 +1,8 @@
|
|||
local servers = require("user.plugins.lsp.servers")
|
||||
local servers = require("plugins.lsp.servers")
|
||||
|
||||
local function on_attach(client, bufnr)
|
||||
require("user.plugins.lsp.format").on_attach(client, bufnr)
|
||||
require("user.plugins.lsp.keymaps").on_attach(client, bufnr)
|
||||
require("plugins.lsp.format").on_attach(client, bufnr)
|
||||
require("plugins.lsp.keymaps").on_attach(client, bufnr)
|
||||
end
|
||||
|
||||
return {
|
|
@ -20,12 +20,12 @@ function M.on_attach(client, buffer)
|
|||
},
|
||||
f = {
|
||||
{
|
||||
require("user.plugins.lsp.format").format,
|
||||
require("plugins.lsp.format").format,
|
||||
"Format Document",
|
||||
cond = cap.documentFormatting,
|
||||
},
|
||||
{
|
||||
require("user.plugins.lsp.format").format,
|
||||
require("plugins.lsp.format").format,
|
||||
"Format Range",
|
||||
cond = cap.documentRangeFormatting,
|
||||
mode = "v",
|
|
@ -31,6 +31,7 @@ return {
|
|||
config = {
|
||||
options = {
|
||||
globalstatus = true,
|
||||
disabled_filetypes = { statusline = { "lazy", "alpha" } },
|
||||
},
|
||||
},
|
||||
},
|
Loading…
Add table
Add a link
Reference in a new issue