mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
Map diagnostics
This commit is contained in:
parent
5dce232e36
commit
c1c39be44c
2 changed files with 3 additions and 1 deletions
|
|
@ -5,10 +5,11 @@
|
|||
-- https://github.com/mjacobus/lvim/blob/main/after/plugin/legacy_setup.vim#L179-L212
|
||||
-- Maybe some here: https://github.com/mjacobus/lvim/blob/main/lua/config/mappings.lua
|
||||
|
||||
vim.g.mapleader = " "
|
||||
local map = vim.keymap.set
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
map('n', '<leader>cd', vim.diagnostic.open_float, { desc = 'Line Diagnostics' })
|
||||
|
||||
map("n", "<leader>pv", vim.cmd.Ex)
|
||||
map("n", "<leader>w", ":w<CR>", { desc = "Save file" })
|
||||
map("i", "jj", "<Esc>")
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
-- Mapping for line diagnostics
|
||||
vim.g.swap = false
|
||||
|
||||
-- Use system clipboard
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue