-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
47 lines (39 loc) · 1.27 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
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Sort order
-- 1. non-dot directories
-- 2. non-dot files
-- 3. dot files
-- 4. dot directories
vim.g.netrw_sort_sequence = "^[^\\.].*[\\/]$,*,^\\..*[^/]$,\\..*\\/$"
require('custom.plugins')
require('custom.vimconfigs')
local scala = require('custom.scala')
local rust = require('custom.rust')
local python = require('custom.python')
local keymaps = require('custom.keymaps')
local helm = require("custom.helm")
local roc = require("custom.roc")
keymaps.basic()
require('custom.commands').basic()
local lsp = require('custom.lsp')
lsp.setup()
-- Scala (Metals) does some extra stuff to normal LSPs
scala.init(lsp.on_attach)
rust.init()
python.init(lsp.on_attach)
helm.init()
roc.init()
local group = vim.api.nvim_create_augroup('OverrideMelange', {})
vim.api.nvim_create_autocmd('ColorScheme', {
pattern = 'melange',
callback = function() vim.api.nvim_set_hl(0, 'Normal', { bg = 'NONE' }) end,
group = group,
})
vim.opt.termguicolors = true
vim.cmd.colorscheme "melange"
-- import init_workspace.lua, if it exists
pcall(require, 'init_workspace')
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et