-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
56 lines (50 loc) · 1.74 KB
/
init.lua
File metadata and controls
56 lines (50 loc) · 1.74 KB
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
require("config.lazy")
-- I like habamax, but with a black background
vim.cmd("colorscheme habamax")
vim.api.nvim_set_hl(0, "Normal", { bg = "Black" })
-- Make the relative line numbers darker so that the
-- current line number stands out
vim.api.nvim_set_hl(0, "LineNr", { fg = "Cyan" })
vim.api.nvim_set_hl(0, "LineNrAbove", { fg = "#666666" })
vim.api.nvim_set_hl(0, "LineNrBelow", { fg = "#666666" })
vim.keymap.set("n", "<space>ch", function()
vim.cmd("colorscheme habamax")
vim.api.nvim_set_hl(0, "Normal", { bg = "Black" })
vim.api.nvim_set_hl(0, "LineNr", { fg = "Cyan" })
vim.api.nvim_set_hl(0, "LineNrAbove", { fg = "#666666" })
vim.api.nvim_set_hl(0, "LineNrBelow", { fg = "#666666" })
end)
vim.keymap.set("n", "<space>cm", function()
vim.cmd("colorscheme murphy")
vim.api.nvim_set_hl(0, "LineNr", { fg = "Cyan" })
vim.api.nvim_set_hl(0, "LineNrAbove", { fg = "#666666" })
vim.api.nvim_set_hl(0, "LineNrBelow", { fg = "#666666" })
end)
-- vim.api.nvim_buf_set_keymap(bufnr, "n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>", opts)
-- Errors show up directly in the editor
vim.diagnostic.config({
virtual_text = true,
})
vim.o.wildmenu = true
vim.o.wildmode = full
vim.o.completeopt = "menu,preview"
vim.o.tabstop = 4
vim.o.expandtab = true
vim.o.shiftwidth = 4
vim.o.incsearch = true
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.smartindent = true
vim.o.ruler = true
vim.o.relativenumber = true
vim.o.number = true
vim.o.clipboard = ""
vim.o.mouse = ""
vim.o.colorcolumn = "100"
vim.o.guicursor = ""
vim.o.splitright = true
vim.o.splitbelow = true
-- Make sure the display doesn't shift left & right when
-- errors appear and are fixed. Why this isn't the default
-- is puzzling.
vim.o.signcolumn = "number"