gDef + py linting

This commit is contained in:
Joe Sinopoli 2025-03-11 15:55:48 -04:00
parent f2a16958d9
commit 9664fc4ff4
2 changed files with 3 additions and 0 deletions

View File

@ -566,6 +566,8 @@ require('lazy').setup({
-- For example, in C this would take you to the header.
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
map('gDef', vim.lsp.buf.hover, '[G]oto [Def]inition')
-- Show LSP message
map('gM', vim.diagnostic.open_float, '[G]oto [M]essage')

View File

@ -7,6 +7,7 @@ return {
local lint = require 'lint'
lint.linters_by_ft = {
markdown = { 'markdownlint' },
python = { 'flake8' },
}
-- To allow other plugins to add linters to require('lint').linters_by_ft,