Skip to content

Instantly share code, notes, and snippets.

@cj

cj/chadrc.lua Secret

Created June 14, 2022 15:05
Show Gist options
  • Save cj/3ff7a78357f5994bc7656f70b7aed218 to your computer and use it in GitHub Desktop.
Save cj/3ff7a78357f5994bc7656f70b7aed218 to your computer and use it in GitHub Desktop.
local M = {}
local override = require "custom.plugins.override"
local userPlugins = require "custom.plugins"
M.plugins = {
options = {
lspconfig = {
setup_lspconf = "custom.plugins.lspconfig",
},
statusline = {
-- separator_style = "round",
},
},
override = {
["kyazdani42/nvim-tree.lua"] = override.nvimtree,
["nvim-treesitter/nvim-treesitter"] = override.treesitter,
["nvim-telescope/telescope.nvim"] = override.telescope,
["hrsh7th/nvim-cmp"] = override.cmp,
["williamboman/nvim-lsp-installer"] = override.lspinstaller,
["lukas-reineke/indent-blankline.nvim"] = override.indent,
},
user = userPlugins,
}
M.options = {
user = function()
vim.o.completeopt = "menu,menuone,noselect"
vim.g.mapleader = ";"
vim.api.nvim_create_autocmd("BufWritePre", {
callback = function()
-- on 0.8, you should use vim.lsp.buf.format({ bufnr = bufnr }) instead
vim.lsp.buf.formatting_seq_sync(nil, 10000)
end,
})
end,
}
M.mappings = require "custom.mappings"
return M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment