nvim: re-add coding plugins
This commit is contained in:
parent
fa5429d829
commit
60b37d42ce
45
.config/nvim/lua/my/plugins/coding.lua
Normal file
45
.config/nvim/lua/my/plugins/coding.lua
Normal 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',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user