nvim: minor style fixes
This commit is contained in:
parent
19c3cd9ab8
commit
217f0e1796
1 changed files with 4 additions and 6 deletions
|
@ -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'" })
|
||||
|
|
Loading…
Add table
Reference in a new issue