From 869a8cd6730711ec1c37041e9b7282b6e6279f9c Mon Sep 17 00:00:00 2001 From: TheSoeren Date: Thu, 6 Jun 2024 14:54:34 +0200 Subject: [PATCH] add dotnet support and remove deprecated remap --- lua/plugins.lua | 2 ++ lua/remap.lua | 6 ++++-- lua/set.lua | 10 ++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index c4904702..b144fac8 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -370,6 +370,8 @@ require('lazy').setup({ -- -- But for many setups, the LSP (`tsserver`) will work just fine tsserver = {}, + csharp_ls = {}, + netcoredbg = {}, -- lua_ls = { diff --git a/lua/remap.lua b/lua/remap.lua index f1d46a8a..88dc76ac 100644 --- a/lua/remap.lua +++ b/lua/remap.lua @@ -1,12 +1,14 @@ -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` +vim.keymap.set('i', 'jj', '') + -- clear higlight on search on pressing in normal mode vim.keymap.set('n', '', 'nohlsearch') -- Diagnostic keymaps -vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' }) -vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' }) +vim.keymap.set('n', '[d', vim.diagnostic.jump, { count = -1, desc = 'Go to previous [D]iagnostic message' }) +vim.keymap.set('n', ']d', vim.diagnostic.jump, { count = 1, desc = 'Go to next [D]iagnostic message' }) vim.keymap.set('n', 'e', vim.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' }) vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) diff --git a/lua/set.lua b/lua/set.lua index 7942d1aa..73740608 100644 --- a/lua/set.lua +++ b/lua/set.lua @@ -11,8 +11,6 @@ vim.opt.relativenumber = true vim.opt.termguicolors = true -vim.opt.updatetime = 50 - vim.opt.colorcolumn = '100' vim.g.have_nerd_font = false @@ -32,9 +30,9 @@ vim.opt.clipboard = 'unnamedplus' -- Enable break indent vim.opt.breakindent = true -vim.opt.tabstop = 4 -vim.opt.softtabstop = 4 -vim.shiftwidth = 4 +vim.opt.tabstop = 2 +vim.opt.softtabstop = 2 +vim.shiftwidth = 2 vim.opt.expandtab = true vim.opt.smartindent = true @@ -53,7 +51,7 @@ vim.opt.smartcase = true vim.opt.signcolumn = 'yes' -- Decrease update time -vim.opt.updatetime = 250 +vim.opt.updatetime = 50 -- Decrease mapped sequence wait time -- Displays which-key popup sooner