erlang stuff
This commit is contained in:
parent
1eba9a9c24
commit
93389b7a1c
3 changed files with 20 additions and 0 deletions
4
ftplugin/erlang.lua
Normal file
4
ftplugin/erlang.lua
Normal 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>')
|
|
@ -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',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
|
@ -2,6 +2,8 @@ local config = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
'rust',
|
'rust',
|
||||||
'css',
|
'css',
|
||||||
|
'erlang',
|
||||||
|
'elixir',
|
||||||
'html',
|
'html',
|
||||||
'javascript',
|
'javascript',
|
||||||
'jsdoc',
|
'jsdoc',
|
||||||
|
|
Loading…
Add table
Reference in a new issue