4/26
This commit is contained in:
parent
3c89fadc48
commit
fddf7fe6e3
1
ftdetect/emk.vim
Normal file
1
ftdetect/emk.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
autocmd BufRead,BufNewFile *.emk set filetype=emk
|
1
ftdetect/emkfile.vim
Normal file
1
ftdetect/emkfile.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
autocmd BufRead,BufNewFile emkfile set filetype=emkfile
|
1
ftdetect/hell.vim
Normal file
1
ftdetect/hell.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
autocmd BufRead,BufNewFile *.hell set filetype=hell
|
1
ftdetect/pcd.vim
Normal file
1
ftdetect/pcd.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
autocmd BufRead,BufNewFile *.pcd set filetype=pcd
|
1
ftdetect/ph.vim
Normal file
1
ftdetect/ph.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
autocmd BufRead,BufNewFile *.ph set filetype=ph
|
1
ftdetect/xmk.vim
Normal file
1
ftdetect/xmk.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
autocmd BufRead,BufNewFile *.xmk set filetype=xmk
|
2
init.vim
2
init.vim
@ -7,7 +7,7 @@ highlight HellKey ctermfg=cyan guifg=#00ffff
|
|||||||
highlight HellValue ctermfg=red guifg=#00ffff
|
highlight HellValue ctermfg=red guifg=#00ffff
|
||||||
|
|
||||||
set number
|
set number
|
||||||
colorscheme gruvbox
|
colorscheme nord
|
||||||
set background=dark
|
set background=dark
|
||||||
|
|
||||||
let g:airline_theme='base16'
|
let g:airline_theme='base16'
|
||||||
|
@ -8,4 +8,21 @@ return require('packer').startup(function(use)
|
|||||||
"ellisonleao/glow.nvim",
|
"ellisonleao/glow.nvim",
|
||||||
config = function() require("glow").setup() end
|
config = function() require("glow").setup() end
|
||||||
}
|
}
|
||||||
|
use {
|
||||||
|
'Pocco81/auto-save.nvim',
|
||||||
|
config = function()
|
||||||
|
require("auto-save").setup {
|
||||||
|
enabled = true
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
run = function()
|
||||||
|
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
|
||||||
|
ts_update()
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
use 'shaunsingh/nord.nvim'
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = 'gruvbox-material',
|
theme = 'nord',
|
||||||
|
-- theme = 'gruvbox-material',
|
||||||
component_separators = { left = '', right = ''},
|
component_separators = { left = '', right = ''},
|
||||||
section_separators = { left = '', right = ''},
|
section_separators = { left = '', right = ''},
|
||||||
disabled_filetypes = {
|
disabled_filetypes = {
|
||||||
|
@ -49,8 +49,8 @@ local function save_profiles(threshold)
|
|||||||
end
|
end
|
||||||
|
|
||||||
time([[Luarocks path setup]], true)
|
time([[Luarocks path setup]], true)
|
||||||
local package_path_str = "/home/arco/.cache/nvim/packer_hererocks/2.1.1700008891/share/lua/5.1/?.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1700008891/share/lua/5.1/?/init.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1700008891/lib/luarocks/rocks-5.1/?.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1700008891/lib/luarocks/rocks-5.1/?/init.lua"
|
local package_path_str = "/home/arco/.cache/nvim/packer_hererocks/2.1.1710088188/share/lua/5.1/?.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1710088188/share/lua/5.1/?/init.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1710088188/lib/luarocks/rocks-5.1/?.lua;/home/arco/.cache/nvim/packer_hererocks/2.1.1710088188/lib/luarocks/rocks-5.1/?/init.lua"
|
||||||
local install_cpath_pattern = "/home/arco/.cache/nvim/packer_hererocks/2.1.1700008891/lib/lua/5.1/?.so"
|
local install_cpath_pattern = "/home/arco/.cache/nvim/packer_hererocks/2.1.1710088188/lib/lua/5.1/?.so"
|
||||||
if not string.find(package.path, package_path_str, 1, true) then
|
if not string.find(package.path, package_path_str, 1, true) then
|
||||||
package.path = package.path .. ';' .. package_path_str
|
package.path = package.path .. ';' .. package_path_str
|
||||||
end
|
end
|
||||||
@ -74,13 +74,16 @@ end
|
|||||||
time([[try_loadstring definition]], false)
|
time([[try_loadstring definition]], false)
|
||||||
time([[Defining packer_plugins]], true)
|
time([[Defining packer_plugins]], true)
|
||||||
_G.packer_plugins = {
|
_G.packer_plugins = {
|
||||||
|
["auto-save.nvim"] = {
|
||||||
|
config = { "\27LJ\2\nG\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\fenabled\2\nsetup\14auto-save\frequire\0" },
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/arco/.local/share/nvim/site/pack/packer/start/auto-save.nvim",
|
||||||
|
url = "https://github.com/Pocco81/auto-save.nvim"
|
||||||
|
},
|
||||||
["glow.nvim"] = {
|
["glow.nvim"] = {
|
||||||
commands = { "Glow" },
|
config = { "\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tglow\frequire\0" },
|
||||||
config = { true },
|
loaded = true,
|
||||||
loaded = false,
|
path = "/home/arco/.local/share/nvim/site/pack/packer/start/glow.nvim",
|
||||||
needs_bufread = false,
|
|
||||||
only_cond = false,
|
|
||||||
path = "/home/arco/.local/share/nvim/site/pack/packer/opt/glow.nvim",
|
|
||||||
url = "https://github.com/ellisonleao/glow.nvim"
|
url = "https://github.com/ellisonleao/glow.nvim"
|
||||||
},
|
},
|
||||||
["lualine.nvim"] = {
|
["lualine.nvim"] = {
|
||||||
@ -88,6 +91,16 @@ _G.packer_plugins = {
|
|||||||
path = "/home/arco/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
path = "/home/arco/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
||||||
url = "https://github.com/nvim-lualine/lualine.nvim"
|
url = "https://github.com/nvim-lualine/lualine.nvim"
|
||||||
},
|
},
|
||||||
|
["nord.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/arco/.local/share/nvim/site/pack/packer/start/nord.nvim",
|
||||||
|
url = "https://github.com/shaunsingh/nord.nvim"
|
||||||
|
},
|
||||||
|
["nvim-treesitter"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/arco/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
||||||
|
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||||
|
},
|
||||||
["nvim-web-devicons"] = {
|
["nvim-web-devicons"] = {
|
||||||
loaded = false,
|
loaded = false,
|
||||||
needs_bufread = false,
|
needs_bufread = false,
|
||||||
@ -102,18 +115,14 @@ _G.packer_plugins = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
time([[Defining packer_plugins]], false)
|
time([[Defining packer_plugins]], false)
|
||||||
|
-- Config for: auto-save.nvim
|
||||||
-- Command lazy-loads
|
time([[Config for auto-save.nvim]], true)
|
||||||
time([[Defining lazy-load commands]], true)
|
try_loadstring("\27LJ\2\nG\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\fenabled\2\nsetup\14auto-save\frequire\0", "config", "auto-save.nvim")
|
||||||
pcall(vim.api.nvim_create_user_command, 'Glow', function(cmdargs)
|
time([[Config for auto-save.nvim]], false)
|
||||||
require('packer.load')({'glow.nvim'}, { cmd = 'Glow', l1 = cmdargs.line1, l2 = cmdargs.line2, bang = cmdargs.bang, args = cmdargs.args, mods = cmdargs.mods }, _G.packer_plugins)
|
-- Config for: glow.nvim
|
||||||
end,
|
time([[Config for glow.nvim]], true)
|
||||||
{nargs = '*', range = true, bang = true, complete = function()
|
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tglow\frequire\0", "config", "glow.nvim")
|
||||||
require('packer.load')({'glow.nvim'}, {}, _G.packer_plugins)
|
time([[Config for glow.nvim]], false)
|
||||||
return vim.fn.getcompletion('Glow ', 'cmdline')
|
|
||||||
end})
|
|
||||||
time([[Defining lazy-load commands]], false)
|
|
||||||
|
|
||||||
|
|
||||||
_G._packer.inside_compile = false
|
_G._packer.inside_compile = false
|
||||||
if _G._packer.needs_bufread == true then
|
if _G._packer.needs_bufread == true then
|
||||||
|
17
syntax/emk.vim
Normal file
17
syntax/emk.vim
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
if exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
syntax keyword emkKeyword declare function include
|
||||||
|
|
||||||
|
highlight link emkKeyword Keyword
|
||||||
|
highlight link emkFunction Function
|
||||||
|
|
||||||
|
syntax region emkString start=/\v"/ skip=/\v\\./ end=/\v"/
|
||||||
|
syntax region emkString start=/\v'/ skip=/\v\\./ end=/\v'/
|
||||||
|
highlight link emkString String
|
||||||
|
|
||||||
|
syntax match emkComment "\v//.*$"
|
||||||
|
highlight link emkComment Comment
|
||||||
|
|
||||||
|
let b:current_syntax = "emk"
|
33
syntax/emkfile.vim
Normal file
33
syntax/emkfile.vim
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
if exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
syntax keyword emkfileKeyword declare function include
|
||||||
|
syntax keyword emkfileKeyword if then else while for do
|
||||||
|
syntax keyword emkfileKeyword echo
|
||||||
|
|
||||||
|
highlight link emkfileKeyword Keyword
|
||||||
|
highlight link emkfileFunction Function
|
||||||
|
|
||||||
|
syntax match emkfileOperator "\v\="
|
||||||
|
syntax match emkfileOperator "\v\*"
|
||||||
|
syntax match emkfileOperator "\v/"
|
||||||
|
syntax match emkfileOperator "\v\+"
|
||||||
|
syntax match emkfileOperator "\v-"
|
||||||
|
syntax match emkfileOperator "\v\?"
|
||||||
|
syntax match emkfileOperator "\v\*\="
|
||||||
|
syntax match emkfileOperator "\v/\="
|
||||||
|
syntax match emkfileOperator "\v\+\="
|
||||||
|
syntax match emkfileOperator "\v-\="
|
||||||
|
syntax match emkfileOperator "\v\!\="
|
||||||
|
|
||||||
|
highlight link emkfileOperator Operator
|
||||||
|
|
||||||
|
syntax region emkfileString start=/\v"/ skip=/\v\\./ end=/\v"/
|
||||||
|
syntax region emkfileString start=/\v'/ skip=/\v\\./ end=/\v'/
|
||||||
|
highlight link emkfileString String
|
||||||
|
|
||||||
|
syntax match emkfileComment "\v//.*$"
|
||||||
|
highlight link emkfileComment Comment
|
||||||
|
|
||||||
|
let b:current_syntax = "emkfile"
|
49
syntax/hell.vim
Normal file
49
syntax/hell.vim
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
if exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
syntax keyword hellKeyword import func
|
||||||
|
syntax keyword hellKeyword if then else while for switch case
|
||||||
|
syntax keyword hellKeyword writeln
|
||||||
|
syntax keyword hellType int str float void double bool
|
||||||
|
syntax keyword hellGlobalContainer hell
|
||||||
|
|
||||||
|
highlight link hellKeyword Keyword
|
||||||
|
highlight link hellFunction Function
|
||||||
|
highlight link hellType Type
|
||||||
|
highlight link hellGlobalContainer Structure
|
||||||
|
|
||||||
|
syntax match hellOperator "\v\="
|
||||||
|
syntax match hellOperator "\v\*"
|
||||||
|
syntax match hellOperator "\v/"
|
||||||
|
syntax match hellOperator "\v\+"
|
||||||
|
syntax match hellOperator "\v-"
|
||||||
|
syntax match hellOperator "\v\?"
|
||||||
|
syntax match hellOperator "\v\*\="
|
||||||
|
syntax match hellOperator "\v/\="
|
||||||
|
syntax match hellOperator "\v\+\="
|
||||||
|
syntax match hellOperator "\v-\="
|
||||||
|
syntax match hellOperator "\v\!\="
|
||||||
|
|
||||||
|
syntax match hellNumber "0"
|
||||||
|
syntax match hellNumber "1"
|
||||||
|
syntax match hellNumber "2"
|
||||||
|
syntax match hellNumber "3"
|
||||||
|
syntax match hellNumber "4"
|
||||||
|
syntax match hellNumber "5"
|
||||||
|
syntax match hellNumber "6"
|
||||||
|
syntax match hellNumber "7"
|
||||||
|
syntax match hellNumber "8"
|
||||||
|
syntax match hellNumber "9"
|
||||||
|
|
||||||
|
highlight link hellOperator Operator
|
||||||
|
highlight link hellNumber Constant
|
||||||
|
|
||||||
|
syntax region hellString start=/\v"/ skip=/\v\\./ end=/\v"/
|
||||||
|
syntax region hellString start=/\v'/ skip=/\v\\./ end=/\v'/
|
||||||
|
highlight link hellString String
|
||||||
|
|
||||||
|
syntax match hellComment "\v//.*$"
|
||||||
|
highlight link hellComment Comment
|
||||||
|
|
||||||
|
let b:current_syntax = "hell"
|
39
syntax/pcd.vim
Normal file
39
syntax/pcd.vim
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
if exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
syntax keyword pcdKeyword func
|
||||||
|
syntax keyword pcdKeyword if then else while for switch case and
|
||||||
|
syntax keyword pcdKeyword break until end default return exec do in
|
||||||
|
syntax keyword pcdKeyword print break fetch exclude def from as alloc unalloc using catch
|
||||||
|
syntax keyword pcdKeyword pcode start stop
|
||||||
|
syntax keyword pcdKeyword int vd chr str stat flt db tab const long
|
||||||
|
syntax keyword pcdKeyword global local
|
||||||
|
|
||||||
|
syntax keyword pcdKeyword pcdver
|
||||||
|
|
||||||
|
highlight link pcdKeyword Keyword
|
||||||
|
highlight link pcdFunction Function
|
||||||
|
|
||||||
|
syntax match pcdOperator "\v\="
|
||||||
|
syntax match pcdOperator "\v\*"
|
||||||
|
syntax match pcdOperator "\v/"
|
||||||
|
syntax match pcdOperator "\v\+"
|
||||||
|
syntax match pcdOperator "\v-"
|
||||||
|
syntax match pcdOperator "\v\?"
|
||||||
|
syntax match pcdOperator "\v\*\="
|
||||||
|
syntax match pcdOperator "\v/\="
|
||||||
|
syntax match pcdOperator "\v\+\="
|
||||||
|
syntax match pcdOperator "\v-\="
|
||||||
|
syntax match pcdOperator "\v\!\="
|
||||||
|
|
||||||
|
highlight link pcdOperator Operator
|
||||||
|
|
||||||
|
syntax region pcdString start=/\v"/ skip=/\v\\./ end=/\v"/
|
||||||
|
syntax region pcdString start=/\v'/ skip=/\v\\./ end=/\v'/
|
||||||
|
highlight link pcdString String
|
||||||
|
|
||||||
|
syntax match pcdComment "\v//.*$"
|
||||||
|
highlight link pcdComment Comment
|
||||||
|
|
||||||
|
let b:current_syntax = "pcd"
|
37
syntax/ph.vim
Normal file
37
syntax/ph.vim
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
if exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
syntax keyword phKeyword func
|
||||||
|
syntax keyword phKeyword if then else while for switch case
|
||||||
|
syntax keyword phKeyword break until end default return exec
|
||||||
|
syntax keyword phKeyword print break fetch def from alloc unalloc
|
||||||
|
syntax keyword phKeyword head start stop
|
||||||
|
syntax keyword phKeyword int chr vd stat flt db tab
|
||||||
|
|
||||||
|
syntax keyword phKeyword phver
|
||||||
|
|
||||||
|
highlight link phKeyword Keyword
|
||||||
|
highlight link phFunction Function
|
||||||
|
|
||||||
|
syntax match phOperator "\v\="
|
||||||
|
syntax match phOperator "\v\*"
|
||||||
|
syntax match phOperator "\v/"
|
||||||
|
syntax match phOperator "\v\+"
|
||||||
|
syntax match phOperator "\v-"
|
||||||
|
syntax match phOperator "\v\?"
|
||||||
|
syntax match phOperator "\v\*\="
|
||||||
|
syntax match phOperator "\v/\="
|
||||||
|
syntax match phOperator "\v\+\="
|
||||||
|
syntax match phOperator "\v-\="
|
||||||
|
|
||||||
|
highlight link phOperator Operator
|
||||||
|
|
||||||
|
syntax region phString start=/\v"/ skip=/\v\\./ end=/\v"/
|
||||||
|
syntax region phString start=/\v'/ skip=/\v\\./ end=/\v'/
|
||||||
|
highlight link phString String
|
||||||
|
|
||||||
|
syntax match phComment "\v//.*$"
|
||||||
|
highlight link phComment Comment
|
||||||
|
|
||||||
|
let b:current_syntax = "ph"
|
38
syntax/xmk.vim
Normal file
38
syntax/xmk.vim
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
if exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
syntax keyword xmkKeyword DECLARE FUNCTION INCLUDE
|
||||||
|
syntax keyword xmkKeyword if then else while for switch case and
|
||||||
|
syntax keyword xmkKeyword break until end default return exec do in
|
||||||
|
syntax keyword xmkKeyword print break fetch exclude def from alloc unalloc using
|
||||||
|
syntax keyword xmkKeyword pcode start stop
|
||||||
|
syntax keyword xmkKeyword int vd chr str stat flt db tab const
|
||||||
|
|
||||||
|
syntax keyword xmkKeyword xmkver
|
||||||
|
|
||||||
|
highlight link xmkKeyword Keyword
|
||||||
|
highlight link xmkFunction Function
|
||||||
|
|
||||||
|
syntax match xmkOperator "\v\="
|
||||||
|
syntax match xmkOperator "\v\*"
|
||||||
|
syntax match xmkOperator "\v/"
|
||||||
|
syntax match xmkOperator "\v\+"
|
||||||
|
syntax match xmkOperator "\v-"
|
||||||
|
syntax match xmkOperator "\v\?"
|
||||||
|
syntax match xmkOperator "\v\*\="
|
||||||
|
syntax match xmkOperator "\v/\="
|
||||||
|
syntax match xmkOperator "\v\+\="
|
||||||
|
syntax match xmkOperator "\v-\="
|
||||||
|
syntax match xmkOperator "\v\!\="
|
||||||
|
|
||||||
|
highlight link xmkOperator Operator
|
||||||
|
|
||||||
|
syntax region xmkString start=/\v"/ skip=/\v\\./ end=/\v"/
|
||||||
|
syntax region xmkString start=/\v'/ skip=/\v\\./ end=/\v'/
|
||||||
|
highlight link xmkString String
|
||||||
|
|
||||||
|
syntax match xmkComment "\v//.*$"
|
||||||
|
highlight link xmkComment Comment
|
||||||
|
|
||||||
|
let b:current_syntax = "xmk"
|
Loading…
Reference in New Issue
Block a user