erlang stuff

This commit is contained in:
wires 2025-03-12 13:33:38 -04:00
parent 1eba9a9c24
commit 93389b7a1c
Signed by: wires
SSH key fingerprint: SHA256:9GtP+M3O2IivPDlw1UY872UPUuJH2gI0yG6ExBxaaiM
3 changed files with 20 additions and 0 deletions

4
ftplugin/erlang.lua Normal file
View file

@ -0,0 +1,4 @@
local map = require('utils').create_buf_map(0)
-- easy insertion of trailing . from insert mode.
map('i', '..', '<Esc>A.<Esc>')

View file

@ -79,3 +79,17 @@ opt.updatetime = 100
-- theme -- theme
opt.termguicolors = true opt.termguicolors = true
-- filetypes
vim.filetype.add({
extension = {
vert = 'glsl',
frag = 'glsl',
xrl = 'erlang',
yrl = 'erlang',
src = 'erlang',
},
filename = {
['rebar.config'] = 'erlang',
},
})

View file

@ -2,6 +2,8 @@ local config = {
ensure_installed = { ensure_installed = {
'rust', 'rust',
'css', 'css',
'erlang',
'elixir',
'html', 'html',
'javascript', 'javascript',
'jsdoc', 'jsdoc',