-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
executable file
·39 lines (31 loc) · 778 Bytes
/
init.lua
File metadata and controls
executable file
·39 lines (31 loc) · 778 Bytes
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
local vim = vim
require('sets').setup()
require('autocmds').setup()
require('plugins').setup()
vim.opt.termguicolors = true
vim.opt.background = "dark"
vim.g.material_style = "darker"
vim.g.material_disable_background = true
vim.cmd [[colorscheme material]]
vim.cmd [[
hi Normal guibg=NONE ctermbg=NONE
let g:NetrwIsOpen=0
function! ToggleNetrw()
if g:NetrwIsOpen
let i = bufnr("$")
while (i >= 1)
if (getbufvar(i, "&filetype") == "netrw")
silent exe "bwipeout " . i
endif
let i-=1
endwhile
let g:NetrwIsOpen=0
else
let g:NetrwIsOpen=1
silent Ex
endif
endfunction
noremap <silent> <space>e :call ToggleNetrw()<CR>
]]
-- LSP
-- require('lsp.lua-ls').setup()