gDef + py linting
This commit is contained in:
parent
f2a16958d9
commit
9664fc4ff4
2
init.lua
2
init.lua
|
@ -566,6 +566,8 @@ require('lazy').setup({
|
||||||
-- For example, in C this would take you to the header.
|
-- For example, in C this would take you to the header.
|
||||||
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||||
|
|
||||||
|
map('gDef', vim.lsp.buf.hover, '[G]oto [Def]inition')
|
||||||
|
|
||||||
-- Show LSP message
|
-- Show LSP message
|
||||||
map('gM', vim.diagnostic.open_float, '[G]oto [M]essage')
|
map('gM', vim.diagnostic.open_float, '[G]oto [M]essage')
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ return {
|
||||||
local lint = require 'lint'
|
local lint = require 'lint'
|
||||||
lint.linters_by_ft = {
|
lint.linters_by_ft = {
|
||||||
markdown = { 'markdownlint' },
|
markdown = { 'markdownlint' },
|
||||||
|
python = { 'flake8' },
|
||||||
}
|
}
|
||||||
|
|
||||||
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
||||||
|
|
Loading…
Reference in New Issue