-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
64 lines (51 loc) · 1.7 KB
/
init.lua
File metadata and controls
64 lines (51 loc) · 1.7 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
57
58
59
60
61
62
63
64
-- Disable providers
vim.g.loaded_node_provider = 0
vim.g.loaded_perl_provider = 0
vim.g.loaded_python3_provider = 0
vim.g.loaded_ruby_provider = 0
vim.g.filetype_pl = "prolog"
-- Line numbers
vim.wo.number = true
vim.wo.relativenumber = true
vim.opt.mouse = ""
-- When in doubt about some option, use `:help <option>`
--
-- Tabs - spaces, the whole jimmiemagick
vim.opt.tabstop = 4 -- Render '\t' as 4 spaces
vim.opt.softtabstop = 0 -- Set the number of spaces when pressing tab
vim.opt.shiftwidth = 4 -- Indentation level 4 spaces
vim.opt.expandtab = false -- Replace '\t' with spaces
vim.smartindent = true -- Auto-indentation for programming
vim.opt.wrap = false
vim.opt.linebreak = true -- When I enable wrap it needs to be on word edges
vim.opt.hlsearch = false -- Highlight all matching patterns from search
vim.opt.incsearch = true -- Highlight while typing search-pattern
vim.opt.swapfile = true -- False if file is confidential
vim.opt.backup = false
vim.opt.undofile = true
vim.opt.scrolloff = 2 -- Keep 2 lines above/below cursor visible
vim.opt.signcolumn = "number"
vim.opt.splitright = true
vim.opt.splitbelow = true
vim.opt.colorcolumn = "80"
-- Add a border to the hover-window
vim.o.winborder = 'rounded'
-- vim.diagnostic.config({ virtual_lines = { current_line = true } })
-- Fix for rasi files (Rofi) and C3 files
vim.filetype.add {
extension = {
rasi = 'rasi',
c3 = "c3",
c3i = "c3",
c3t = "c3",
typst = "typst",
plt = "prolog"
},
}
-- Load the plugins first so I can use them (which-key) in the next steps
require("config.lazy")
-- Some of my very beautiful extra configs
require("autocommands")
require("functions")
require("folds")
require("keybinds") -- Relies on functions!