From d2aec6bc4c927c703301599042305238db18227c Mon Sep 17 00:00:00 2001 From: Dimitar Ivanov Date: Tue, 5 Sep 2023 15:32:17 +0300 Subject: [PATCH] Chaning leaderkey to , --- init.lua | 27 ++++++++++++++++++++++++--- lua/kickstart/plugins/debug.lua | 1 + 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 6a56decb..eb5062a8 100644 --- a/init.lua +++ b/init.lua @@ -37,8 +37,7 @@ I hope you enjoy your Neovim journey, P.S. You can delete this when you're done too. It's your config now :) --]] - --- Set as the leader key +-- Set , as the leader key, we are not heretics in this household -- See `:help mapleader` -- NOTE: Must happen before plugins are required (otherwise wrong leader will be used) vim.g.mapleader = ',' @@ -731,6 +730,25 @@ require('copilot').setup({ require('copilot_cmp').setup() +-- Completion +local cmp = require("cmp") + +cmp.setup({ + mapping = { + [""] = cmp.mapping({ + i = function(fallback) + if cmp.visible() and cmp.get_active_entry() then + cmp.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = false }) + else + fallback() + end + end, + s = cmp.mapping.confirm({ select = true }), + c = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true }), + }), + } +}) + vim.api.nvim_set_keymap('n', '', 'za', { noremap = true, silent = true }) -- Indents -- Configure stuff for VimVista @@ -743,7 +761,7 @@ vim.g.github_enterprise_urls = { 'https://github.wdf.sap.corp', 'github.tools.sap' } --- Line at 80 +-- Line at 100vim.opt.colorcolumn = "100" vim.opt.colorcolumn = "100" -- Set cursor according modes @@ -767,4 +785,7 @@ vim.keymap.set('n', 'u', vim.cmd.UndotreeToggle) vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) +-- Correct scroll level +vim.o.scrolloff = 8 + -- vim: ts=2 sts=2 sw=2 et diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 7fc783fa..1bbfdcb5 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -20,6 +20,7 @@ return { -- Add your own debuggers here 'leoluz/nvim-dap-go', + 'mfussenegger/nvim-dap-python', }, config = function() local dap = require 'dap'