-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.lua
177 lines (177 loc) · 5.41 KB
/
user.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
return {
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
require("todo-comments").setup({})
end,
},
{
"Pocco81/auto-save.nvim",
config = function()
require("auto-save").setup({ debounce_delay = 1000 })
end,
lazy = false,
},
{
"ethanholz/nvim-lastplace",
event = "BufRead",
config = function()
require("nvim-lastplace").setup({
lastplace_ignore_buftype = { "quickfix", "nofile", "help" },
lastplace_ignore_filetype = {
"gitcommit",
"gitrebase",
"svn",
"hgcommit",
},
lastplace_open_folds = true,
})
end,
},
{
"iamcco/markdown-preview.nvim",
ft = "markdown",
build = function()
vim.fn["mkdp#util#install"]()
end,
config = function()
vim.g.mkdp_auto_start = 0
vim.g.mkdp_auto_close = 0
vim.g.mkdp_echo_preview_url = 1
vim.g.mkdp_browser = "/home/ervin/bin/md-preview.py"
vim.g.mkdp_markdown_css = "/home/ervin/.config/md-preview/markdown.css"
vim.g.mkdp_port = "8555"
vim.g.mkdp_open_to_the_world = 0
vim.g.mkdp_theme = "dark"
end,
lazy = true,
},
{
"cappyzawa/trim.nvim",
config = function()
require("trim").setup({
-- if you want to ignore markdown file.
-- you can specify filetypes.
ft_blocklist = { "markdown" },
-- if you want to ignore space of top
patterns = {
[[%s/\s\+$//e]],
[[%s/\($\n\s*\)\+\%$//]],
[[%s/\(\n\n\)\n\+/\1/]],
},
})
end,
lazy = false,
},
{
"folke/zen-mode.nvim",
config = function()
require("zen-mode").setup({
window = {
backdrop = 0.95, -- shade the backdrop of the Zen window. Set to 1 to keep the same as Normal
-- height and width can be:
-- * an absolute number of cells when > 1
-- * a percentage of the width / height of the editor when <= 1
-- * a function that returns the width or the height
width = 120, -- width of the Zen window
height = 1, -- height of the Zen window
-- by default, no options are changed for the Zen window
-- uncomment any of the options below, or add other vim.wo options you want to apply
options = {
-- signcolumn = "no", -- disable signcolumn
-- number = false, -- disable number column
-- relativenumber = false, -- disable relative numbers
-- cursorline = false, -- disable cursorline
-- cursorcolumn = false, -- disable cursor column
-- foldcolumn = "0", -- disable fold column
-- list = false, -- disable whitespace characters
},
},
plugins = {
-- disable some global vim options (vim.o...)
-- comment the lines to not apply the options
options = {
enabled = true,
ruler = false, -- disables the ruler text in the cmd line area
showcmd = false, -- disables the command in the last line of the screen
-- you may turn on/off statusline in zen mode by setting 'laststatus'
-- statusline will be shown only if 'laststatus' == 3
laststatus = 0, -- turn off the statusline in zen mode
},
twilight = { enabled = true }, -- enable to start Twilight when zen mode opens
gitsigns = { enabled = false }, -- disables git signs
tmux = { enabled = true }, -- disables the tmux statusline
},
-- callback where you can add custom code when the Zen window opens
on_open = function(win) end,
-- callback where you can add custom code when the Zen window closes
on_close = function() end,
})
end,
lazy = false,
},
-- {
-- "lervag/vimtex",
-- ft = "latex",
-- dependencies = { "L3MON4D3/LuaSnip", "sirver/ultisnips", "KeitaNakamura/tex-conceal.vim" },
-- config = function()
-- vim.g.tex_flavor = "xelatex"
-- vim.g.vimtex_view_method = "zathura"
-- vim.g.vimtex_compiler_silent = true
-- vim.g.vimtex_quickfix_mode = 0
-- vim.g.tex_conceal = "abdmg"
-- vim.cmd([[
-- let g:vimtex_syntax_conceal = {
-- \ 'accents': 1,
-- \ 'ligatures': 1,
-- \ 'cites': 1,
-- \ 'fancy': 1,
-- \ 'spacing': 1,
-- \ 'greek': 1,
-- \ 'math_bounds': 1,
-- \ 'math_delimiters': 1,
-- \ 'math_fracs': 1,
-- \ 'math_super_sub': 1,
-- \ 'math_symbols': 1,
-- \ 'sections': 1,
-- \ 'styles': 1,
-- \}
-- ]])
-- vim.cmd("set conceallevel=2")
-- vim.cmd('let maplocalleader = ","')
-- end,
-- lazy = true,
-- },
-- {
-- "KeitaNakamura/tex-conceal.vim",
-- config = function()
-- vim.cmd([[
-- hi Conceal ctermbg=none
-- ]])
-- end,
-- lazy = false,
-- },
{
"https://gitlab.com/somini/vim-octave.vim",
ft = "octave",
},
{
"stevearc/oil.nvim",
config = function()
require("oil").setup({
columns = {
"icon",
"permissions",
"size",
"mtime",
},
view_options = { show_hidden = true },
})
end,
},
{ "tpope/vim-surround" },
{ "norcalli/nvim-colorizer.lua" },
{ "folke/twilight.nvim" },
{ "shaunsingh/nord.nvim" },
}