Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
280 changes: 125 additions & 155 deletions init.lua

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lua/custom/plugins/fugitive.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
return {
'tpope/vim-fugitive',
}
10 changes: 10 additions & 0 deletions lua/custom/plugins/love2d.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
return {
'S1M0N38/love2d.nvim',
event = 'VeryLazy',
opts = {},
keys = {
{ '<leader>v', ft = 'lua', desc = 'LÖVE' },
{ '<leader>vv', '<cmd>LoveRun<cr>', ft = 'lua', desc = 'Run LÖVE' },
{ '<leader>vs', '<cmd>LoveStop<cr>', ft = 'lua', desc = 'Stop LÖVE' },
},
}
9 changes: 9 additions & 0 deletions lua/custom/plugins/markview.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
return {
'OXY2DEV/markview.nvim',
lazy = false,

dependencies = {
'nvim-treesitter/nvim-treesitter',
'nvim-tree/nvim-web-devicons',
},
}
5 changes: 5 additions & 0 deletions lua/custom/plugins/mini-jump.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
return {
'echasnovski/mini.jump',
version = '*',
opts = {},
}
18 changes: 18 additions & 0 deletions lua/custom/plugins/nvim-treesitter-context.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
return {
'nvim-treesitter/nvim-treesitter-context',
opts = {
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
multiwindow = false, -- Enable multiwindow support.
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.
line_numbers = true,
multiline_threshold = 20, -- Maximum number of lines to show for a single context
trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline'
-- Separator between context and content. Should be a single character string, like '-'.
-- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
separator = nil,
zindex = 20, -- The Z-index of the context window
on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching
},
}
20 changes: 20 additions & 0 deletions lua/custom/plugins/snacks.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
return {
'folke/snacks.nvim',
priority = 1000,
lazy = false,

opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
animate = { enabled = true },
bigfile = { enabled = true },
bufdelete = { enabled = true },
dim = { enabled = true },
notifier = { enabled = true },
notify = { enabled = true },
rename = { enabled = true },
quickfile = { enabled = true },
scroll = { enabled = true },
},
}
14 changes: 14 additions & 0 deletions lua/custom/plugins/ts-autotag.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
return {
{
'windwp/nvim-ts-autotag',
event = 'VeryLazy',
opts = {
autotag = {
enable = true,
enable_rename = true,
enable_close = true,
enable_close_on_slash = false,
},
},
},
}
5 changes: 5 additions & 0 deletions lua/custom/plugins/typescript-tools.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
return {
'pmizio/typescript-tools.nvim',
dependencies = { 'nvim-lua/plenary.nvim', 'neovim/nvim-lspconfig' },
opts = {},
}
46 changes: 46 additions & 0 deletions lua/custom/plugins/vim-test.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
return {
'vim-test/vim-test',
lazy = false,
config = function()
require('which-key').add {
{ '<leader>r', name = '[R]un tests', desc = 'which_key_ignore' },
}
end,
keys = {
{
'<leader>rt',
function()
vim.cmd.TestNearest()
end,
desc = '[R]un nearest',
},
{
'<leader>rT',
function()
vim.cmd.TestFile()
end,
desc = '[R]un file',
},
{
'<leader>rs',
function()
vim.cmd.TestSuite()
end,
desc = '[R]un [S]uite',
},
{
'<leader>rl',
function()
vim.cmd.TestLast()
end,
desc = '[R]un [L]ast',
},
{
'<leader>rv',
function()
vim.cmd.TestVisit()
end,
desc = '[R]un [V]isit',
},
},
}
1 change: 1 addition & 0 deletions lua/custom/plugins/vimtex.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return {}
63 changes: 63 additions & 0 deletions lua/custom/plugins/wilder.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
return {
'gelguy/wilder.nvim',
dependencies = {
'romgrk/fzy-lua-native',
},
config = function()
local wilder = require 'wilder'
wilder.setup { modes = { ':', '/', '?' } }
-- Disable Python remote plugin
wilder.set_option('use_python_remote_plugin', 0)

wilder.set_option('pipeline', {
wilder.branch(
wilder.cmdline_pipeline {
fuzzy = 1,
fuzzy_filter = wilder.lua_fzy_filter(),
},
wilder.vim_search_pipeline()
),
})

local gradient = {
'#f4468f',
'#fd4a85',
'#ff507a',
'#ff566f',
'#ff5e63',
'#ff6658',
'#ff704e',
'#ff7a45',
'#ff843d',
'#ff9036',
'#f89b31',
'#efa72f',
'#e6b32e',
'#dcbe30',
'#d2c934',
'#c8d43a',
'#bfde43',
'#b6e84e',
'#aff05b',
}

for i, fg in ipairs(gradient) do
gradient[i] = wilder.make_hl('WilderGradient' .. i, 'Pmenu', { { a = 1 }, { a = 1 }, { foreground = fg } })
end

wilder.set_option(
'renderer',
wilder.wildmenu_renderer {
highlights = {
gradient = gradient, -- must be set
-- selected_gradient key can be set to apply gradient highlighting for the selected candidate.
},

highlighter = wilder.highlighter_with_gradient {
wilder.lua_pcre2_highlighter(), -- requires `luarocks install pcre2`
wilder.lua_fzy_highlighter(), -- requires fzy-lua-native vim plugin found
},
}
)
end,
}
90 changes: 82 additions & 8 deletions lua/kickstart/plugins/debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,60 @@ return {
'jay-babu/mason-nvim-dap.nvim',

-- Add your own debuggers here
'leoluz/nvim-dap-go',
'mfussenegger/nvim-dap-python',
},
keys = {
-- Basic debugging keymaps, feel free to change to your liking!
{
'<F5>',
function()
require('dap').continue()
end,
desc = 'Debug: Start/Continue',
},
{
'<F1>',
function()
require('dap').step_into()
end,
desc = 'Debug: Step Into',
},
{
'<F2>',
function()
require('dap').step_over()
end,
desc = 'Debug: Step Over',
},
{
'<F3>',
function()
require('dap').step_out()
end,
desc = 'Debug: Step Out',
},
{
'<leader>b',
function()
require('dap').toggle_breakpoint()
end,
desc = 'Debug: Toggle Breakpoint',
},
{
'<leader>B',
function()
require('dap').set_breakpoint(vim.fn.input 'Breakpoint condition: ')
end,
desc = 'Debug: Set Breakpoint',
},
-- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception.
{
'<F7>',
function()
require('dapui').toggle()
end,
desc = 'Debug: See last session result.',
},
},
keys = {
-- Basic debugging keymaps, feel free to change to your liking!
Expand Down Expand Up @@ -94,7 +147,7 @@ return {
-- online, please don't ask me how to install them :)
ensure_installed = {
-- Update this to ensure that you have the debuggers for the langs you want
'delve',
'debugpy',
},
}

Expand All @@ -120,6 +173,27 @@ return {
},
}

-- Change breakpoint icons
-- vim.api.nvim_set_hl(0, 'DapBreak', { fg = '#e51400' })
-- vim.api.nvim_set_hl(0, 'DapStop', { fg = '#ffcc00' })
-- local breakpoint_icons = vim.g.have_nerd_font
-- and { Breakpoint = '', BreakpointCondition = '', BreakpointRejected = '', LogPoint = '', Stopped = '' }
-- or { Breakpoint = '●', BreakpointCondition = '⊜', BreakpointRejected = '⊘', LogPoint = '◆', Stopped = '⭔' }
-- for type, icon in pairs(breakpoint_icons) do
-- local tp = 'Dap' .. type
-- local hl = (type == 'Stopped') and 'DapStop' or 'DapBreak'
-- vim.fn.sign_define(tp, { text = icon, texthl = hl, numhl = hl })
-- end
-- Basic debugging keymaps, feel free to change to your liking!
vim.keymap.set('n', '<F5>', dap.continue, { desc = 'Debug: Start/Continue' })
vim.keymap.set('n', '<F1>', dap.step_into, { desc = 'Debug: Step Into' })
vim.keymap.set('n', '<F2>', dap.step_over, { desc = 'Debug: Step Over' })
vim.keymap.set('n', '<F3>', dap.step_out, { desc = 'Debug: Step Out' })
vim.keymap.set('n', '<leader>b', dap.toggle_breakpoint, { desc = 'Debug: Toggle Breakpoint' })
vim.keymap.set('n', '<leader>B', function()
dap.set_breakpoint(vim.fn.input 'Breakpoint condition: ')
end, { desc = 'Debug: Set Breakpoint' })

-- Change breakpoint icons
-- vim.api.nvim_set_hl(0, 'DapBreak', { fg = '#e51400' })
-- vim.api.nvim_set_hl(0, 'DapStop', { fg = '#ffcc00' })
Expand All @@ -136,12 +210,12 @@ return {
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
dap.listeners.before.event_exited['dapui_config'] = dapui.close

-- Install golang specific config
require('dap-go').setup {
delve = {
-- On Windows delve must be run attached or it crashes.
-- See https://github.com/leoluz/nvim-dap-go/blob/main/README.md#configuring
detached = vim.fn.has 'win32' == 0,
dap.configurations.python = {
{
type = 'python',
request = 'launch',
name = 'Launch file',
program = '${file}',
},
}
end,
Expand Down
24 changes: 24 additions & 0 deletions lua/kickstart/plugins/gitsigns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,30 @@ return {
{
'lewis6991/gitsigns.nvim',
opts = {
current_line_blame = true,
current_line_blame_opts = {
virt_text = true,
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
delay = 300,
ignore_whitespace = false,
virt_text_priority = 100,
},

signs = {
add = { text = '┃ ' },
change = { text = '┃ ' },
delete = { text = '' },
topdelete = { text = '' },
changedelete = { text = '▎' },
untracked = { text = '▎' },
},
signs_staged = {
add = { text = '▎' },
change = { text = '▎' },
delete = { text = '' },
topdelete = { text = '' },
changedelete = { text = '▎' },
},
on_attach = function(bufnr)
local gitsigns = require 'gitsigns'

Expand Down
26 changes: 26 additions & 0 deletions lua/kickstart/plugins/indent_line.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,32 @@ return {
-- Enable `lukas-reineke/indent-blankline.nvim`
-- See `:help ibl`
main = 'ibl',
config = function()
local highlight = {
'RainbowRed',
'RainbowYellow',
'RainbowBlue',
'RainbowOrange',
'RainbowGreen',
'RainbowViolet',
'RainbowCyan',
}

local hooks = require 'ibl.hooks'
-- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, 'RainbowRed', { fg = '#E06C75' })
vim.api.nvim_set_hl(0, 'RainbowYellow', { fg = '#E5C07B' })
vim.api.nvim_set_hl(0, 'RainbowBlue', { fg = '#61AFEF' })
vim.api.nvim_set_hl(0, 'RainbowOrange', { fg = '#D19A66' })
vim.api.nvim_set_hl(0, 'RainbowGreen', { fg = '#98C379' })
vim.api.nvim_set_hl(0, 'RainbowViolet', { fg = '#C678DD' })
vim.api.nvim_set_hl(0, 'RainbowCyan', { fg = '#56B6C2' })
end)

require('ibl').setup { indent = { highlight = highlight } }
end,
opts = {},
},
}
Loading
Loading