-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
66 lines (63 loc) · 2.09 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
-- TODO:
-- 1. apply log to all sub-modules
-- DONE 2. move config files to redwood repo for version control
-- DONE 3. how to apply customized formatting for lsp formatting - config/lsp/null-ls.lua
-- 4. write article for aspects
--
-- vim.api.nvim_echo({ { '# \n', 'ErrorMsg' } }, false, {})
-- :lua print(vim.inspect(lvim.lsp.automatic_configuration.skipped_servers))
-- :lua print(pcall(vim.api.nvim_get_hl_by_name, name, not cterm))
require("config.vimopt").setup()
require('config.keymaps').setup()
require('config.theme.hacker').setup()
require("setup.plugins")
-- due to proxy issue, masan cannot work
--require("mason").setup()
--require("mason-lspconfig").setup
--{
-- ensure_installed = { "pylsp" },
-- automatic_installation = true,
-- log_level = vim.log.levels.DEBUG
--}
require("setup.lsp").setup()
-- require("lspconfig").pylsp.setup {
-- settings = {
-- pylsp = {
-- plugins = {
-- pyflakes = {
-- enabled = true,
-- },
-- yapf = {
-- enabled = true,
-- },
-- pycodestyle = {
-- enabled = true,
-- ignore = { 'W391' },
-- maxLineLength = 100
-- },
-- pylint = {
-- enabled = true
-- },
-- flake8 = {
-- enabled = true,
-- config = os.getenv("HOME") .. "/.config/flake8"
-- },
-- autopep8 = {
-- enabled = true
-- }
-- }
-- }
-- }
-- }
require("setup.outline").setup()
require("setup.gitsigns").setup()
require('setup.whichkey').setup()
require('setup.telescope').setup()
require('setup.lualine').setup()
require('setup.breadcrumbs').setup()
require('setup.nvimtree').setup()
require('setup.nvimcmp').setup()
-- dependent on npm, have to solve proxy/firewall issue before using it.
-- require('setup.treesitter').setup()
-- require('setup.coc').setup()
require('setup.colorizer').setup()