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

@ -54,7 +54,6 @@ with final.pkgs.lib; let
# telescope-smart-history-nvim # https://github.com/nvim-telescope/telescope-smart-history.nvim
# ^ telescope and extensions
# UI
nvim-navic # Add LSP location to lualine | https://github.com/SmiteshP/nvim-navic
statuscol-nvim # Status column | https://github.com/luukvbaal/statuscol.nvim/
nvim-treesitter-context # nvim-treesitter-context
# ^ UI

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 = {
require('copilot_cmp').setup()
require('copilot').setup {
suggestion = { enabled = false },
panel = { enabled = false },
filetypes = {
['java'] = true,
-- ['*'] = false,
-- },
-- copilot_node_command = 'node',
-- }
},
}