From d87f599f413d6dc17a15188a62106caa868dc68d Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Thu, 25 Jan 2024 21:01:10 +0100 Subject: things --- Common/nvim/lua/basic.lua | 37 ++----------------------------------- 1 file changed, 2 insertions(+), 35 deletions(-) (limited to 'Common/nvim/lua/basic.lua') diff --git a/Common/nvim/lua/basic.lua b/Common/nvim/lua/basic.lua index 9d28267..d24fbc9 100755 --- a/Common/nvim/lua/basic.lua +++ b/Common/nvim/lua/basic.lua @@ -10,12 +10,6 @@ vim.opt.nu = false -- Autoread when file is changed outside vim vim.opt.autoread = true --- enable filetype plugins -vim.cmd [[ - filetype plugin on - filetype indent on -]] - -- Use a mapleader --vim.opt.mapleader = "," vim.g.mapleader = "," @@ -76,12 +70,6 @@ vim.opt.magic = true vim.opt.showmatch = true vim.opt.mat = 2 --- Turn off annoying bells aon errors ---vim.opt.noerrorbells = false ---vim.opt.novisualbell = false ---vim.opt.t_vb = '' ---vim.opt.tm = 500 - -- Left column option, used to have it at 1 to always show it. But Gitsigns is not using it anyway vim.opt.foldcolumn = '0' @@ -92,11 +80,6 @@ vim.opt.showcmd = true vim.opt.colorcolumn = '80,120' vim.cmd [[ highlight ColorColumn ctermbg=16 ]] --- => Colors and Fonts - --- Enable syntac highlighting ---vim.opt.syntax = 'enable' - -- Colorscheme -- default vim.cmd [[ colorscheme default ]] @@ -140,14 +123,12 @@ vim.opt.shiftwidth = 4 vim.opt.tabstop = 4 vim.opt.softtabstop = 4 --- Linebreak on 500 ch -vim.opt.lbr = true -vim.opt.tw = 500 - -- Auto indent vim.opt.ai = true + -- Smart indent vim.opt.si = true + -- Wrap lines vim.opt.wrap = true @@ -256,19 +237,6 @@ map('n', 'pp', ':setlocal paste!', silentnoremap) vim.opt.titlestring = [[%f %h%m%r%w%{v:progname} (%{tabpagenr()} of %{tabpagenr('$')}})]] vim.opt.title = true --- Toggle displaying special characters -vim.keymap.set('n', '', ToggleListChars, silentnoremap) - --- Load and save session -map('n', 'sm', ':mksession! vim_session.vim', silentnoremap) -map('n', 'sl', ':source vim_session.vim', silentnoremap) - --- Dont't close window when deleting buffer ---vim.api.nvim_create_user_command("Bclose", --- "BufcloseCloseIt()", --- {bang = true} ---) - --[[ Debugging --]] @@ -277,6 +245,5 @@ vim.g.termdebug_wide = 163 vim.cmd([[:packadd termdebug]]) - -- This is to get rid of weird artifacts with text showing up inside buffer. vim.opt.title = false -- cgit v1.2.3