Skip to content

Commit 9664fc4

Browse files
committed
gDef + py linting
1 parent f2a1695 commit 9664fc4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ require('lazy').setup({
566566
-- For example, in C this would take you to the header.
567567
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
568568

569+
map('gDef', vim.lsp.buf.hover, '[G]oto [Def]inition')
570+
569571
-- Show LSP message
570572
map('gM', vim.diagnostic.open_float, '[G]oto [M]essage')
571573

lua/kickstart/plugins/lint.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ return {
77
local lint = require 'lint'
88
lint.linters_by_ft = {
99
markdown = { 'markdownlint' },
10+
python = { 'flake8' },
1011
}
1112

1213
-- To allow other plugins to add linters to require('lint').linters_by_ft,

0 commit comments

Comments
 (0)