-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
196 lines (160 loc) · 5.37 KB
/
init.vim
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
" Define highlight groups for active and inactive windows
highlight InactiveWindow guibg=#3c3c3c
" Set window highlight options,
autocmd WinEnter * setlocal winhighlight=Normal:None
autocmd WinLeave * setlocal winhighlight=Normal:InactiveWindow
set runtimepath+=~/.config/nvim/lua
lua require('flask_curl')
nnoremap <leader>fc :lua require('flask_curl').detect_flask_route()<CR>
" ~/.config/nvim/init.vim
"let &t_ut=""
" Basic Configuration
" Esto modifica el color de la barra de signos
" highlight SignColumn ctermbg=52 guibg=#8b0000
" Autocmd's
autocmd FileType markdown let g:indentLine_enabled=0
"autocmd FileType sh setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2 signcolumn=no
"autocmd FileType sh colorscheme ron
"autocmd FileType sh let g:airline_theme='badwolf'
" Change font family sh files
"autocmd FileType sh set guifont=FuraCode\ Nerd\ Font:h14
set signcolumn=no
set shell=sh
let mapleader=" "
set clipboard=unnamedplus
set sw=2
set number
set mouse=a
set cursorline
syntax enable
set noshowcmd
set encoding=UTF-8
set showmatch
set relativenumber
set noshowmode
" Plugins file linked
so ~/.config/nvim/plugins.vim
" Lua Settings file linked
so ~/.config/nvim/lua/settings.vim
" Personal Keymaps file linked
so ~/.config/nvim/keymaps.vim
"Set minimalist theme for Airline
"let g:airline_theme='jellybeans'
"let g:airline_theme='badwolf'
"let g:airline_theme='bubblegum'
"let g:airline_theme='luna'
"let g:airline_theme='molokai'
"let g:airline_theme='papercolor'
"let g:airline_theme='solarized'
"let g:airline_theme='tomorrow'
"let g:airline_theme='gruvbox'
"let g:airline_theme='tomorrow'
let g:airline_theme='wombat'
"Set powerline fonts
let g:airline_powerline_fonts = 1
"Blade Conf
" Define some single Blade directives. This variable is used for highlighting only.
let g:signs = {}
let g:blade_custom_directives = ['datetime', 'javascript']
" Define pairs of Blade directives. This variable is used for highlighting and indentation.
let g:blade_custom_directives_pairs = {
\ 'markdown': 'endmarkdown',
\ 'cache': 'endcache',
\ }
"Copilot.vim next suggestion
" Autofiletype
"NerdTree Conf
"let NERDTreeMinimalUI=1
"autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
"autocmd StdinReadPre * let s:std_in=1
"autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
"let g:NERDTreeWinPos = "right"
"let NERDTreeShowHidden=1
"nnoremap <silent> <F2> :NvimTreeToggle<CR>
""GitStatus Conf Dependency of NerdTree
"let g:NERDTreeGitStatusUntrackedFilesMode = 'all' " a heavy feature too. default: normal
"let NERDTreeQuitOnOpen=1
"let g:NERDTreeGitStatusIndicatorMapCustom = {
" \ 'Modified' :'✹',
" \ 'Staged' :'✚',
" \ 'Untracked' :'✭',
" \ 'Renamed' :'➜',
" \ 'Unmerged' :'═',
" \ 'Deleted' :'✖',
" \ 'Dirty' :'✗',
" \ 'Ignored' :'☒',
" \ 'Clean' :'✔︎',
" \ 'Unknown' :'?',
" \ }
"let NERDTreeShowHidden=1
"Airline Conf
let g:airline#extensions#tabline#enabled = 1
let g:airline_section_x = '%{MyClock()}'
"NvimTree Conf
let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1
"Theme Conf
"set t_Co=256
"set termguicolors
" Colorscheme dracula
"colorscheme dracula
"colorscheme gruvbox
" Todo lo de abajo me funcionó con Kitty Terminal
augroup user_colors
autocmd!
autocmd ColorScheme * highlight Normal guibg=none
autocmd ColorScheme * highlight SignColumn guibg=none
autocmd Colorscheme * highlight StatusLine guibg=none
augroup END
colorscheme catppuccin
let g:gruvbox_material_background = 'hard'
set termguicolors
" Todo lo de arriba me funcionó con Kitty Terminal
"Closetag Conf
" filenames like *.xml, *.html, *.xhtml, ...
" These are the file extensions where this plugin is enabled.
"
let g:closetag_filenames = '*.html,*.xhtml,*.phtml'
" filenames like *.xml, *.xhtml, ...
" This will make the list of non-closing tags self-closing in the specified files.
"
let g:closetag_xhtml_filenames = '*.xhtml,*.jsx'
" filetypes like xml, html, xhtml, ...
" These are the file types where this plugin is enabled.
"
let g:closetag_filetypes = 'html,xhtml,phtml'
" filetypes like xml, xhtml, ...
" This will make the list of non-closing tags self-closing in the specified files.
"
let g:closetag_xhtml_filetypes = 'xhtml,jsx'
" integer value [0|1]
" This will make the list of non-closing tags case-sensitive (e.g. `<Link>` will be closed while `<link>` won't.)
"
let g:closetag_emptyTags_caseSensitive = 1
" dict
" Disables auto-close if not in a "valid" region (based on filetype)
"
let g:closetag_regions = {
\ 'typescript.tsx': 'jsxRegion,tsxRegion',
\ 'javascript.jsx': 'jsxRegion',
\ 'typescriptreact': 'jsxRegion,tsxRegion',
\ 'javascriptreact': 'jsxRegion',
\ }
" Shortcut for closing tags, default is '>'
"
"let g:closetag_shortcut = '>'
" Add > at current position without closing the current tag, default is ''
"
let g:closetag_close_shortcut = '<leader>>'
so ~/.config/nvim/cocconfig.vim
" Functions
"
function! MyUsername()
return $USER
endfunction
function! MyClock()
" Formatea la fecha y hora
let l:date_time = strftime("%a %d %b %Y %H:%M")
" Retorna el nombre de usuario seguido de la fecha y hora formateada
return MyUsername() . ' hoy es ' . l:date_time
endfunction