nvim: minor style fixes

This commit is contained in:
Fernando Schauenburg 2024-07-21 19:05:17 +02:00
parent 19c3cd9ab8
commit 217f0e1796

View file

@ -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", "<c-h>", "<c-w>h")
map("n", "<c-l>", "<c-w>l")
local window = require 'fschauen.window'
local window = require("fschauen.window")
-- window resizing
map("n", "<s-Up>", 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", "<leader>p", [["_dP]])
local diagnostic = require 'fschauen.diagnostic'
local diagnostic = require("fschauen.diagnostic")
local ui = require("fschauen.util.icons").ui
-- navigate diagnostics
map("n", "<Down>", diagnostic.goto_next, { desc = ui.Diagnostic .. " [d]iagnostic [n]ext" })
@ -105,12 +104,11 @@ M.setup = function()
map("n", "<localleader>j", "<cmd>lnext<cr>zz")
map("n", "<localleader>k", "<cmd>lprevious<cr>zz")
-- toggle quickfix and loclist
map("n", "<leader>ll", window.toggle_quickfix, { desc = ui.Toggle .. " toggle quickfix" })
map("n", "<localleader>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", "<leader>sn", options.toggle_number, { desc = ui.Toggle .. " toggle 'number'" })