Skip to content

Commit ac8c06b

Browse files
committed
Merge branch 'main' of https://github.com/greggh/nvim
2 parents 41f624b + 72bea7f commit ac8c06b

6 files changed

Lines changed: 41 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8585
- Initial configuration setup
8686
- Core plugin ecosystem
8787
- Basic keybindings and settings
88-
- Modular organization
88+
- Modular organization

lua/config/keymaps.lua

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ local function get_snacks()
1717
end
1818

1919
local builtin_map = {
20-
-- Command mode tab completion
21-
["c|<tab>"] = map_cmd("<C-z>"):with_noremap():with_desc("edit: Command completion"),
20+
-- Command mode tab completion ["c|<tab>"] = map_cmd("<C-z>"):with_noremap():with_desc("edit: Command completion"),
2221

2322
-- fix stupid typo
2423
["n|q:"] = map_cmd("<Cmd>q<CR>"):with_noremap():with_silent():with_desc("edit: Quit"),
@@ -212,10 +211,10 @@ local plug_map = {
212211
["n|<A-j>"] = map_cu("SmartResizeDown"):with_silent():with_noremap():with_desc("window: Resize -3 down"),
213212
["n|<A-k>"] = map_cu("SmartResizeUp"):with_silent():with_noremap():with_desc("window: Resize +3 up"),
214213
["n|<A-l>"] = map_cu("SmartResizeRight"):with_silent():with_noremap():with_desc("window: Resize +3 right"),
215-
["n|<C-h>"] = map_cu("SmartCursorMoveLeft"):with_silent():with_noremap():with_desc("window: Focus left"),
216-
["n|<C-j>"] = map_cu("SmartCursorMoveDown"):with_silent():with_noremap():with_desc("window: Focus down"),
217-
["n|<C-k>"] = map_cu("SmartCursorMoveUp"):with_silent():with_noremap():with_desc("window: Focus up"),
218-
["n|<C-l>"] = map_cu("SmartCursorMoveRight"):with_silent():with_noremap():with_desc("window: Focus right"),
214+
["n|<C-h>"] = map_cu("wincmd h"):with_silent():with_noremap():with_desc("window: Focus left"),
215+
["n|<C-j>"] = map_cu("wincmd j"):with_silent():with_noremap():with_desc("window: Focus down"),
216+
["n|<C-k>"] = map_cu("wincmd k"):with_silent():with_noremap():with_desc("window: Focus up"),
217+
["n|<C-l>"] = map_cu("wincmd l"):with_silent():with_noremap():with_desc("window: Focus right"),
219218
["n|<leader>wh"] = map_cu("SmartSwapLeft"):with_silent():with_noremap():with_desc("window: Move window left"),
220219
["n|<leader>wj"] = map_cu("SmartSwapDown"):with_silent():with_noremap():with_desc("window: Move window down"),
221220
["n|<leader>wk"] = map_cu("SmartSwapUp"):with_silent():with_noremap():with_desc("window: Move window up"),

lua/plugins/ai/avante.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ return {
3030
config = function()
3131
require("avante_lib").load()
3232
require("avante").setup({
33-
provider = "claude",
34-
vendors = {
35-
["ollama"] = {
33+
providers = {
34+
claude = {},
35+
ollama = {
3636
__inherited_from = "openai",
3737
api_key_name = "",
3838
endpoint = "http://192.168.1.197:11434/v1",

lua/plugins/blink-cmp.lua

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,34 @@ return {
132132
snippets = { preset = "luasnip" },
133133

134134
cmdline = {
135-
sources = {},
136-
},
135+
enabled = true,
136+
keymap = { preset = "cmdline" },
137+
sources = { "buffer", "cmdline" },
137138

139+
completion = {
140+
trigger = {
141+
show_on_blocked_trigger_characters = {},
142+
show_on_x_blocked_trigger_characters = {},
143+
},
144+
list = {
145+
selection = {
146+
-- When `true`, will automatically select the first item in the completion list
147+
preselect = true,
148+
-- When `true`, inserts the completion item automatically when selecting it
149+
auto_insert = true,
150+
},
151+
},
152+
-- Whether to automatically show the window when new completion items are available
153+
-- Default is false for cmdline, true for cmdwin (command-line window)
154+
menu = {
155+
auto_show = function(ctx, _)
156+
return ctx.mode == "cmdwin"
157+
end,
158+
},
159+
-- Displays a preview of the selected item on the current line
160+
ghost_text = { enabled = true },
161+
},
162+
},
138163
sources = {
139164
default = sources_default,
140165
per_filetype = {

lua/plugins/debugger/python-dap.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ return {
66
-- see: nvim-dap-ui issue #279
77
require("dapui").setup()
88
-- uses the debugypy installation by mason
9-
local debugpyPythonPath = require("mason-registry").get_package("debugpy"):get_install_path() .. "/venv/bin/python3"
9+
local debugpyPythonPath = vim.fn.expand("$MASON/bin/kotlin-debug-adapter") .. "/venv/bin/python3"
1010
require("dap-python").setup(debugpyPythonPath, {}) ---@diagnostic disable-line: missing-fields
1111
end,
1212
}

lua/plugins/lsp.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ return {
164164
---------------------
165165
-- memory limiting for LSP servers
166166
---------------------
167-
local function get_memory_limit_mb()
168-
-- Adapt based on available system memory
169-
return 1024 -- 1GB limit for LSP servers
170-
end
167+
-- local function get_memory_limit_mb()
168+
-- -- Adapt based on available system memory
169+
-- return 1024 -- 1GB limit for LSP servers
170+
-- end
171171

172172
---------------------
173173
-- mason

0 commit comments

Comments
 (0)