Skip to content

Commit 83f998b

Browse files
authored
Merge branch 'nvim-lua:master' into master
2 parents 86e62b5 + de44f49 commit 83f998b

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
@@ -267,9 +267,8 @@ require('lazy').setup({
267267
-- which loads which-key before all the UI elements are loaded. Events can be
268268
-- normal autocommands events (`:help autocmd-events`).
269269
--
270-
-- Then, because we use the `config` key, the configuration only runs
271-
-- after the plugin has been loaded:
272-
-- config = function() ... end
270+
-- Then, because we use the `opts` key (recommended), the configuration runs
271+
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
273272

274273
{ -- Useful plugin to show you pending keybinds.
275274
'folke/which-key.nvim',
@@ -279,7 +278,7 @@ require('lazy').setup({
279278
-- set icon mappings to true if you have a Nerd Font
280279
mappings = vim.g.have_nerd_font,
281280
-- If you are using a Nerd Font: set icons.keys to an empty table which will use the
282-
-- default whick-key.nvim defined Nerd Font icons, otherwise define a string table
281+
-- default which-key.nvim defined Nerd Font icons, otherwise define a string table
283282
keys = vim.g.have_nerd_font and {} or {
284283
Up = '<Up> ',
285284
Down = '<Down> ',
@@ -590,11 +589,12 @@ require('lazy').setup({
590589

591590
-- Change diagnostic symbols in the sign column (gutter)
592591
-- if vim.g.have_nerd_font then
593-
-- local signs = { Error = '', Warn = '', Hint = '', Info = '' }
592+
-- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
593+
-- local diagnostic_signs = {}
594594
-- for type, icon in pairs(signs) do
595-
-- local hl = 'DiagnosticSign' .. type
596-
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
595+
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon
597596
-- end
597+
-- vim.diagnostic.config { signs = { text = diagnostic_signs } }
598598
-- end
599599

600600
-- LSP servers and clients are able to communicate to each other what features they support.
@@ -628,8 +628,8 @@ require('lazy').setup({
628628
--
629629

630630
lua_ls = {
631-
-- cmd = {...},
632-
-- filetypes = { ...},
631+
-- cmd = { ... },
632+
-- filetypes = { ... },
633633
-- capabilities = {},
634634
settings = {
635635
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)