From 3980fedb05f5d190fffa8a64c98c113af2a113a0 Mon Sep 17 00:00:00 2001 From: Ariel Date: Thu, 22 Feb 2024 00:13:31 +0800 Subject: [PATCH] Add files via upload --- init.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index d4644c7..f75858e 100644 --- a/init.lua +++ b/init.lua @@ -9,6 +9,7 @@ vim.cmd("set keymodel=startsel") vim.cmd("set number") vim.cmd("set cursorline") vim.cmd("set termguicolors") +vim.cmd("set clipboard+=unnamedplus") vim.g.mapleader = " " local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" @@ -251,7 +252,12 @@ cmp.setup({ -- Setup language servers. local lspconfig = require('lspconfig') -lspconfig.clangd.setup {} +lspconfig.clangd.setup { + cmd = { + "clangd", + "--header-insertion=never" + } +} lspconfig.pyright.setup {} lspconfig.tsserver.setup {} lspconfig.rust_analyzer.setup { @@ -307,7 +313,6 @@ vim.keymap.set('i', '', 'yyi') vim.keymap.set('i', '', 'PA') vim.keymap.set('i', '', 'ddi') vim.keymap.set('i', '', 'ggVG') -vim.keymap.set('v', '', '+y') vim.keymap.set('n', '`', ':split:terminali') vim.keymap.set('n', 'l', ':vsplit std.in:split std.out') vim.keymap.set('n', 'n', ':tabnew')