-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
executable file
·114 lines (90 loc) · 2.5 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
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = " "
require("lazy").setup("plugins")
require("filetype")
-- require("commands")
require("statusline")
local o = vim.opt
o.list = true
o.cursorline = true
o.hidden = true
o.splitright = true
o.splitbelow = true
vim.cmd([[
set number relativenumber
let g:floaterm_keymap_new = '<leader>ft'
let g:floaterm_keymap_prev = '<leader><leader>h'
let g:floaterm_keymap_next = '<leader><leader>l'
let g:floaterm_keymap_toggle = '<leader>fc'
let g:floaterm_wintype = 'split'
let g:floaterm_height = 0.4
let g:floaterm_width = 1
let g:gruvbox_material_palette = 'original'
let g:gruvbox_material_background = 'soft'
let g:gruvbox_material_enable_bold = 1
let g:gruvbox_material_transparent_background = 1
" Leetcode
let g:leetcode_solution_filetype = 'javascript'
let g:leetcode_browser = 'firefox'
let g:leetcode_hide_paid_only = 1
" Colorscheme stuff
set termguicolors
colorscheme gruvbox-material
filetype plugin indent on
" Autocomplete stuff
" set completeopt=menuone,noinsert,noselect
set shortmess+=c
set nowrap
" Highlighting
" Indentation
set expandtab
autocmd BufRead,BufEnter *.astro set filetype=astro
set tabstop=2
set softtabstop=2
set shiftwidth=2
" Open help splitted vertically
augroup vimrc_help
autocmd!
autocmd BufEnter *.txt if &buftype == 'help' | wincmd L | endif
augroup END
" set background=dark
" set bg=dark
set scrolloff=5
syntax enable
"h i Search guibg=black guifg=white
hi link xmlTagN xmlTagName
hi StatusFileName guifg=#83a598 gui=bold
hi link StatusGitBranch Constant
hi ColorColumn guifg=#fd7d17 gui=bold
hi TSComment guifg=#bdae93
hi scssTSProperty guifg=blue
" hi LineNr guifg=#70ddfc
" hi VertSplit guibg=blue ctermbg=blue
" Diagnostic Virtual text
:hi DiagnosticVirtualTextError guifg=#ea6962
:hi DiagnosticVirtualTextInfo guifg=#7daea3
:hi DiagnosticVirtualTextHint guifg=#89b482
:hi DiagnosticVirtualTextWarn guifg=#d8a657
" set winbar=%t%m
set laststatus=3
" autocmd VeryLazy TSEnable highlight
" autocmd BufRead,BufEnter *.astro TSEnable highlight
" autocmd BufRead,BufEnter *.nu set filetype=nu
]])
-- nnoremap <leader>l :nohlsearch<C-r>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
-- set termguicolors
-- set shiftwidth=2
-- set tabstop=2
-- set softtabstop=2
-- set hidden