From b28d588bf1b88668d7b75aa6a3a0e93e577450f1 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sun, 14 May 2023 20:49:11 +0700 Subject: [PATCH] chore: clang-format from macports for neoformat --- data/nvim/init.lua | 15 +++++++++++++++ data/zsh/extra-zshrc | 11 ----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index d967a73..3abe7e1 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -58,7 +58,22 @@ vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 -- Use plugin neoformat +vim.g.neoformat_cpp_clangformatmacports = { + exe = "clang-format-mp-15", + args = { "-style=file" }, +} + +vim.g.neoformat_enabled_cpp = { "clangformatmacports" } + +vim.g.neoformat_c_clangformatmacports = { + exe = "clang-format-mp-15", + args = { "-style=file" }, +} + +vim.g.neoformat_enabled_c = { "clangformatmacports" } + vim.g.neoformat_enabled_go = { "gofumpt" } + vim.g.shfmt_opt = "-ci" -- Use plugin vim-go diff --git a/data/zsh/extra-zshrc b/data/zsh/extra-zshrc index 6d8420d..c8eb5e5 100644 --- a/data/zsh/extra-zshrc +++ b/data/zsh/extra-zshrc @@ -92,17 +92,6 @@ if command -v nnn &>/dev/null; then export NNN_PLUG="p:-preview-tui" fi -# TODO: Randomly choose which fun way to start -# https://github.com/dylanaraps/pfetch -# if command -v pfetch &>/dev/null; then -# pfetch -# fi - -# https://github.com/shlomif/fortune-mod -# if command -v fortune &>/dev/null; then -# fortune -# fi - # https://gitlab.com/phoneybadger/pokemon-colorscripts if command -v pokemon-colorscripts &>/dev/null; then pokemon-colorscripts --no-title -r 1-8