From 29f798abc7ccc3a959dbe73b629782f90ec13c59 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Sun, 7 Apr 2024 08:20:02 +0200 Subject: [PATCH] Starting to move all vim to lua --- lua/plugconfig.lua | 3 +++ lua/plugins.lua | 1 + lua/vanilla.lua | 15 +++++++++++++-- viml/vanilla.vim | 15 --------------- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index 65e400f..46236ca 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -71,3 +71,6 @@ require("mason-lspconfig").setup_handlers({ require("lspconfig").verible.setup({ cmd = { "verible-verilog-ls", "--rules_config_search" }, }) + +-- Floating terminal +vim.keymap.set("n", "", ":FloatermNew --height=0.9 --width=0.9 --wintype=float --name=terminal ") diff --git a/lua/plugins.lua b/lua/plugins.lua index 0042e24..2fe8325 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -70,4 +70,5 @@ return { dependencies = "hrsh7th/nvim-cmp", }, "jaredgorski/spacecamp", + "voldikss/vim-floaterm", } diff --git a/lua/vanilla.lua b/lua/vanilla.lua index 3dca9ea..bedcc8a 100644 --- a/lua/vanilla.lua +++ b/lua/vanilla.lua @@ -1,14 +1,25 @@ +-- Filetypes and compatibility +vim.opt.compatible = false +vim.cmd("filetype on") +vim.cmd("filetype plugin on") +vim.cmd("syntax on") + +-- Editor configuration vim.opt.number = true vim.opt.tabstop = 4 vim.opt.shiftwidth = 4 vim.opt.expandtab = true -vim.opt.showmatch = true +vim.opt.splitright = true +vim.opt.splitbelow = true +vim.g.mapleader = "," + +-- GUI vim.opt.cursorline = true vim.opt.hlsearch = true vim.opt.encoding = "UTF-8" vim.g.tex_flavor = "latex" vim.opt.conceallevel = 2 -vim.g.mapleader = "," +vim.opt.showmatch = true -- set color scheme vim.opt.termguicolors = true diff --git a/viml/vanilla.vim b/viml/vanilla.vim index bf2ceba..c2f566d 100644 --- a/viml/vanilla.vim +++ b/viml/vanilla.vim @@ -1,21 +1,6 @@ -set nocompatible -filetype on -filetype plugin on -syntax on - " colorscheme vim-monokai-tasty colorscheme slate -" open builtin terminal -function OpenTerm() - 20 split - terminal -endfunction -nnoremap :call OpenTerm() - -set splitright -set splitbelow - set clipboard+=unnamedplus " set spellcheck according to Filetype