This commit is contained in:
kento2 2026-07-30 15:47:38 +02:00
parent 856e135e63
commit 16c7b23408
7 changed files with 63 additions and 8 deletions

View file

@ -0,0 +1,25 @@
vim.g.mapleader = " "
vim.g.maplocalleader = ","
vim.cmd.colorscheme("lunaperche")
vim.opt.smarttab = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.clipboard = "unnamedplus" -- use system clipboard
vim.pack.add{
{ src = 'https://github.com/neovim/nvim-lspconfig' },
{ src = 'https://github.com/junegunn/fzf.vim' },
}
vim.lsp.config('chicken', {
cmd = {'chicken-lsp-server'},
filetypes = {'scheme'},
root_markers = {'Makefile', 'build.meson', '.git'},
})
vim.lsp.enable('chicken')
vim.lsp.enable('clangd')
vim.lsp.enable('lua_ls')
vim.keymap.set("n", "<leader>b", "<cmd>Buffers<CR>")
vim.keymap.set("n", "<leader>f", "<cmd>Files<CR>")

View file

@ -0,0 +1,12 @@
{
"plugins": {
"fzf.vim": {
"rev": "d2a59a992a2455f609c0fde2ebd84427ea8f919a",
"src": "https://github.com/junegunn/fzf.vim"
},
"nvim-lspconfig": {
"rev": "d592c1e6ad9a0a01b3d5ed3f0345d68407167181",
"src": "https://github.com/neovim/nvim-lspconfig"
}
}
}

View file

@ -24,7 +24,7 @@ local colors = {
['bwht'] = '#c0c0c0',
-- special colors
['dim1'] = '#111111',
['dim1'] = '#555555',
['dim2'] = '#010101'
}

View file

@ -15,7 +15,8 @@ local plugins = {
plug.init(plugins, true)
vis.events.subscribe(vis.events.INIT, function()
vis:command("set theme kento2")
--vis:command("set theme kento2")
vis:command("set theme plain2")
vis.options.autoindent = true
vis.options.breakat = " "
@ -62,20 +63,25 @@ vis.events.subscribe(vis.events.INIT, function()
vis:map(vis.modes.VISUAL, ' g', function()
vis:command("grep")
vis:redraw()
end)
vis:map(vis.modes.NORMAL, ' f', function()
vis:command("!make; read a")
vis:redraw()
end)
vis:map(vis.modes.NORMAL, 'mm', function()
vis:command("!make; read a")
vis:redraw()
end)
vis:map(vis.modes.NORMAL, 'mc', function()
vis:command("!make check; read a")
vis:redraw()
end)
vis:map(vis.modes.NORMAL, 'mt', function()
vis:command("!make test; read a")
vis:redraw()
end)
end)