Public Access
Compare commits
2
Commits
bddad61696
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0679fa52f | ||
|
|
d9f92eb203 |
@@ -18,3 +18,10 @@ cc-run(){
|
|||||||
|
|
||||||
rm "${file}.out"
|
rm "${file}.out"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# https://pypi.org/project/c-formatter-42/
|
||||||
|
# install via
|
||||||
|
# pip3 install --user c-formatter-42
|
||||||
|
norm(){
|
||||||
|
c_formatter_42 *.c *.h
|
||||||
|
}
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ Useful LSP commands:
|
|||||||
- `<leader>ca` show code actions
|
- `<leader>ca` show code actions
|
||||||
- `<leader>cf` apply quick fixes
|
- `<leader>cf` apply quick fixes
|
||||||
- `<leader>cs` show source actions
|
- `<leader>cs` show source actions
|
||||||
|
- `<C-x><C-n>` manually word completion
|
||||||
|
|
||||||
Diagnostics:
|
Diagnostics:
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ local ac = vim.api.nvim_create_autocmd
|
|||||||
local aug = vim.api.nvim_create_augroup
|
local aug = vim.api.nvim_create_augroup
|
||||||
|
|
||||||
uc("W", "w|e", { desc = "write file then refresh buffer" })
|
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", {
|
ac("TextYankPost", {
|
||||||
desc = "Highlight when yanking text",
|
desc = "Highlight when yanking text",
|
||||||
@@ -13,6 +14,8 @@ ac("TextYankPost", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
uc("NormFormat", "!c_formatter_42 *.c *.h", { desc = "comply with the norm in C" })
|
||||||
|
|
||||||
-- ac("LspAttach", {
|
-- ac("LspAttach", {
|
||||||
-- desc = "Notify user about attached LSP clients",
|
-- desc = "Notify user about attached LSP clients",
|
||||||
-- group = aug("LSPOnAttach", { clear = true }),
|
-- group = aug("LSPOnAttach", { clear = true }),
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ local icons = require("mini.icons")
|
|||||||
local input = require("mini.input")
|
local input = require("mini.input")
|
||||||
local clue = require("mini.clue")
|
local clue = require("mini.clue")
|
||||||
local completion = require("mini.completion")
|
local completion = require("mini.completion")
|
||||||
local icons = require("mini.icons")
|
|
||||||
local git = require("mini.git")
|
local git = require("mini.git")
|
||||||
local diff = require("mini.diff")
|
local diff = require("mini.diff")
|
||||||
local statusline = require("mini.statusline")
|
local statusline = require("mini.statusline")
|
||||||
@@ -135,7 +134,10 @@ pairs.setup({
|
|||||||
modes = { insert = true, command = true, terminal = false },
|
modes = { insert = true, command = true, terminal = false },
|
||||||
})
|
})
|
||||||
|
|
||||||
completion.setup({})
|
completion.setup({
|
||||||
|
fallback_action = function() end,
|
||||||
|
mappings = { force_fallback = "" },
|
||||||
|
})
|
||||||
vim.keymap.set("i", "<CR>", function()
|
vim.keymap.set("i", "<CR>", function()
|
||||||
if vim.fn.complete_info({ "selected" }).selected ~= -1 then
|
if vim.fn.complete_info({ "selected" }).selected ~= -1 then
|
||||||
return "\25"
|
return "\25"
|
||||||
|
|||||||
Reference in New Issue
Block a user