Skip to content

Commit 1a5c52c

Browse files
Merge pull request #25 from DeadlySquad13/dev
Regular main update: - Lsp enhancements (code lens via glance, better tooltips and diagnostics). - Easier cd management: after cd you can trigger actions that are usually used after cd. - TextObjects fixes and enhancements. - Movement fixes and enhancements. - Aerojump for better searching. - Marks.nvim keymappings. - Venv name in statusline via swenv. - Json and Yaml lsps. - Quickfix and tab hydra modes and keymappings. - Gitblame. - Better folds, smart fold on file open. - Replacement, search, search&replace and substitute keymappings organized. - Zoxide integration. - Docker, vim and vimdoc parsers. - Firenvim integration returned.
2 parents d045489 + 15bcd1c commit 1a5c52c

File tree

116 files changed

+2192
-832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+2192
-832
lines changed

after/ftplugin/cql/init.lua

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
local options = {
2+
commentstring = "// %s",
3+
}
4+
5+
require('ds_omega.utils.setters').set_local_settings(options)

after/ftplugin/dot/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local apply_bufferlocal_keymappings = require('config.Ui.which_key.utils').apply_bufferlocal_keymappings
1+
local apply_bufferlocal_keymappings = require('ds_omega.config.Ui.which_key.utils').apply_bufferlocal_keymappings
22

33
apply_bufferlocal_keymappings('n', {
44
['<Cr>'] = { [[<Cmd>! dotPng %:r<Cr>]], 'Create png from name of the current file' }, -- Use kroki like in mermaid?

after/ftplugin/help/init.lua

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
local apply_bufferlocal_keymappings = require('ds_omega.config.Ui.which_key.utils').apply_bufferlocal_keymappings
2+
3+
-- Reference: https://vim.fandom.com/wiki/Learn_to_use_help
4+
apply_bufferlocal_keymappings('n', {
5+
['<Cr>'] = { '<C-]>', 'Jump to topic under cursor' },
6+
['<Bs>'] = { '<C-T>', 'Return to last topic' },
7+
o = { [[/'\l\{2,\}'<Cr>]], 'To next option' },
8+
O = { [[?'\l\{2,\}'<Cr>]], 'To previous option' },
9+
-- Not sure how should it work but it selects everything.
10+
-- s = { [[/\|\zs\S\+\ze\|<Cr>]], 'To the next subject' },
11+
-- S = { [[?\|\zs\S\+\ze\|<Cr>]], 'To the previous subject' },
12+
}, { prefix = '' })

after/ftplugin/http/init.lua

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
local apply_bufferlocal_keymappings = require('ds_omega.config.Ui.which_key.utils').apply_bufferlocal_keymappings
2+
3+
apply_bufferlocal_keymappings('n', {
4+
x = { '<Plug>RestNvim', 'Run rest.nvim under cursor' },
5+
X = { '<Plug>RestNvimPreview', 'Preview cURL command' },
6+
})

after/ftplugin/javascript/init.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
local options = {
2-
tabstop = 4,
3-
softtabstop = 4,
4-
shiftwidth = 4,
2+
tabstop = 4,
3+
softtabstop = 4,
4+
shiftwidth = 4,
55
}
66

77
require('ds_omega.utils.setters').set_local_settings(options)

after/ftplugin/markdown/init.lua

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
-- # Markdown mkdx mappings.
22
--nmap <Plug> <Plug>(mkdx-wrap-link-n})
3+
local options = {
4+
wrap = true
5+
}
6+
7+
require('ds_omega.utils.setters').set_local_settings(options)

after/ftplugin/mermaid/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local apply_bufferlocal_keymappings = require('config.Ui.which_key.utils').apply_bufferlocal_keymappings
1+
local apply_bufferlocal_keymappings = require('ds_omega.config.Ui.which_key.utils').apply_bufferlocal_keymappings
22

33
apply_bufferlocal_keymappings('n', {
44
['<Cr>'] = { [[<Cmd>:!kroki convert % --type mermaid && kroki convert % --type mermaid --format png<Cr>]], 'Convert current file to svg and png' },

after/queries/typescript/highlights.scm

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
; extends
22

3-
(function
4-
name: (identifier) @function)
3+
; Adding more highlights to typescript. A lot of captures are already available
4+
; so we just need to assign highlight groups to them.
5+
(call_expression
6+
function: (identifier) @function)
57
(function_declaration
68
name: (identifier) @function.declaration)
79
(generator_function

ginit.vim

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
" Settings: https://neovide.dev/configuration.html
22
if exists('g:neovide')
3-
set guifont=Iosevka:h10
3+
set guifont=Iosevka:h14
44

5-
let g:neovide_fullscreen = v:true
5+
let g:neovide_fullscreen = v:false
66
let g:neovide_remember_window_size = v:true
7+
let g:neovide_floating_shadow=v:false
78

89
let g:neovide_cursor_animation_length=0.05
910
let g:neovide_cursor_trail_size = 0.1

init.vim

+3-22
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
if exists('g:fvim_loaded') || exists('g:neovide_loaded') || exists('g:nvy')
2+
" FIX: made path generic.
23
source ~\AppData\Local\nvim\ginit.vim
34
endif
45

@@ -66,17 +67,6 @@ autocmd Filetype python setlocal omnifunc=v:lua.vim.lsp.omnifunc
6667
" let g:wordmotion_prefix = ','
6768
let g:wordmotion_nomap = 1
6869

69-
" # Formatting.
70-
" * Easy Align.
71-
" - Start interactive EasyAlign in visual mode (e.g. vipga)
72-
xmap ga <Plug>(EasyAlign)
73-
74-
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
75-
nmap ga <Plug>(EasyAlign)
76-
77-
" * Copy all file into system register (*).
78-
nnoremap f% gg"*yG
79-
8070
" * Matching braces.
8171
packadd! matchit
8272

@@ -89,19 +79,17 @@ let g:surround_{char2nr('-')} = "\1start: \1\r\2end: \2"
8979
let g:surround_{char2nr('la')} = "function() \r end"
9080

9181
" * Keep visual mode after indent.
82+
" TODO: `>` overlaps with put commands => delay is added.
9283
vnoremap > >gv
9384
vnoremap < <gv
9485
9586
" * Select just pasted text in last used mode [if you used linewise selection
9687
" - V, if characterwise - v,..].
88+
" FIX: `[ marks get rewritten during autosave.
9789
nnoremap <expr> gp '`[' . strpart(getregtype(), 0, 1) . '`]'
9890
9991
" * Yanking.
10092

101-
" * Open new file in vertical / horizontal split (similar to built-in <c-w>n).
102-
nnoremap <C-w>v :vnew<Cr>
103-
nnoremap <C-w>s :below new<Cr>
104-
10593
" * Remaping line concatenation for use of j with modifier in non-vim apps.
10694
noremap <a-j> J
10795
@@ -181,13 +169,6 @@ vnoremap <leader>de :!python3 -c 'import sys; from urllib import parse; print(pa
181169
nnoremap ]b :call searchpair('\[','','\]')<cr>
182170
nnoremap [b :call searchpair('\[','','\]','b')<cr>
183171
184-
" Mappings.
185-
" Start interactive EasyAlign in visual mode (e.g. vip<Enter>)
186-
vmap <Enter> <Plug>(EasyAlign)
187-
188-
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
189-
nmap ga <Plug>(EasyAlign)
190-
191172
" Abbreviations
192173
runtime abbreviations.vim
193174

0 commit comments

Comments
 (0)