Skip to content

Commit 34e9051

Browse files
realfreshrealfresh
authored andcommitted
Merge branch 'master' of github.com:realfresh/kickstart.nvim
2 parents 0a47d77 + 83f998b commit 34e9051

File tree

3 files changed

+64
-33
lines changed

3 files changed

+64
-33
lines changed

init.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,8 @@ require('lazy').setup({
353353
-- which loads which-key before all the UI elements are loaded. Events can be
354354
-- normal autocommands events (`:help autocmd-events`).
355355
--
356-
-- Then, because we use the `config` key, the configuration only runs
357-
-- after the plugin has been loaded:
358-
-- config = function() ... end
356+
-- Then, because we use the `opts` key (recommended), the configuration runs
357+
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
359358

360359
{ -- Useful plugin to show you pending keybinds.
361360
'folke/which-key.nvim',
@@ -365,7 +364,7 @@ require('lazy').setup({
365364
-- set icon mappings to true if you have a Nerd Font
366365
mappings = vim.g.have_nerd_font,
367366
-- If you are using a Nerd Font: set icons.keys to an empty table which will use the
368-
-- default whick-key.nvim defined Nerd Font icons, otherwise define a string table
367+
-- default which-key.nvim defined Nerd Font icons, otherwise define a string table
369368
keys = vim.g.have_nerd_font and {} or {
370369
Up = '<Up> ',
371370
Down = '<Down> ',
@@ -676,11 +675,12 @@ require('lazy').setup({
676675

677676
-- Change diagnostic symbols in the sign column (gutter)
678677
-- if vim.g.have_nerd_font then
679-
-- local signs = { Error = '', Warn = '', Hint = '', Info = '' }
678+
-- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
679+
-- local diagnostic_signs = {}
680680
-- for type, icon in pairs(signs) do
681-
-- local hl = 'DiagnosticSign' .. type
682-
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
681+
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon
683682
-- end
683+
-- vim.diagnostic.config { signs = { text = diagnostic_signs } }
684684
-- end
685685

686686
-- LSP servers and clients are able to communicate to each other what features they support.
@@ -714,8 +714,8 @@ require('lazy').setup({
714714
--
715715

716716
lua_ls = {
717-
-- cmd = {...},
718-
-- filetypes = { ...},
717+
-- cmd = { ... },
718+
-- filetypes = { ... },
719719
-- capabilities = {},
720720
settings = {
721721
Lua = {

lua/kickstart/plugins/debug.lua

Lines changed: 53 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,59 @@ return {
2424
-- Add your own debuggers here
2525
'leoluz/nvim-dap-go',
2626
},
27-
keys = function(_, keys)
28-
local dap = require 'dap'
29-
local dapui = require 'dapui'
30-
return {
31-
-- Basic debugging keymaps, feel free to change to your liking!
32-
{ '<F5>', dap.continue, desc = 'Debug: Start/Continue' },
33-
{ '<F1>', dap.step_into, desc = 'Debug: Step Into' },
34-
{ '<F2>', dap.step_over, desc = 'Debug: Step Over' },
35-
{ '<F3>', dap.step_out, desc = 'Debug: Step Out' },
36-
{ '<leader>b', dap.toggle_breakpoint, desc = 'Debug: Toggle Breakpoint' },
37-
{
38-
'<leader>B',
39-
function()
40-
dap.set_breakpoint(vim.fn.input 'Breakpoint condition: ')
41-
end,
42-
desc = 'Debug: Set Breakpoint',
43-
},
44-
-- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception.
45-
{ '<F7>', dapui.toggle, desc = 'Debug: See last session result.' },
46-
unpack(keys),
47-
}
48-
end,
27+
keys = {
28+
-- Basic debugging keymaps, feel free to change to your liking!
29+
{
30+
'<F5>',
31+
function()
32+
require('dap').continue()
33+
end,
34+
desc = 'Debug: Start/Continue',
35+
},
36+
{
37+
'<F1>',
38+
function()
39+
require('dap').step_into()
40+
end,
41+
desc = 'Debug: Step Into',
42+
},
43+
{
44+
'<F2>',
45+
function()
46+
require('dap').step_over()
47+
end,
48+
desc = 'Debug: Step Over',
49+
},
50+
{
51+
'<F3>',
52+
function()
53+
require('dap').step_out()
54+
end,
55+
desc = 'Debug: Step Out',
56+
},
57+
{
58+
'<leader>b',
59+
function()
60+
require('dap').toggle_breakpoint()
61+
end,
62+
desc = 'Debug: Toggle Breakpoint',
63+
},
64+
{
65+
'<leader>B',
66+
function()
67+
require('dap').set_breakpoint(vim.fn.input 'Breakpoint condition: ')
68+
end,
69+
desc = 'Debug: Set Breakpoint',
70+
},
71+
-- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception.
72+
{
73+
'<F7>',
74+
function()
75+
require('dapui').toggle()
76+
end,
77+
desc = 'Debug: See last session result.',
78+
},
79+
},
4980
config = function()
5081
local dap = require 'dap'
5182
local dapui = require 'dapui'

lua/kickstart/plugins/gitsigns.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ return {
3636
-- visual mode
3737
map('v', '<leader>hs', function()
3838
gitsigns.stage_hunk { vim.fn.line '.', vim.fn.line 'v' }
39-
end, { desc = 'stage git hunk' })
39+
end, { desc = 'git [s]tage hunk' })
4040
map('v', '<leader>hr', function()
4141
gitsigns.reset_hunk { vim.fn.line '.', vim.fn.line 'v' }
42-
end, { desc = 'reset git hunk' })
42+
end, { desc = 'git [r]eset hunk' })
4343
-- normal mode
4444
map('n', '<leader>hs', gitsigns.stage_hunk, { desc = 'git [s]tage hunk' })
4545
map('n', '<leader>hr', gitsigns.reset_hunk, { desc = 'git [r]eset hunk' })

0 commit comments

Comments
 (0)