Linter and Correction update
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 20s Details

This commit is contained in:
Yannick Reiß 2024-07-08 20:28:54 +02:00
parent 39b9d351c0
commit 7e89acf09f
3 changed files with 34 additions and 20 deletions

View File

@ -98,3 +98,31 @@ vim.cmd([[
autocmd BufWritePost *.v lua vim.lsp.buf.format({ async = false }) autocmd BufWritePost *.v lua vim.lsp.buf.format({ async = false })
]]) ]])
-- Ale configuration
local linters = {
python = { "pylint" },
vim = { "vint" },
cpp = { "clang" },
c = { "clang" },
markdown = { "languagetool" },
latex = { "languagetool" },
tex = { "languagetool" },
ada = { "gnat" },
}
vim.g.ale_linters = linters
vim.g.ale_fix_on_save = 0
vim.g.ale_ada_gpr_project_file = "default.gpr"
vim.g.ale_fixers = {
ada = { "gcc", "gnat" },
asm = { "gcc" },
bash = { "bashate" },
c = { "astyle" },
latex = { "texlab" },
lua = { "stylua" },
markdown = { "prettier", "pandoc" },
}
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
vim.keymap.set("n", "<leader>ld", ":ALEDetail<CR>")

View File

@ -65,19 +65,5 @@ return {
{ "tzachar/cmp-fuzzy-buffer", requires = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } }, { "tzachar/cmp-fuzzy-buffer", requires = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } },
"jaredgorski/spacecamp", "jaredgorski/spacecamp",
"voldikss/vim-floaterm", "voldikss/vim-floaterm",
-- { "dense-analysis/ale",
-- "lervag/vimtex",
-- lazy = false, -- we don't want to lazy load VimTeX
-- -- tag = "v2.15", -- uncomment to pin to a specific release
-- init = function()
-- -- VimTeX configuration goes here, e.g.
-- vim.o.foldmethod = "expr"
-- vim.o.foldexpr = "vimtex#fold#level(v:lnum)"
-- vim.o.foldtext = "vimtex#fold#text()"
-- vim.o.foldlevel = 1
-- vim.g.vimtex_view_general_viewer = "okular"
-- vim.g.vimtex_view_general_options = "--unique file:@pdf#src:@line@tex"
-- vim.g.vimtex_fold_enabled = 1
-- end,
--},
} }