mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
chore:nvim_setting
feat:use biome fmt test:add copilot chore:let terminal just one fix:keymaps for close buffer fix:disable markdown view && fix conceallevel
This commit is contained in:
28
home/nvim/lua/plugins/copilot.lua
Normal file
28
home/nvim/lua/plugins/copilot.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
return {
|
||||
{
|
||||
"zbirenbaum/copilot.lua",
|
||||
cmd = "Copilot",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("copilot").setup({
|
||||
suggestion = { enabled = true, auto_trigger = true },
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"CopilotC-Nvim/CopilotChat.nvim",
|
||||
branch = "main",
|
||||
dependencies = {
|
||||
{ "zbirenbaum/copilot.lua" },
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
},
|
||||
opts = {
|
||||
debug = false,
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>cc", "<cmd>CopilotChatToggle<cr>", desc = "CopilotChat - Toggle" },
|
||||
{ "<leader>ce", "<cmd>CopilotChatExplain<cr>", mode = "v", desc = "CopilotChat - Explain code" },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -34,11 +34,11 @@ return {
|
||||
-- Python
|
||||
opts.formatters_by_ft.python = { "black", "ruff_format" }
|
||||
-- JS/TS/Web
|
||||
opts.formatters_by_ft.javascript = { "prettierd" }
|
||||
opts.formatters_by_ft.typescript = { "prettierd" }
|
||||
opts.formatters_by_ft.javascriptreact = { "prettierd" }
|
||||
opts.formatters_by_ft.typescriptreact = { "prettierd" }
|
||||
opts.formatters_by_ft.vue = { "prettierd" }
|
||||
opts.formatters_by_ft.javascript = { "biome" }
|
||||
opts.formatters_by_ft.typescript = { "biome" }
|
||||
opts.formatters_by_ft.javascriptreact = { "biome" }
|
||||
opts.formatters_by_ft.typescriptreact = { "biome" }
|
||||
opts.formatters_by_ft.vue = { "biome" }
|
||||
-- JSON
|
||||
opts.formatters_by_ft.json = { "jq" }
|
||||
-- YAML
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
return {
|
||||
"OXY2DEV/markview.nvim",
|
||||
name = "markview.nvim",
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
config = function()
|
||||
require("markview").setup({
|
||||
markdown = { enable = true },
|
||||
latex = {
|
||||
enable = true,
|
||||
inline = { enable = true },
|
||||
block = { enable = true },
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user