Skip to content

Commit c70cb9a

Browse files
committed
refactor(nvim): use stable neovim version, remove inline completion support for now
1 parent 7c7aee3 commit c70cb9a

5 files changed

Lines changed: 25 additions & 33 deletions

File tree

home/dot_config/exact_homebrew/Brewfile.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ brew "lazydocker"
3232
brew "lazygit"
3333
brew "mas"
3434
brew "massren"
35-
brew "neovim", args: ["HEAD"]
35+
brew "neovim"
3636
brew "nmap"
3737
brew "node"
3838
brew "opencode"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
local Plugin = { 'zbirenbaum/copilot.lua' }
2+
3+
Plugin.name = 'copilot'
4+
5+
Plugin.cmd = 'Copilot'
6+
Plugin.event = 'InsertEnter'
7+
8+
Plugin.opts = {
9+
panel = { enabled = false },
10+
suggestion = {
11+
auto_trigger = true,
12+
keymap = {
13+
accept_word = '<M-w>',
14+
},
15+
},
16+
filetypes = {
17+
markdown = true,
18+
},
19+
}
20+
21+
return Plugin

home/dot_config/exact_nvim/exact_lua/exact_specs/treesitter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Plugin.opts = {
154154
}
155155

156156
Plugin.config = function(_, opts)
157-
local treesitter = require('nvim-treesitter.configs')
157+
local treesitter = require('nvim-treesitter')
158158
local treesitter_context = require('treesitter-context')
159159
local treesitter_autotag = require('nvim-ts-autotag')
160160

home/dot_config/exact_nvim/exact_plugin/lsp.lua

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -92,32 +92,3 @@ vim.api.nvim_create_autocmd('LspAttach', {
9292
end
9393
end,
9494
})
95-
96-
-- Keymaps for inlay completion.
97-
vim.api.nvim_create_autocmd('LspAttach', {
98-
group = lsp_group,
99-
callback = function(args)
100-
local client = vim.lsp.get_client_by_id(args.data.client_id)
101-
if not client then
102-
return
103-
end
104-
105-
if
106-
client:supports_method(
107-
vim.lsp.protocol.Methods.textDocument_inlineCompletion,
108-
args.buf
109-
)
110-
then
111-
vim.lsp.inline_completion.enable(true, { bufnr = args.buf })
112-
113-
vim.keymap.set('i', '<M-l>', vim.lsp.inline_completion.get, {
114-
desc = 'LSP: accept inline completion',
115-
buffer = args.buf,
116-
})
117-
vim.keymap.set('i', '<M-]>', vim.lsp.inline_completion.select, {
118-
desc = 'LSP: switch inline completion',
119-
buffer = args.buf,
120-
})
121-
end
122-
end,
123-
})

home/dot_config/exact_nvim/lazy-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
"snacks": { "branch": "main", "commit": "fe7cfe9800a182274d0f868a74b7263b8c0c020b" },
3535
"surround": { "branch": "main", "commit": "1098d7b3c34adcfa7feb3289ee434529abd4afd1" },
3636
"todo-comments": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
37-
"treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
37+
"treesitter": { "branch": "main", "commit": "4967fa48b0fe7a7f92cee546c76bb4bb61bb14d5" },
3838
"treesitter-autotag": { "branch": "main", "commit": "db15f2e0df2f5db916e511e3fffb682ef2f6354f" },
3939
"treesitter-context": { "branch": "master", "commit": "64dd4cf3f6fd0ab17622c5ce15c91fc539c3f24a" },
40-
"treesitter-text-objects": { "branch": "master", "commit": "5ca4aaa6efdcc59be46b95a3e876300cfead05ef" },
40+
"treesitter-text-objects": { "branch": "main", "commit": "a0e182ae21fda68c59d1f36c9ed45600aef50311" },
4141
"ts-comments": { "branch": "main", "commit": "123a9fb12e7229342f807ec9e6de478b1102b041" },
4242
"ts-error-translator": { "branch": "main", "commit": "558abff11b9e8f4cefc0de09df780c56841c7a4b" },
4343
"windovigation": { "branch": "main", "commit": "16d7331153236e1e196331c6a7c81b2db019fab8" }

0 commit comments

Comments
 (0)