From 0ef781f04f96bd34efca9e40de3706ec1293702d Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 22 Sep 2023 16:50:24 +0200 Subject: up --- .config/nvim/after/plugin/lsp.lua | 1 + .config/nvim/lua/bindings.lua | 4 +++- .config/nvim/lua/settings.lua | 6 +++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index e63c38e..1d85a9d 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -31,6 +31,7 @@ require('mason-lspconfig').setup({ 'cmake', 'marksman', 'ltex', + 'perlnavigator', }, handlers = { lsp.default_setup, diff --git a/.config/nvim/lua/bindings.lua b/.config/nvim/lua/bindings.lua index d6ada89..73e9980 100644 --- a/.config/nvim/lua/bindings.lua +++ b/.config/nvim/lua/bindings.lua @@ -1,6 +1,7 @@ vim.keymap.set('n', '', ':call nerdcommenter#Comment(0,"toggle")', { noremap = true, silent = true }) vim.keymap.set('n', '', ':', { noremap = true, silent = false }) vim.keymap.set('n', '', ':bprevious', { noremap = true, silent = true }) +vim.keymap.set('n', '', 'zz', { noremap = true, silent = false }) vim.keymap.set('n', '', ':bnext', { noremap = true, silent = true }) vim.keymap.set('n', '', 'h', { noremap = true, silent = false }) vim.keymap.set('n', '', 'j', { noremap = true, silent = false }) @@ -10,10 +11,11 @@ vim.keymap.set('n', '', 'o', { noremap = true, silent = false }) vim.keymap.set('n', '', 'q', { noremap = true, silent = false }) vim.keymap.set('n', '*', '*zz', { noremap = true, silent = false }) vim.keymap.set('n', '', 'zz', { noremap = true, silent = false }) -vim.keymap.set('n', '', 'zz', { noremap = true, silent = false }) vim.keymap.set('i', '', 'pumvisible() ? "" : ""', { expr = true }) vim.keymap.set('i', '', 'pumvisible() ? "" : ""', { expr = true }) vim.keymap.set('i', '', 'pumvisible() ? asyncomplete#close_popup() : "\\"', { expr = true }) vim.g.floaterm_keymap_toggle = '' vim.g.floaterm_keymap_prev = '' vim.g.floaterm_keymap_next = '' +vim.keymap.set('v', 'J', ":m '>+1gv=gv") +vim.keymap.set('v', 'K', ":m '<-2gv=gv") diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua index 238caea..5ab7155 100644 --- a/.config/nvim/lua/settings.lua +++ b/.config/nvim/lua/settings.lua @@ -18,6 +18,8 @@ vim.opt.mouse = 'a' vim.opt.compatible = false vim.opt.expandtab = false vim.opt.hlsearch = false +vim.opt.incsearch = true +vim.opt.termguicolors = true vim.opt.number = true vim.opt.shiftwidth = 4 vim.opt.softtabstop = 4 @@ -30,6 +32,9 @@ vim.opt.undodir = '/tmp/nvim_undo' vim.opt.undofile = true vim.opt.wildmode = 'longest,list,full' vim.opt.directory = '/tmp/nvim_swap' +vim.opt.colorcolumn = "80" +vim.opt.scrolloff = 5 +vim.opt.signcolumn = "yes" vim.o.ignorecase = true vim.o.smartcase = true vim.opt.wrap = true @@ -45,7 +50,6 @@ autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o ]] vim.g.mapleader = '\\' vim.g.maplocalleader = '\\' -vim.g['battery#update_statusline'] = 1 local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) vim.api.nvim_create_autocmd('TextYankPost', { callback = function() -- cgit v1.2.3