Nvim lint dmypy updates
This commit is contained in:
parent
cc74981997
commit
534a0f3307
|
@ -1,22 +1,22 @@
|
||||||
-- Copilot
|
-- Copilot
|
||||||
return {
|
-- return {
|
||||||
"zbirenbaum/copilot.lua",
|
-- "zbirenbaum/copilot.lua",
|
||||||
cmd = "Copilot",
|
-- cmd = "Copilot",
|
||||||
event = "InsertEnter",
|
-- event = "InsertEnter",
|
||||||
opts = {
|
-- opts = {
|
||||||
suggestion = {
|
-- suggestion = {
|
||||||
auto_trigger = true,
|
-- auto_trigger = true,
|
||||||
auto_refresh = true,
|
-- auto_refresh = true,
|
||||||
keymap = {
|
-- keymap = {
|
||||||
accept = "<leader><Tab>",
|
-- accept = "<leader><Tab>",
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
filetypes = {
|
-- filetypes = {
|
||||||
markdown = true,
|
-- markdown = true,
|
||||||
tex = true,
|
-- tex = true,
|
||||||
}
|
-- }
|
||||||
}
|
-- }
|
||||||
}
|
-- }
|
||||||
|
|
||||||
-- Supermaven
|
-- Supermaven
|
||||||
-- return {
|
-- return {
|
||||||
|
@ -31,13 +31,13 @@ return {
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
-- Neocodium
|
-- Neocodium
|
||||||
-- return {
|
return {
|
||||||
-- "monkoose/neocodeium",
|
"monkoose/neocodeium",
|
||||||
-- event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
-- config = function()
|
config = function()
|
||||||
-- local neocodeium = require("neocodeium")
|
local neocodeium = require("neocodeium")
|
||||||
-- neocodeium.setup()
|
neocodeium.setup()
|
||||||
-- vim.keymap.set("i", "<leader><tab>", neocodeium.accept)
|
vim.keymap.set("i", "<leader><tab>", neocodeium.accept)
|
||||||
-- vim.keymap.set("i", "<leader>a", function () neocodeium.cycle_or_complete(1) end)
|
vim.keymap.set("i", "<leader>a", function () neocodeium.cycle_or_complete(1) end)
|
||||||
-- end,
|
end,
|
||||||
-- }
|
}
|
||||||
|
|
|
@ -164,9 +164,11 @@ return {
|
||||||
},
|
},
|
||||||
filetypes = filetypes
|
filetypes = filetypes
|
||||||
},
|
},
|
||||||
|
bashls = {
|
||||||
|
filetypes = {"sh", "bash", "zsh"},
|
||||||
|
},
|
||||||
texlab = {},
|
texlab = {},
|
||||||
nixd = {},
|
nixd = {},
|
||||||
bashls = {},
|
|
||||||
csharp_ls = {},
|
csharp_ls = {},
|
||||||
cmake = {},
|
cmake = {},
|
||||||
jsonls = {},
|
jsonls = {},
|
||||||
|
|
|
@ -1,6 +1,20 @@
|
||||||
return {
|
return {
|
||||||
"mfussenegger/nvim-lint",
|
"mfussenegger/nvim-lint",
|
||||||
config = function ()
|
config = function ()
|
||||||
|
local dmypy = require("lint").linters.dmypy
|
||||||
|
dmypy.args = {
|
||||||
|
"run",
|
||||||
|
'--timeout',
|
||||||
|
'50000',
|
||||||
|
'--',
|
||||||
|
'--show-column-numbers',
|
||||||
|
'--show-error-end',
|
||||||
|
'--hide-error-context',
|
||||||
|
'--no-color-output',
|
||||||
|
'--no-error-summary',
|
||||||
|
'--no-pretty',
|
||||||
|
"--use-fine-grained-cache",
|
||||||
|
}
|
||||||
require("lint").linters_by_ft = {
|
require("lint").linters_by_ft = {
|
||||||
python = {"dmypy"},
|
python = {"dmypy"},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue