Skip to content

Commit 7212f84

Browse files
committed
nvim: updated configs
- neovide recognize left alt as M - fixed layout for snacks picker
1 parent 281310d commit 7212f84

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,19 @@
2323
"cdreplay",
2424
"centos",
2525
"CLICOLOR",
26+
"colorcolumn",
2627
"COMPFIX",
2728
"dedup",
2829
"dotfiles",
2930
"dups",
3031
"entrypoint",
32+
"expandtab",
3133
"fpath",
3234
"Ghostty",
3335
"gitignore",
3436
"gitlens",
3537
"gopls",
38+
"guifont",
3639
"HISTDUP",
3740
"OLDPATH",
3841
"OMZP",
@@ -41,6 +44,9 @@
4144
"SAVEHIST",
4245
"sharehistory",
4346
"shellenv",
47+
"shiftwidth",
48+
"spelllang",
49+
"titlestring",
4450
"vardan",
4551
"varp",
4652
"vimrc",

dotfiles/config/nvim/lua/config/options.lua

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
33
-- Add any additional options here
44

5+
-- neovide specific
6+
if vim.g.neovide then
7+
vim.g.neovide_input_macos_option_key_is_meta = 'only_left'
8+
end
9+
10+
-- vim
511
local opt = vim.opt
612
opt.spell = true
713
opt.spelllang = { "en_us", "ru_ru" }
@@ -14,4 +20,9 @@ opt.expandtab = true
1420
opt.colorcolumn = "120"
1521

1622

17-
vim.g.omni_sql_no_default_maps = 1
23+
opt.title = true
24+
opt.titlestring = "%{fnamemodify(getcwd(), ':t')}: %t %m"
25+
26+
27+
local g = vim.g
28+
g.omni_sql_no_default_maps = 1 -- allow use arrow keys in INSERT mode

dotfiles/config/nvim/lua/plugins/snacks.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ local customVertical = {
1010
title = "{title} {live} {flags}",
1111
title_pos = "center",
1212
{ win = "input", height = 1, border = "bottom" },
13-
{ win = "list", border = "none", height = 10 },
14-
{ win = "preview", title = "{preview}", border = "top" },
13+
{ win = "list", border = "none" },
14+
{ win = "preview", title = "{preview}", border = "top", height = 0.8 },
1515
},
1616
}
1717

0 commit comments

Comments
 (0)