nvim: Formatting; disable copilot by default
This commit is contained in:
parent
52d0fd3efa
commit
9aba8cd855
@ -2,15 +2,11 @@ vim.pack.add({ "https://github.com/zbirenbaum/copilot.lua" })
|
|||||||
|
|
||||||
require("copilot").setup({
|
require("copilot").setup({
|
||||||
suggestion = {
|
suggestion = {
|
||||||
enabled = true,
|
|
||||||
auto_trigger = true,
|
auto_trigger = true,
|
||||||
keymap = {
|
keymap = {
|
||||||
accept = "<C-l>"
|
accept = "<C-l>",
|
||||||
-- accept_word = false,
|
|
||||||
-- accept_line = false,
|
|
||||||
-- next = "<M-]>",
|
|
||||||
-- prev = "<M-[>",
|
|
||||||
-- dismiss = "<C-]>"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.cmd('command! Run Copilot diable')
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
--
|
--
|
||||||
--
|
--
|
||||||
|
|
||||||
|
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
||||||
{ src = "https://github.com/mason-org/mason-lspconfig.nvim" },
|
{ src = "https://github.com/mason-org/mason-lspconfig.nvim" },
|
||||||
@ -13,12 +14,14 @@ vim.pack.add({
|
|||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
require("mason-lspconfig").setup()
|
require("mason-lspconfig").setup()
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
--
|
--
|
||||||
-- Diagnostic config
|
-- Diagnostic config
|
||||||
--
|
--
|
||||||
--
|
--
|
||||||
|
|
||||||
|
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = true,
|
virtual_text = true,
|
||||||
severity_sort = true,
|
severity_sort = true,
|
||||||
@ -34,8 +37,8 @@ vim.api.nvim_create_autocmd("CursorHold", {
|
|||||||
source = true,
|
source = true,
|
||||||
relative = "editor",
|
relative = "editor",
|
||||||
width = 40,
|
width = 40,
|
||||||
focusable = false,
|
focusable = true,
|
||||||
-- focus = false,
|
focused = false,
|
||||||
border = "rounded",
|
border = "rounded",
|
||||||
title = "Diagnostics",
|
title = "Diagnostics",
|
||||||
header = "",
|
header = "",
|
||||||
@ -46,15 +49,6 @@ vim.api.nvim_create_autocmd("CursorHold", {
|
|||||||
end,
|
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.o.completeopt = "menu,menuone,noinsert,fuzzy"
|
||||||
vim.api.nvim_set_keymap("i", "<C-Space>", "<C-x><C-o>", { noremap = true })
|
vim.api.nvim_set_keymap("i", "<C-Space>", "<C-x><C-o>", { noremap = true })
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"plugins": {
|
"plugins": {
|
||||||
|
"LuaSnip": {
|
||||||
|
"rev": "3732756",
|
||||||
|
"src": "https://github.com/L3MON4D3/LuaSnip"
|
||||||
|
},
|
||||||
"alpha-nvim": {
|
"alpha-nvim": {
|
||||||
"rev": "3979b01",
|
"rev": "3979b01",
|
||||||
"src": "https://github.com/goolord/alpha-nvim"
|
"src": "https://github.com/goolord/alpha-nvim"
|
||||||
@ -16,6 +20,10 @@
|
|||||||
"rev": "2d7c2db",
|
"rev": "2d7c2db",
|
||||||
"src": "https://github.com/stevearc/dressing.nvim"
|
"src": "https://github.com/stevearc/dressing.nvim"
|
||||||
},
|
},
|
||||||
|
"friendly-snippets": {
|
||||||
|
"rev": "572f566",
|
||||||
|
"src": "https://github.com/rafamadriz/friendly-snippets"
|
||||||
|
},
|
||||||
"gruvbox.nvim": {
|
"gruvbox.nvim": {
|
||||||
"rev": "5e0a460",
|
"rev": "5e0a460",
|
||||||
"src": "https://github.com/ellisonleao/gruvbox.nvim"
|
"src": "https://github.com/ellisonleao/gruvbox.nvim"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user