]> git repos ~mattia - some.files.git/commitdiff
NVIM && spellen
authorMattia Cabrini <dev@mattiacabrini.com>
Fri, 14 Feb 2025 23:27:12 +0000 (00:27 +0100)
committerMattia Cabrini <dev@mattiacabrini.com>
Fri, 14 Feb 2025 23:27:12 +0000 (00:27 +0100)
.bash_aliases
.config/nvim/init.lua [new file with mode: 0644]
.config/nvim/lua/make/init.lua [new file with mode: 0644]
.gitignore
README.md

index efc6cc4af71e1b499055c7d4c5d59e11338e7991..57caa0dd229a5f7975d93d946c770cd83f22bcc5 100644 (file)
@@ -6,10 +6,11 @@ alias please="sudo"
 alias :q="exit"
 alias spellen="aspell -l en check"
 alias spellit="aspell -l it check"
+alias spelles="aspell -l es check"
+alias rm="trash"
+alias vim="nvim"
 
-# Battery (Linux)
-alias battery_pc="~/.config/bash/utils/battery_pc.sh"
-alias battery_uc="~/.config/bash/utils/battery_uc.sh"
+alias rpi="ssh ubuntu@10.0.0.243"
 
 # Thanks to DistroTube <https://gitlab.com/dwt1/dotfiles/>
 # Changing "ls" to "exa"; Edited
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
new file mode 100644 (file)
index 0000000..cc0a9c5
--- /dev/null
@@ -0,0 +1,16 @@
+print("Hello")
+
+Make = require("make")
+
+vim.opt.cursorline = true
+vim.opt.cc = "80"
+vim.opt.number = true
+vim.opt.autoindent = true
+vim.opt.hlsearch = true
+vim.opt.tabstop = 4
+vim.opt.shiftwidth = 4
+vim.opt.clipboard="unnamedplus"
+vim.g.mapleader = " "
+
+Make.setup()
+
diff --git a/.config/nvim/lua/make/init.lua b/.config/nvim/lua/make/init.lua
new file mode 100644 (file)
index 0000000..055036e
--- /dev/null
@@ -0,0 +1,35 @@
+local M = {} -- M stands for module, a naming convention
+
+function M.GoBuild()
+    local output = vim.fn.system("go build 2>&1")
+    if vim.v.shell_error ~= 0 then
+        print("Errore durante la build:\n" .. output)
+    else
+        print("Build completata con successo!")
+    end
+end
+
+function M.GoTest()
+    local output = vim.fn.system("go test 2>&1")
+    if vim.v.shell_error ~= 0 then
+        print("Errore durante la build:\n" .. output)
+    else
+        print("Build completata con successo!")
+    end
+end
+
+function M.Make()
+    local output = vim.fn.system("make 2>&1")
+    if vim.v.shell_error ~= 0 then
+        print("Errore durante la build:\n" .. output)
+    else
+        print("Build completata con successo!")
+    end
+end
+
+function M.setup()
+       vim.api.nvim_create_user_command('Make', M.Make, {})
+       vim.keymap.set('n', '<leader>b', "<cmd>Make<cr>", { noremap = true, silent = true })
+end
+
+return M
index 2a8afcccaa1e9541b3ca0b5e4561a489ce0c82e3..757bbad2aeeb541e5a4633bd6e89e21b1a00ce29 100644 (file)
@@ -1 +1,2 @@
 .bash_env
+.README.md.bak
index 118533d175c4d9069d095d5396123dc3a0c9ade3..0392c9cd87ed0267fdf70c69ed4fcd75a5f65976 100644 (file)
--- a/README.md
+++ b/README.md
@@ -33,6 +33,10 @@ eval neofetch
 > [exa](https://the.exa.website/): A replacement for `ls`.
 > Disabled
 
+- English dictionary for aspell;
+- Italian dictionary for aspell;
+- Spanish dictionary for aspell.
+
 ## TMux
 
 > Not much.