nvim: Formatting; disable copilot by default

This commit is contained in:
Andreas Tsouchlos 2025-11-08 16:47:45 +01:00
parent 52d0fd3efa
commit 9aba8cd855
3 changed files with 17 additions and 18 deletions

View File

@ -2,15 +2,11 @@ vim.pack.add({ "https://github.com/zbirenbaum/copilot.lua" })
require("copilot").setup({
suggestion = {
enabled = true,
auto_trigger = true,
keymap = {
accept = "<C-l>"
-- accept_word = false,
-- accept_line = false,
-- next = "<M-]>",
-- prev = "<M-[>",
-- dismiss = "<C-]>"
accept = "<C-l>",
}
}
})
vim.cmd('command! Run Copilot diable')

View File

@ -4,6 +4,7 @@
--
--
vim.pack.add({
{ src = "https://github.com/neovim/nvim-lspconfig" },
{ src = "https://github.com/mason-org/mason-lspconfig.nvim" },
@ -13,12 +14,14 @@ vim.pack.add({
require("mason").setup()
require("mason-lspconfig").setup()
--
--
-- Diagnostic config
--
--
vim.diagnostic.config({
virtual_text = true,
severity_sort = true,
@ -34,8 +37,8 @@ vim.api.nvim_create_autocmd("CursorHold", {
source = true,
relative = "editor",
width = 40,
focusable = false,
-- focus = false,
focusable = true,
focused = false,
border = "rounded",
title = "Diagnostics",
header = "",
@ -46,15 +49,6 @@ vim.api.nvim_create_autocmd("CursorHold", {
end,
})
-- vim.diagnostic.handlers["quickfix"] = {
-- show = function(_, _, _, _)
-- vim.diagnostic.setqflist({ open = false })
-- end,
--
-- hide = function(_, _)
-- vim.fn.setqflist({}, 'r')
-- end
-- }
--
--
@ -62,6 +56,7 @@ vim.api.nvim_create_autocmd("CursorHold", {
--
--
vim.o.completeopt = "menu,menuone,noinsert,fuzzy"
vim.api.nvim_set_keymap("i", "<C-Space>", "<C-x><C-o>", { noremap = true })

View File

@ -1,5 +1,9 @@
{
"plugins": {
"LuaSnip": {
"rev": "3732756",
"src": "https://github.com/L3MON4D3/LuaSnip"
},
"alpha-nvim": {
"rev": "3979b01",
"src": "https://github.com/goolord/alpha-nvim"
@ -16,6 +20,10 @@
"rev": "2d7c2db",
"src": "https://github.com/stevearc/dressing.nvim"
},
"friendly-snippets": {
"rev": "572f566",
"src": "https://github.com/rafamadriz/friendly-snippets"
},
"gruvbox.nvim": {
"rev": "5e0a460",
"src": "https://github.com/ellisonleao/gruvbox.nvim"