-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
86 lines (52 loc) · 1.36 KB
/
init.lua
File metadata and controls
86 lines (52 loc) · 1.36 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
-- This is a init file to initiate the neovim setup
--set leaderkey as <space>
vim.g.mapleader = " "
vim.g.maplocalleader = " "
------------------------------------------
-- loading the required setups for nvim
require("config")
require("plugins")
require("keymaps")
-----------------------------------------
--line numbers in the neovim
vim.wo.number = true
--clipboard sync
vim.o.clipboard = "unnamedplus"
-- Save undo history
vim.o.undofile = true
--break indent enable
vim.o.breakindent = true
-- tab settings
vim.o.expandtab = true
vim.o.smarttab = true
vim.o.autoindent = true
vim.o.smartindent = true
--highlight on yank
local highlight_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true })
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
vim.hl.on_yank()
end,
group = highlight_group,
pattern = "*",
})
-- support for the terminal color
vim.o.termguicolors = true
-- dev icons
vim.g.webdevicons_enable = 1
--- netrw settings
vim.g.netrw_winsize = 25
vim.opt.termguicolors = true
-- cursor sizes
vim.o.guicursor = "i:block-Cursor"
-- relative line numbers
vim.o.relativenumber = true
-- Langauge
vim.opt.spelllang = "en_us"
vim.opt.spell = true
-- disable mouse
vim.o.mouse = ""
-- disable swap file
vim.opt.swapfile = false
-- show tabline
vim.o.showtabline=2