Starting to move all vim to lua

This commit is contained in:
Yannick Reiß 2024-04-07 08:20:02 +02:00
parent 49dfe769ed
commit 29f798abc7
4 changed files with 17 additions and 17 deletions

View File

@ -71,3 +71,6 @@ require("mason-lspconfig").setup_handlers({
require("lspconfig").verible.setup({ require("lspconfig").verible.setup({
cmd = { "verible-verilog-ls", "--rules_config_search" }, cmd = { "verible-verilog-ls", "--rules_config_search" },
}) })
-- Floating terminal
vim.keymap.set("n", "<C-t>", ":FloatermNew --height=0.9 --width=0.9 --wintype=float --name=terminal <CR>")

View File

@ -70,4 +70,5 @@ return {
dependencies = "hrsh7th/nvim-cmp", dependencies = "hrsh7th/nvim-cmp",
}, },
"jaredgorski/spacecamp", "jaredgorski/spacecamp",
"voldikss/vim-floaterm",
} }

View File

@ -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.number = true
vim.opt.tabstop = 4 vim.opt.tabstop = 4
vim.opt.shiftwidth = 4 vim.opt.shiftwidth = 4
vim.opt.expandtab = true 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.cursorline = true
vim.opt.hlsearch = true vim.opt.hlsearch = true
vim.opt.encoding = "UTF-8" vim.opt.encoding = "UTF-8"
vim.g.tex_flavor = "latex" vim.g.tex_flavor = "latex"
vim.opt.conceallevel = 2 vim.opt.conceallevel = 2
vim.g.mapleader = "," vim.opt.showmatch = true
-- set color scheme -- set color scheme
vim.opt.termguicolors = true vim.opt.termguicolors = true

View File

@ -1,21 +1,6 @@
set nocompatible
filetype on
filetype plugin on
syntax on
" colorscheme vim-monokai-tasty " colorscheme vim-monokai-tasty
colorscheme slate colorscheme slate
" open builtin terminal
function OpenTerm()
20 split
terminal
endfunction
nnoremap <C-t> :call OpenTerm()<CR>
set splitright
set splitbelow
set clipboard+=unnamedplus set clipboard+=unnamedplus
" set spellcheck according to Filetype " set spellcheck according to Filetype