Compare commits

2 Commits
Author SHA1 Message Date
romanzy313 b0679fa52f easier norm complience 2026-10-01 22:15:45 +02:00
romanzy313 d9f92eb203 remove noisy suggestions 2026-09-30 23:50:20 +02:00
4 changed files with 16 additions and 3 deletions
+7
View File
@@ -18,3 +18,10 @@ cc-run(){
rm "${file}.out"
}
# https://pypi.org/project/c-formatter-42/
# install via
# pip3 install --user c-formatter-42
norm(){
c_formatter_42 *.c *.h
}
+1
View File
@@ -97,6 +97,7 @@ Useful LSP commands:
- `<leader>ca` show code actions
- `<leader>cf` apply quick fixes
- `<leader>cs` show source actions
- `<C-x><C-n>` manually word completion
Diagnostics:
+4 -1
View File
@@ -3,7 +3,8 @@ local ac = vim.api.nvim_create_autocmd
local aug = vim.api.nvim_create_augroup
uc("W", "w|e", { desc = "write file then refresh buffer" })
uc("ProjectDiagnostics", require("romanzy.custom.project_diagnostics").run, { desc = "check project warnings and errors" })
uc("ProjectDiagnostics", require("romanzy.custom.project_diagnostics").run,
{ desc = "check project warnings and errors" })
ac("TextYankPost", {
desc = "Highlight when yanking text",
@@ -13,6 +14,8 @@ ac("TextYankPost", {
end,
})
uc("NormFormat", "!c_formatter_42 *.c *.h", { desc = "comply with the norm in C" })
-- ac("LspAttach", {
-- desc = "Notify user about attached LSP clients",
-- group = aug("LSPOnAttach", { clear = true }),
@@ -10,7 +10,6 @@ local icons = require("mini.icons")
local input = require("mini.input")
local clue = require("mini.clue")
local completion = require("mini.completion")
local icons = require("mini.icons")
local git = require("mini.git")
local diff = require("mini.diff")
local statusline = require("mini.statusline")
@@ -135,7 +134,10 @@ pairs.setup({
modes = { insert = true, command = true, terminal = false },
})
completion.setup({})
completion.setup({
fallback_action = function() end,
mappings = { force_fallback = "" },
})
vim.keymap.set("i", "<CR>", function()
if vim.fn.complete_info({ "selected" }).selected ~= -1 then
return "\25"