mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-05 02:09:49 -05:00
copilot: fix weird buffer issues
This commit is contained in:
parent
59c9c27518
commit
3ae12887b0
3 changed files with 11 additions and 15 deletions
|
|
@ -54,7 +54,6 @@ with final.pkgs.lib; let
|
||||||
# telescope-smart-history-nvim # https://github.com/nvim-telescope/telescope-smart-history.nvim
|
# telescope-smart-history-nvim # https://github.com/nvim-telescope/telescope-smart-history.nvim
|
||||||
# ^ telescope and extensions
|
# ^ telescope and extensions
|
||||||
# UI
|
# UI
|
||||||
nvim-navic # Add LSP location to lualine | https://github.com/SmiteshP/nvim-navic
|
|
||||||
statuscol-nvim # Status column | https://github.com/luukvbaal/statuscol.nvim/
|
statuscol-nvim # Status column | https://github.com/luukvbaal/statuscol.nvim/
|
||||||
nvim-treesitter-context # nvim-treesitter-context
|
nvim-treesitter-context # nvim-treesitter-context
|
||||||
# ^ UI
|
# ^ UI
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,6 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
local bufnr = ev.buf
|
local bufnr = ev.buf
|
||||||
local client = vim.lsp.get_client_by_id(ev.data.client_id)
|
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.cmd.setlocal('signcolumn=yes')
|
||||||
vim.bo[bufnr].bufhidden = 'hide'
|
vim.bo[bufnr].bufhidden = 'hide'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,14 @@
|
||||||
-- require('CopilotChat').setup {
|
-- require('CopilotChat').setup {
|
||||||
-- debug = true,
|
-- debug = true,
|
||||||
-- }
|
-- }
|
||||||
--
|
|
||||||
-- require('copilot_cmp').setup()
|
require('copilot_cmp').setup()
|
||||||
--
|
|
||||||
-- require('copilot').setup {
|
require('copilot').setup {
|
||||||
-- suggestion = { enabled = false },
|
suggestion = { enabled = false },
|
||||||
-- panel = { enabled = false },
|
panel = { enabled = false },
|
||||||
-- filetypes = {
|
filetypes = {
|
||||||
|
['java'] = true,
|
||||||
-- ['*'] = false,
|
-- ['*'] = false,
|
||||||
-- },
|
},
|
||||||
-- copilot_node_command = 'node',
|
}
|
||||||
-- }
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue