-
-
Save cj/3ff7a78357f5994bc7656f70b7aed218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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