-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
55 lines (39 loc) · 1.31 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
vim.api.nvim_command('set termguicolors')
local utils = require("utils")
local has_user_config = utils.prequire("user")
local user_config = {}
if has_user_config then
user_config = require("user")
end
user_config = utils.sanitize_config(user_config)
require "setup"
require("config").setup(user_config)
require "mappings"
-- Disable Copilot by default
vim.g.copilot_enabled = 0
-- Commands/Whichkey related
vim.g.mapleader = " "
vim.opt.timeoutlen = 300
-- Display absolute line numbers
vim.opt.number = true
-- Tabs
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.api.nvim_command('set expandtab')
-- Mouse support
vim.api.nvim_command('set mouse=nvi')
-- Select virutal text as the default diagnostic visualization
require("utils").diagnostics_as_virtual_text()
vim.fn.sign_define("DiagnosticSignError",
{ text = " ", texthl = "DiagnosticSignError" })
vim.fn.sign_define("DiagnosticSignWarn",
{ text = " ", texthl = "DiagnosticSignWarn" })
vim.fn.sign_define("DiagnosticSignInfo",
{ text = " ", texthl = "DiagnosticSignInfo" })
vim.fn.sign_define("DiagnosticSignHint",
{ text = "", texthl = "DiagnosticSignHint" })
require("themer").setup({
colorscheme = user_config.colorscheme
})
require("themer").setup({ enable_installer = true })