added some more configurations

This commit is contained in:
ngorana 2024-10-18 14:40:39 +01:00
parent 41d6f87f64
commit 9ea714a879
9 changed files with 86 additions and 21 deletions

View 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,
}

View 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',
},
}

View 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,
}

View file

@ -0,0 +1,2 @@
-- return { 'github/copilot.vim' }
return {}

View file

@ -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 {}

View file

@ -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>'),

View file

@ -1,6 +1,3 @@
-- autopairs
-- https://github.com/windwp/nvim-autopairs
return {
'windwp/nvim-autopairs',
event = 'InsertEnter',

View file

@ -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: