diff --git a/config/nvim/lua/fschauen/keymap.lua b/config/nvim/lua/fschauen/keymap.lua index f6844ee..6c7fa59 100644 --- a/config/nvim/lua/fschauen/keymap.lua +++ b/config/nvim/lua/fschauen/keymap.lua @@ -1,7 +1,5 @@ local M = {} -local ui = require("fschauen.util.icons").ui - local map = function(mode, lhs, rhs, opts) if mode ~= "c" then opts = opts or {} @@ -43,7 +41,7 @@ M.setup = function() map("n", "", "h") map("n", "", "l") - local window = require 'fschauen.window' + local window = require("fschauen.window") -- window resizing map("n", "", window.resize_up(2), { desc = "Resize window upward" }) @@ -86,7 +84,8 @@ M.setup = function() -- don't loose the original yanked contents when pasting in visual mode map("x", "p", [["_dP]]) - local diagnostic = require 'fschauen.diagnostic' + local diagnostic = require("fschauen.diagnostic") + local ui = require("fschauen.util.icons").ui -- navigate diagnostics map("n", "", diagnostic.goto_next, { desc = ui.Diagnostic .. " [d]iagnostic [n]ext" }) @@ -105,12 +104,11 @@ M.setup = function() map("n", "j", "lnextzz") map("n", "k", "lpreviouszz") - -- toggle quickfix and loclist map("n", "ll", window.toggle_quickfix, { desc = ui.Toggle .. " toggle quickfix" }) map("n", "ll", window.toggle_loclist, { desc = ui.Toggle .. " toggle loclist" }) - local options = require('fschauen.util.options') + local options = require("fschauen.util.options") -- toggle options map("n", "sn", options.toggle_number, { desc = ui.Toggle .. " toggle 'number'" })