generated from AstroNvim/user_example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
116 lines (94 loc) · 3.14 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
return {
colorscheme = "everforest",
options = {
opt = {
relativenumber = false, -- sets vim.opt.relativenumber
number = true, -- sets vim.opt.number
spell = false, -- sets vim.opt.spell
signcolumn = "auto", -- sets vim.opt.signcolumn to auto
wrap = false, -- sets vim.opt.wrap
ignorecase = true, -- ignore case in search
-- showtabline = 0, -- disable Tabline
termguicolors = true,
cursorline = false,
scrolloff = 1,
undofile = false,
mousescroll = "ver:1,hor:1",
linespace = 2,
-- smartindent = true,
autoindent = true,
softtabstop = 4,
tabstop = 4,
shiftwidth = 4,
expandtab = false,
-- guifont = "Zed Mono Extended:h14",
-- guifont = "RobotoMono Nerd Font:h24",
guifont = "IosevkaTerm Nerd Font Mono:h15",
colorcolumn = '120',
},
g = {
-- move_key_modifier = 'M',
neovide_cursor_animation_length = 0
},
},
mappings = {
-- first key is the mode
n = {
-- do not jump after highlighting
["*"] = { '*N' },
["#"] = { '#N' },
},
v = {
-- Paste over currently selected text without yanking it
["p"] = { '"_dP' },
},
},
plugins = {
{
{
-- https://github.com/sainnhe/everforest/blob/master/doc/everforest.txt
"sainnhe/everforest",
init = function()
-- vim.g.everforest_enable_italic = 1
-- vim.g.everforest_background = "hard"
vim.g.everforest_cursor = "green"
vim.g.everforest_current_word = "none"
end,
},
{ "matze/vim-move", lazy = false },
treesitter = { -- overrides `require("treesitter").setup(...)`
ensure_installed = {
"lua", "python", "go", "rust", "bash",
"vue", "javascript", "json", "html", "css", "scss",
},
auto_install = true,
sync_install = true,
highlight = {
enable = true,
},
},
["neo-tree"] = {
filesystem = {
follow_current_file = false,
},
},
{
"rebelot/heirline.nvim",
opts = function(_, opts)
opts.winbar = nil
return opts
end
},
},
},
lsp = {
formatting = {
format_on_save = false, -- enable or disable automatic formatting on save
},
},
polish = function()
vim.cmd("hi MatchParen guifg=red guibg=none gui=bold")
vim.cmd("hi Cursor guifg=red guibg=none gui=bold")
vim.on_key(nil, vim.api.nvim_get_namespaces()["auto_hlsearch"])
end,
}