copilot: fix weird buffer issues

This commit is contained in:
kossLAN 2024-09-13 00:48:20 -04:00
parent 59c9c27518
commit 3ae12887b0
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
3 changed files with 11 additions and 15 deletions

View file

@ -70,9 +70,6 @@ vim.api.nvim_create_autocmd('LspAttach', {
local bufnr = ev.buf
local client = vim.lsp.get_client_by_id(ev.data.client_id)
-- Attach plugins
require('nvim-navic').attach(client, bufnr)
vim.cmd.setlocal('signcolumn=yes')
vim.bo[bufnr].bufhidden = 'hide'

View file

@ -2,14 +2,14 @@
-- require('CopilotChat').setup {
-- debug = true,
-- }
--
-- require('copilot_cmp').setup()
--
-- require('copilot').setup {
-- suggestion = { enabled = false },
-- panel = { enabled = false },
-- filetypes = {
-- ['*'] = false,
-- },
-- copilot_node_command = 'node',
-- }
require('copilot_cmp').setup()
require('copilot').setup {
suggestion = { enabled = false },
panel = { enabled = false },
filetypes = {
['java'] = true,
-- ['*'] = false,
},
}