break overrides in separate files

pull/2680/head
Panos Sakkos 6 months ago
parent 5b1250c009
commit 0289c9963d

@ -0,0 +1,14 @@
local M = {}
M.opts = {
sources = {
{ name = "copilot" },
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "buffer" },
{ name = "nvim_lua" },
{ name = "path" },
},
}
return M

@ -0,0 +1,11 @@
local M = {}
M.opts = {
filetypes = {
"css",
"html",
"scss",
},
}
return M

@ -0,0 +1,15 @@
local M = {}
M.opts = {
filetypes = {
["*"] = true,
},
suggestion = {
enabled = false,
},
panel = {
enabled = false,
},
}
return M

@ -0,0 +1,7 @@
local M = {}
M.opts = {
current_line_blame = true,
}
return M

@ -0,0 +1,7 @@
local M = {}
M.opts = {
height_ratio = 1,
}
return M

@ -0,0 +1,28 @@
local M = {}
-- LSPs, Linters, Debuggers and Formatters
M.opts = {
ensure_installed = {
"bash-language-server",
"beautysh",
"black",
"clangd",
"clang-format",
"debugpy",
"delve",
"gopls",
"stylua",
"terraform-ls",
"tflint",
"typescript-language-server",
"lua-language-server",
"markdownlint",
"marksman",
"prettier",
"pyright",
"yamlfmt",
"yaml-language-server",
},
}
return M

@ -0,0 +1,23 @@
local M = {}
M.opts = {
filters = {
dotfiles = true,
},
git = {
enable = true,
},
renderer = {
highlight_git = true,
indent_markers = {
enable = true,
},
icons = {
show = {
git = true,
},
},
},
}
return M

@ -0,0 +1,13 @@
local M = {}
M.opts = {
terminals = {
type_opts = {
horizontal = {
split_ratio = 0.5,
},
},
},
}
return M

@ -1,131 +0,0 @@
local M = {}
M.colorizer = {
filetypes = {
"css",
"html",
"scss",
},
}
M.copilot = {
filetypes = {
["*"] = true,
},
suggestion = {
enabled = false,
},
panel = {
enabled = false,
},
}
M.cmp = {
sources = {
{ name = "copilot" },
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "buffer" },
{ name = "nvim_lua" },
{ name = "path" },
},
}
M.nvterm = {
terminals = {
type_opts = {
horizontal = {
split_ratio = 0.5,
},
},
},
}
-- NvimTree git support
M.nvimtree = {
filters = {
dotfiles = true,
},
git = {
enable = true,
},
renderer = {
highlight_git = true,
indent_markers = {
enable = true,
},
icons = {
show = {
git = true,
},
},
},
}
M.gitsigns = {
current_line_blame = true,
}
M.glow = {
height_ratio = 1,
}
-- Parsers
M.treesitter = {
ensure_installed = {
"bash",
"cpp",
"css",
"csv",
"diff",
"dockerfile",
"go",
"gosum",
"gomod",
"git_config",
"gitignore",
"graphql",
"hcl",
"html",
"javascript",
"json",
"lua",
"make",
"markdown",
"python",
"ruby",
"scss",
"sql",
"terraform",
"toml",
"tsx",
"yaml",
},
}
-- LSPs, Linters, Debuggers and Formatters
M.mason = {
ensure_installed = {
"bash-language-server",
"beautysh",
"black",
"clangd",
"clang-format",
"debugpy",
"delve",
"gopls",
"stylua",
"terraform-ls",
"tflint",
"typescript-language-server",
"lua-language-server",
"markdownlint",
"marksman",
"prettier",
"pyright",
"yamlfmt",
"yaml-language-server",
},
}
return M

@ -0,0 +1,36 @@
local M = {}
-- Parsers
M.opts = {
ensure_installed = {
"bash",
"cpp",
"css",
"csv",
"diff",
"dockerfile",
"go",
"gosum",
"gomod",
"git_config",
"gitignore",
"graphql",
"hcl",
"html",
"javascript",
"json",
"lua",
"make",
"markdown",
"python",
"ruby",
"scss",
"sql",
"terraform",
"toml",
"tsx",
"yaml",
},
}
return M

@ -1,17 +1,25 @@
local overrides = require "custom.configs.overrides"
local colorizer = require "custom.configs.colorizer"
local copilot = require "custom.configs.copilot"
local cmp = require "custom.configs.cmp"
local gitsigns = require "custom.configs.gitsigns"
local glow = require "custom.configs.glow"
local mason = require "custom.configs.mason"
local nvimtree = require "custom.configs.nvimtree"
local nvterm = require "custom.configs.nvterm"
local treesitter = require "custom.configs.treesitter"
---@type NvPluginSpec[]
local plugins = {
{
"NvChad/nvim-colorizer.lua",
opts = overrides.colorizer,
opts = colorizer.opts,
},
{
"zbirenbaum/copilot.lua",
event = "InsertEnter",
build = ":Copilot auth",
config = function()
require("copilot").setup(overrides.copilot)
require("copilot").setup(copilot.opts)
end,
},
{
@ -27,11 +35,11 @@ local plugins = {
},
{
"hrsh7th/nvim-cmp",
opts = overrides.cmp,
opts = cmp.opts,
},
{
"lewis6991/gitsigns.nvim",
opts = overrides.gitsigns,
opts = gitsigns.opts,
},
{
"mfussenegger/nvim-dap",
@ -86,7 +94,7 @@ local plugins = {
"ellisonleao/glow.nvim",
config = true,
cmd = "Glow",
opts = overrides.glow,
opts = glow.opts,
},
{
"lukas-reineke/indent-blankline.nvim",
@ -102,7 +110,7 @@ local plugins = {
},
{
"williamboman/mason.nvim",
opts = overrides.mason,
opts = mason.opts,
},
{
"jose-elias-alvarez/null-ls.nvim",
@ -130,16 +138,16 @@ local plugins = {
},
{
"NvChad/nvterm",
opts = overrides.nvterm,
opts = nvterm.opts,
},
{
"nvim-tree/nvim-tree.lua",
lazy = false,
opts = overrides.nvimtree,
opts = nvimtree.opts,
},
{
"nvim-treesitter/nvim-treesitter",
opts = overrides.treesitter,
opts = treesitter.opts,
},
}

Loading…
Cancel
Save