added some more configurations
This commit is contained in:
parent
41d6f87f64
commit
9ea714a879
9 changed files with 86 additions and 21 deletions
11
lua/custom/plugins/codecompanion.lua
Normal file
11
lua/custom/plugins/codecompanion.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
return {
|
||||
-- 'olimorris/codecompanion.nvim',
|
||||
-- dependencies = {
|
||||
-- 'nvim-lua/plenary.nvim',
|
||||
-- 'nvim-treesitter/nvim-treesitter',
|
||||
-- 'hrsh7th/nvim-cmp', -- Optional: For using slash commands and variables in the chat buffer
|
||||
-- 'nvim-telescope/telescope.nvim', -- Optional: For using slash commands
|
||||
-- { 'stevearc/dressing.nvim', opts = {} }, -- Optional: Improves the default Neovim UI
|
||||
-- },
|
||||
-- config = true,
|
||||
}
|
||||
13
lua/custom/plugins/codesnap.lua
Normal file
13
lua/custom/plugins/codesnap.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
'mistricky/codesnap.nvim',
|
||||
build = 'make build_generator',
|
||||
keys = {
|
||||
{ '<leader>cc', '<cmd>CodeSnap<cr>', mode = 'x', desc = 'Save selected code snapshot into clipboard' },
|
||||
{ '<leader>cs', '<cmd>CodeSnapSave<cr>', mode = 'x', desc = 'Save selected code snapshot in ~/Screenshots' },
|
||||
},
|
||||
opts = {
|
||||
save_path = '~/Pictures/Screenshots/',
|
||||
-- has_breadcrumbs = true,
|
||||
bg_theme = 'bamboo',
|
||||
},
|
||||
}
|
||||
17
lua/custom/plugins/comment.lua
Normal file
17
lua/custom/plugins/comment.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
'numToStr/Comment.nvim',
|
||||
dependencies = { 'JoosepAlviste/nvim-ts-context-commentstring' },
|
||||
config = function()
|
||||
require('Comment').setup {
|
||||
pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook(),
|
||||
-- Ensure commentstring is set properly for TSX and JSX files
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = { 'javascriptreact', 'typescriptreact' },
|
||||
callback = function()
|
||||
-- Use JSX-style comments in TSX/JSX files
|
||||
vim.bo.commentstring = '{/* %s */}'
|
||||
end,
|
||||
}),
|
||||
}
|
||||
end,
|
||||
}
|
||||
2
lua/custom/plugins/copilot.lua
Normal file
2
lua/custom/plugins/copilot.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- return { 'github/copilot.vim' }
|
||||
return {}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
-- You can add your own plugins here or in other files in this directory!
|
||||
-- I promise not to create any merge conflicts in this directory :)
|
||||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
return {}
|
||||
|
|
@ -3,7 +3,7 @@ return {
|
|||
dependencies = {
|
||||
'preservim/vimux',
|
||||
},
|
||||
vim.keymap.set('n', '<leader>t', ':TestNearest<CR>'),
|
||||
vim.keymap.set('n', '<leader>tt', ':TestNearest<CR>', { desc = 'Test Nearest' }),
|
||||
vim.keymap.set('n', '<leader>T', ':TestFile<CR>'),
|
||||
vim.keymap.set('n', '<leader>m', ':TestSuite<CR>'),
|
||||
vim.keymap.set('n', '<leader>l', ':TestLast<CR>'),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
-- autopairs
|
||||
-- https://github.com/windwp/nvim-autopairs
|
||||
|
||||
return {
|
||||
'windwp/nvim-autopairs',
|
||||
event = 'InsertEnter',
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ return {
|
|||
event = { 'BufReadPre', 'BufNewFile' },
|
||||
config = function()
|
||||
local lint = require 'lint'
|
||||
lint.linters_by_ft = {
|
||||
markdown = { 'markdownlint' },
|
||||
}
|
||||
-- lint.linters_by_ft = {
|
||||
-- markdown = { 'markdownlint' },
|
||||
-- }
|
||||
|
||||
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
||||
-- instead set linters_by_ft like this:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue