added custom configuration
This commit is contained in:
parent
2abcb39fae
commit
19b91ec1c5
9 changed files with 232 additions and 39 deletions
13
lua/custom/plugins/catppuccin.lua
Normal file
13
lua/custom/plugins/catppuccin.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
'catppuccin/nvim',
|
||||
name = 'catppuccin',
|
||||
priority = 1000,
|
||||
opts = {},
|
||||
config = function()
|
||||
require('catppuccin').setup {}
|
||||
vim.cmd.colorscheme 'catppuccin-macchiato'
|
||||
vim.o.cursorline = true
|
||||
vim.wo.signcolumn = 'auto'
|
||||
vim.opt.termguicolors = true
|
||||
end,
|
||||
}
|
||||
21
lua/custom/plugins/lazygit.lua
Normal file
21
lua/custom/plugins/lazygit.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
-- nvim v0.8.0
|
||||
return {
|
||||
'kdheepak/lazygit.nvim',
|
||||
lazy = true,
|
||||
cmd = {
|
||||
'LazyGit',
|
||||
'LazyGitConfig',
|
||||
'LazyGitCurrentFile',
|
||||
'LazyGitFilter',
|
||||
'LazyGitFilterCurrentFile',
|
||||
},
|
||||
-- optional for floating window border decoration
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
},
|
||||
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
||||
-- order to load the plugin when the command is run for the first time
|
||||
keys = {
|
||||
{ '<leader>lg', '<cmd>LazyGit<cr>', desc = 'LazyGit' },
|
||||
},
|
||||
}
|
||||
11
lua/custom/plugins/markview.lua
Normal file
11
lua/custom/plugins/markview.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- For `plugins/markview.lua` users.
|
||||
return {
|
||||
'OXY2DEV/markview.nvim',
|
||||
lazy = false,
|
||||
|
||||
-- For blink.cmp's completion
|
||||
-- source
|
||||
-- dependencies = {
|
||||
-- "saghen/blink.cmp"
|
||||
-- },
|
||||
}
|
||||
12
lua/custom/plugins/neogen.lua
Normal file
12
lua/custom/plugins/neogen.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'danymat/neogen',
|
||||
dependencies = 'nvim-treesitter/nvim-treesitter',
|
||||
config = true,
|
||||
-- config = function ()
|
||||
-- require('neogen').setup {
|
||||
-- enabled = true,
|
||||
-- }
|
||||
-- vim.g.loaded_netrw = 1
|
||||
-- vim.g.loaded_netrwPlugin = 1
|
||||
-- end
|
||||
}
|
||||
19
lua/custom/plugins/neotest.lua
Normal file
19
lua/custom/plugins/neotest.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
'nvim-neotest/neotest',
|
||||
dependencies = {
|
||||
'nvim-neotest/nvim-nio',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'antoinemadec/FixCursorHold.nvim',
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
},
|
||||
config = function()
|
||||
require('neotest').setup {
|
||||
adapters = {
|
||||
require 'neotest-python' {
|
||||
dap = { justMyCode = false },
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
keys = { { '<leader>n', '<cmd>Neotest summary<CR>', desc = '[N]eotest Summary' } },
|
||||
}
|
||||
44
lua/custom/plugins/nvimtree.lua
Normal file
44
lua/custom/plugins/nvimtree.lua
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
return {
|
||||
'nvim-tree/nvim-tree.lua',
|
||||
version = '*',
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
},
|
||||
config = function()
|
||||
local HEIGHT_RATIO = 0.8
|
||||
local WIDTH_RATIO = 0.5
|
||||
require('nvim-tree').setup {
|
||||
view = {
|
||||
float = {
|
||||
enable = true,
|
||||
open_win_config = function()
|
||||
local screen_w = vim.opt.columns:get()
|
||||
local screen_h = vim.opt.lines:get() - vim.opt.cmdheight:get()
|
||||
local window_w = screen_w * WIDTH_RATIO
|
||||
local window_h = screen_h * HEIGHT_RATIO
|
||||
local window_w_int = math.floor(window_w)
|
||||
local window_h_int = math.floor(window_h)
|
||||
local center_x = (screen_w - window_w) / 2
|
||||
local center_y = ((vim.opt.lines:get() - window_h) / 2) - vim.opt.cmdheight:get()
|
||||
return {
|
||||
border = 'rounded',
|
||||
relative = 'editor',
|
||||
row = center_y,
|
||||
col = center_x,
|
||||
width = window_w_int,
|
||||
height = window_h_int,
|
||||
}
|
||||
end,
|
||||
},
|
||||
width = function()
|
||||
return math.floor(vim.opt.columns:get() * WIDTH_RATIO)
|
||||
end,
|
||||
},
|
||||
}
|
||||
end,
|
||||
opts = function()
|
||||
local mappings = { { '<leader>e', '<cmd>NvimTreeOpen<CR>', desc = 'File [E]xplorer' } }
|
||||
require('which-key').add(mappings)
|
||||
end,
|
||||
}
|
||||
14
lua/custom/plugins/sniprun.lua
Normal file
14
lua/custom/plugins/sniprun.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
'michaelb/sniprun',
|
||||
branch = 'master',
|
||||
|
||||
build = 'sh install.sh',
|
||||
-- do 'sh install.sh 1' if you want to force compile locally
|
||||
-- (instead of fetching a binary from the github release). Requires Rust >= 1.65
|
||||
|
||||
config = function()
|
||||
require('sniprun').setup {
|
||||
-- your options
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue