nvim: re-add coding plugins

This commit is contained in:
tea 2024-08-20 18:24:33 +02:00
parent fa5429d829
commit 60b37d42ce
No known key found for this signature in database
2 changed files with 49 additions and 3 deletions

View File

@ -0,0 +1,45 @@
return {
-- FIXME: Comment stopped working
{ 'https://github.com/numToStr/Comment.nvim',
dependencies = { 'nvim-ts-context-commentstring' },
version = '*',
opts = {
toggler = {
line = '<leader>cc',
block = '<leader>CC'
},
opleader = {
line = '<leader>c',
block = '<leader>C'
},
extra = {
above = '<leader>cO',
below = '<leader>co',
eol = '<leader>cA',
},
},
{ 'https://github.com/windwp/nvim-autopairs',
event = 'InsertEnter',
opts = {},
},
{ 'https://github.com/L3MON4D3/LuaSnip',
version = '*',
opts = {
paths = vim.fn.stdpath('config') .. '/snippets',
},
},
{ 'https://github.com/GnikDroy/projections.nvim',
opts = {
workspaces = { '~/src', '~/documents' },
patterns = require('my.functions').project_root_markers,
},
},
{ 'https://github.com/AckslD/nvim-FeMaco.lua' },
{ 'https://github.com/danymat/neogen',
version = '*',
opts = {
snippet_engine = 'luasnip',
},
},
},
}

View File

@ -1,7 +1,7 @@
local map = require('my.functions').map local map = require('my.functions').map
local not_firenvim = require('my.functions').not_firenvim local not_firenvim = require('my.functions').not_firenvim
-- TODO: enable projections and dap plugins -- TODO: enable dap plugin
return { return {
{ 'https://github.com/folke/which-key.nvim', { 'https://github.com/folke/which-key.nvim',
version = '*', version = '*',
@ -11,11 +11,12 @@ return {
'plenary.nvim', 'plenary.nvim',
'nvim-treesitter', 'nvim-treesitter',
'nvim-web-devicons', 'nvim-web-devicons',
'projections.nvim',
}, },
config = function() config = function()
local telescope = require('telescope') local telescope = require('telescope')
local t_actions = require('telescope.actions') local t_actions = require('telescope.actions')
-- telescope.load_extension('projections') telescope.load_extension('projections')
-- telescope.load_extension('dap') -- telescope.load_extension('dap')
telescope.load_extension('fzf') telescope.load_extension('fzf')
@ -56,7 +57,7 @@ return {
map('n', '<Leader>tr', t_builtin.registers, 'registers') map('n', '<Leader>tr', t_builtin.registers, 'registers')
map('n', '<Leader>gh', t_builtin.git_bcommits, 'history of this file') map('n', '<Leader>gh', t_builtin.git_bcommits, 'history of this file')
map('n', '<F7>', t_builtin.diagnostics, 'show diagnostics') map('n', '<F7>', t_builtin.diagnostics, 'show diagnostics')
-- map('n', '<Leader>tp', telescope.extensions.projections.projections, 'projects') map('n', '<Leader>tp', telescope.extensions.projections.projections, 'projects')
map('n', '<Leader>tt', map('n', '<Leader>tt',
require("telescope._extensions.todo-comments").exports.todo, require("telescope._extensions.todo-comments").exports.todo,
'display TODO comments in project') 'display TODO comments in project')