diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-04-10 10:18:01 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-04-10 10:18:01 +0200 |
| commit | 08d5556ab2f104cc2daff59c078c12816b8c9acc (patch) | |
| tree | 2e72e8d8e555d92195ae7e1d9f34c732f5be7886 /lua/alpha/utils.lua | |
| parent | 11fa125e9ed415021a2c5223e396c8f73fa05a13 (diff) | |
| download | nvim-conf-08d5556ab2f104cc2daff59c078c12816b8c9acc.tar.gz nvim-conf-08d5556ab2f104cc2daff59c078c12816b8c9acc.zip | |
feat(general): update keymaps
Diffstat (limited to 'lua/alpha/utils.lua')
| -rw-r--r-- | lua/alpha/utils.lua | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lua/alpha/utils.lua b/lua/alpha/utils.lua index b1202d6..ee80a1c 100644 --- a/lua/alpha/utils.lua +++ b/lua/alpha/utils.lua @@ -1,21 +1,21 @@ local M = {} M.save_and_exec = function() - local source_commands = { - lua = "luafi %", - vim = "source %", - } - - local ft = vim.api.nvim_buf_get_option(0, "filetype") - local command = source_commands[ft] - if command == nil then - vim.notify("This type cant not be sourced", vim.log.levels.ERROR, { title = "Alpha Developer" }) - return - end + -- local source_commands = { + -- lua = "luafi %", + -- vim = "source %", + -- } + -- + -- local ft = vim.api.nvim_buf_get_option(0, "filetype") + -- local command = source_commands[ft] + -- if command == nil then + -- vim.notify("This type cant not be sourced", vim.log.levels.ERROR, { title = "Alpha Developer" }) + -- return + -- end -- Save and source vim.api.nvim_command "silent w" - vim.api.nvim_command(command) + vim.api.nvim_command "so" local current_file_name = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(0), ":t") vim.notify(string.format("File %s Sourced", current_file_name), vim.log.levels.INFO, { title = "Alpha Developer" }) |