Add files
This commit is contained in:
parent
b115814916
commit
95a87d9a4d
19 changed files with 821 additions and 617 deletions
15
lua/custom/plugins/autopairs.lua
Normal file
15
lua/custom/plugins/autopairs.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
"windwp/nvim-autopairs",
|
||||
-- Optional dependency
|
||||
dependencies = { 'hrsh7th/nvim-cmp' },
|
||||
config = function()
|
||||
require("nvim-autopairs").setup {}
|
||||
-- If you want to automatically add `(` after selecting a function or method
|
||||
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||
local cmp = require('cmp')
|
||||
cmp.event:on(
|
||||
'confirm_done',
|
||||
cmp_autopairs.on_confirm_done()
|
||||
)
|
||||
end,
|
||||
}
|
||||
15
lua/custom/plugins/filetree.lua
Normal file
15
lua/custom/plugins/filetree.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- Unless you are still migrating, remove the deprecated commands from v1.x
|
||||
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
|
||||
|
||||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
version = "*",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function()
|
||||
require('neo-tree').setup {}
|
||||
end,
|
||||
}
|
||||
6
lua/custom/plugins/lazygit.lua
Normal file
6
lua/custom/plugins/lazygit.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
"kdheepak/lazygit.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
}
|
||||
6
lua/custom/plugins/magic-bang.lua
Normal file
6
lua/custom/plugins/magic-bang.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
"susensio/magic-bang.nvim",
|
||||
config = true,
|
||||
event = "BufNewFile",
|
||||
cmd = "Bang",
|
||||
}
|
||||
3
lua/custom/plugins/nvim-markdown.lua
Normal file
3
lua/custom/plugins/nvim-markdown.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
"ixru/nvim-markdown"
|
||||
}
|
||||
10
lua/custom/plugins/nvim-surround.lua
Normal file
10
lua/custom/plugins/nvim-surround.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
"kylechui/nvim-surround",
|
||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("nvim-surround").setup({
|
||||
-- Configuration here, or leave empty to use defaults
|
||||
})
|
||||
end
|
||||
}
|
||||
12
lua/custom/plugins/ruff-lsp.lua
Normal file
12
lua/custom/plugins/ruff-lsp.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
"astral-sh/ruff-lsp",
|
||||
config = function()
|
||||
local on_attach = function(client, bufnr)
|
||||
client.server_capabilities.hoverProvider = false
|
||||
end
|
||||
|
||||
require("lspconfig").ruff_lsp.setup {
|
||||
on_attach = on_attach,
|
||||
}
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue