This commit is contained in:
Katt 2024-08-27 08:55:18 +02:00
commit 93c1477217
26 changed files with 1240 additions and 0 deletions

170
LICENSE Normal file
View file

@ -0,0 +1,170 @@
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensors permission is not necessary for any reasonfor example, because of any applicable exception or limitation to copyrightthen that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
Section 1 Definitions.
a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
c. BY-NC-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License.
d. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
e. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
f. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
g. License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution, NonCommercial, and ShareAlike.
h. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
i. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
j. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
k. NonCommercial means not primarily intended for or directed towards commercial advantage or monetary compensation. For purposes of this Public License, the exchange of the Licensed Material for other material subject to Copyright and Similar Rights by digital file-sharing or similar means is NonCommercial provided there is no payment of monetary compensation in connection with the exchange.
l. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
m. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
n. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
Section 2 Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
A. reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only; and
B. produce, reproduce, and Share Adapted Material for NonCommercial purposes only.
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
3. Term. The term of this Public License is specified in Section 6(a).
4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
5. Downstream recipients.
A. Offer from the Licensor Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
B. Additional offer from the Licensor Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapters License You apply.
C. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this Public License.
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties, including when the Licensed Material is used other than for NonCommercial purposes.
Section 3 License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified form), You must:
A. retain the following if it is supplied by the Licensor with the Licensed Material:
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of warranties;
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
b. ShareAlike.In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
1. The Adapters License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-NC-SA Compatible License.
2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
Section 4 Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database for NonCommercial purposes only;
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
Section 5 Disclaimer of Warranties and Limitation of Liability.
a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
Section 6 Term and Termination.
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
Section 7 Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
Section 8 Interpretation.
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
Creative Commons may be contacted at creativecommons.org.

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# mydotfiles
Shared .dotfiles

63
nvim/init.vim Normal file
View file

@ -0,0 +1,63 @@
" Katt's (n)VimRC UwU
"" http://vimdoc.sourceforge.net/htmldoc/options.html
"" Lua snippets can be embedded with 'lua << [trim] foobar', and 'foobar'. See 'lua-heredoc'.
"" If compatible, set to nocp. Better than setting it permanently due to
"" certain vim utilities not liking :set nocp. Does nothing in nVim.
if &compatible
set nocompatible
endif
if has('nvim')
"" Load mini.deps and plugins
lua << trim
require('minideps-init')
.
endif
"" Disable providers not used (from :che)
let g:loaded_ruby_provider = 0
let g:loaded_perl_provider = 0
""let g:loaded_python3_provider = 0
let g:loaded_node_provider = 0
"" Clipboard provider
set clipboard+=unnamedplus "" Clipboard shared with the system one.
"" Persistent undo, localized ENTIERLY within the Vim directory.
set undofile
set undodir=~/.config/nvim/undo
"" User-settings
set termguicolors "" Enables full color support explicitly
set colorcolumn=80 "" Column line at 80 chars
set number "" Show line-numbers
set bs=2 "" Modern backspace behaviour, same as "indent,eol,start"
set virtualedit=onemore "" Enable free-range cursor
set undolevels=10666 "" Number of undo levels
set mouse=a "" Enables mouse support for all levels. Odd behavour with ConEmu?
set ruler "" Show row and column ruler information
set showmatch "" Highlight matching brace
set nowrap "" Do not wrap lines
""set showbreak=+++ "" Wrap-broken line prefix
""set textwidth=80 "" Line wrap (number of cols)
set visualbell "" Use visual bell (no beeping)
set hlsearch "" Highlight all search results
set smartcase "" Enable smart-case search (ignore case unless uppercase used)
set ignorecase "" Always case-insensitive
set incsearch "" Searches for strings incrementally
set autoindent "" Auto-indent new lines
set cindent "" Use 'C' style program indenting
set shiftwidth=4 "" Number of auto-indent spaces
set smartindent "" Enable smart-indent
set smarttab "" Enable smart-tabs
set softtabstop=3 "" Number of spaces per Tab
set hidden "" Change between buffers without having to save.
set whichwrap+=<,> "" Cursor wraps at BOL/EOL. Removed h,l because not recommended?
set showtabline=2 "" Always show tabline (default showing only if two tabs open
set title "" Enables window title reflecting filepath.
set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:~:.:h\")})%)%(\ %a%) "" Sets the titlestring. See 'statusline' for options.
"" Keybinds
nmap <esc><esc> :noh<return> "" Double-tap escape to stop search highlight (instead of permanently setting it off)

View file

@ -0,0 +1,43 @@
-- Config file for mini.deps
-- Set up paths for cloning (concat nvim 'data' with /site/)
local path_package = vim.fn.stdpath('data') .. '/site/'
local mini_path = path_package .. 'pack/deps/start/mini.deps'
--- Uncomment to check what the fuck is going on with paths
--vim.print(path_package)
--vim.print(mini_path)
--print(vim.inspect(vim.api.nvim_list_runtime_paths()))
if not vim.loop.fs_stat(mini_path) then
vim.cmd('redraw')
local userinput = vim.fn.input("`mini.deps` was not found, install? [y/n]", "n")
if userinput == "y" or userinput == "Y" then
vim.cmd('echo "Installing `mini.deps`" | redraw')
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/echasnovski/mini.deps",
mini_path,
})
vim.cmd('packadd mini.deps | helptags ALL')
vim.cmd('echo "`mini.deps` has been installed :3" | redraw')
else
vim.cmd('echo "`mini.deps` will not be installed this session." | redraw')
end
end
-- Load mini.deps
require('mini.deps').setup({ path = { package = path_package } })
vim.print("mini.deps loaded")
vim.cmd('redraw')
-- Load plugins and confis from pack.d folder
vim.cmd('runtime! lua/pack.d/**/*.{lua}')
-- Use 'mini.deps'. `now()` and `later()` helpers can be used for a safe two-stage
-- startup (optional).
--local add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later

View file

@ -0,0 +1,9 @@
-- Install using mini.deps
MiniDeps.add({
name = 'icons-miniicons',
source = 'echasnovski/mini.icons',
})
-- Init
require('mini.icons').setup()
-- print("OwO")

View file

@ -0,0 +1,15 @@
-- Highlighting based on tree-sitter. Used by other plugins.
MiniDeps.add({
name = 'treesitter',
source = 'nvim-treesitter/nvim-treesitter',
})
-- Init
require('nvim-treesitter').setup()
require('nvim-treesitter.configs').setup({
ensure_installed = { "c", "printf", "lua", "luadoc", "luap", "vim", "vimdoc", "python", "markdown", "markdown_inline",},
highlight = {
enable = true,
additional_vim_regex_highlighting = true,
},
})

View file

@ -0,0 +1,16 @@
-- Sudo in nVim
-- Bug: Will save file spite saying file couldn't be written to. nVim will also
-- say the buffer changed.
-- Conflicts with oil.nvim?
MiniDeps.add({
name = 'SuEdit',
source = 'Grafcube/suedit.nvim',
-- Requires toggleterm.nvim
depends = { 'akinsho/toggleterm.nvim' },
})
-- Init (lazy)
-- MiniDeps.later(function () require('suedit').setup() end)
-- require('suedit').setup()

View file

@ -0,0 +1,12 @@
-- Vim helper script for UNIX (provides SudoWrite and more)
-- Currently as of writting (21.08.24), Sudo functionality does not work with nVim
MiniDeps.add({
-- name = 'vim-utility-eunuch',
name = 'vim-utility-eunuch-nosudo',
-- source = 'tpope/vim-eunuch',
source = 'adizero/vim-eunuch',
})
-- No require fuction since it's a Vim-script.
-- MiniDeps.now(function() require('vim-utility-eunuch-nosudo').setup() end)

View file

@ -0,0 +1,16 @@
-- WezTerm intigration for nVim
MiniDeps.add({
name = 'wezterm',
source = 'willothy/wezterm.nvim',
})
-- Check if the executable is 'wezterm', and lazy load.
if vim.fn.executable("wezterm") then
MiniDeps.later(function() require('wezterm').setup() end)
print("WezTerm'd! :3")
vim.cmd('redraw')
else
print("WezTerm'nt >:v")
vim.cmd('redraw')
end

View file

@ -0,0 +1,39 @@
-- Manager for LSP (Language Server Protocol), DAP (Debug Adapter Protocol),
-- linters, and formaters.
MiniDeps.add({
name = 'mason',
source = 'williamboman/mason.nvim',
depends = {
'williamboman/mason-lspconfig.nvim',
'neovim/nvim-lspconfig',
'mfussenegger/nvim-dap',
'nvim-neotest/nvim-nio',
'rcarriga/nvim-dap-ui',
'mfussenegger/nvim-lint',
}
})
require('mason').setup({
ui = {
-- Using Nerd Font symbols
icons = {
package_installed = "󰸞",
package_pending = "󱥸",
package_uninstalled = ""
}
}
})
require('lspconfig')
require('mason-lspconfig').setup({
-- Default installs
ensure_installed = {
'lua_ls',
'clangd',
'marksman',
},
})
-- Activate LSP
require("lspconfig").lua_ls.setup {}
require("lspconfig").clangd.setup {}

View file

@ -0,0 +1,11 @@
-- Decorations for vimdoc/help files in Neovim.
MiniDeps.add({
name = 'helpview',
source = 'OXY2DEV/helpview.nvim',
depends = {
"nvim-treesitter/nvim-treesitter"
}
})
require("helpview").setup()

View file

@ -0,0 +1,25 @@
-- Visual indentation and chunks
MiniDeps.add({
name = 'hlchunk',
source = 'shellRaining/hlchunk.nvim',
require = {
"nvim-treesitter/nvim-treesitter"
},
})
require("hlchunk").setup({
indent = {
enable = true,
use_treesitter = true,
chars = {
-- "|"
""
-- "▌"
},
{ bg = vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("Whitespace")), "fg", "gui") },
},
-- Exclude default filetypes
exclude_filetype = exclude_ft,
})

View file

@ -0,0 +1,24 @@
-- Better f/t hop behaviour
MiniDeps.add{
name = 'improved-ft',
source = 'backdround/improved-ft.nvim',
}
require("improved-ft").setup({
-- Maps default f/F/t/T/;/, keys.
-- default: false
use_default_mappings = true,
-- Ignores case of the given characters.
-- default: false
ignore_char_case = true,
-- Takes a last hop direction into account during repetition hops
-- default: false
use_relative_repetition = true,
-- Uses direction-relative offsets during repetition hops.
-- default: false
use_relative_repetition_offsets = true,
})

View file

@ -0,0 +1,11 @@
-- vim-vinegar like file explorer that opens the filesystem like a normal nvim buffer.
-- Default: Use <CR> to open a file/directory, and - to go up a directory
MiniDeps.add({
name = 'oil',
source = 'stevearc/oil.nvim',
})
require("oil").setup()
vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" })

17
nvim/lua/pack.d/test.lua Normal file
View file

@ -0,0 +1,17 @@
-- File to test scripting
--local userinput = vim.fn.input("Test: ")
--vim.cmd('redraw')
-- Don't know how to call this API
--vim.api.nvim__redraw()
--vim.print(string.format("1: %s\n", userinput))
--if userinput == "meow" or userinput =="miauw" then
-- vim.print(":o !")
--else
-- vim.print("ùwú !")
--end
-- Concats but no new line.
--vim.print("2: " .. userinput)

View file

@ -0,0 +1,9 @@
-- Install using mini.deps
MiniDeps.add({
name = 'theme-dracula',
source = 'Mofiqul/dracula.nvim',
})
-- Sets the theme
vim.cmd[[colorscheme dracula]]

View file

@ -0,0 +1,9 @@
-- Install using mini.deps
MiniDeps.add({
name = 'icons-miniicons',
source = 'echasnovski/mini.icons',
})
-- Init
require('mini.icons').setup()
-- print("OwO")

View file

@ -0,0 +1,11 @@
-- Vim helper script for UNIX (provides SudoWrite and more)
-- Currently as of writting (21.08.24), Sudo functionality does not work with nVim
MiniDeps.add({
-- name = 'vim-utility-eunuch',
name = 'vim-utility-eunuch-nosudo',
-- source = 'tpope/vim-eunuch',
source = 'adizero/vim-eunuch',
})
-- MiniDeps.now(function() require('vim-utility-eunuch-nosudo').setup() end)

View file

@ -0,0 +1 @@
vim.print("Hewwo again")

View file

@ -0,0 +1,9 @@
-- Install using mini.deps
MiniDeps.add({
name = 'theme-dracula',
source = 'Mofiqul/dracula.nvim',
})
-- Sets the theme
vim.cmd[[colorscheme dracula]]

2
nvim/plugs.md Normal file
View file

@ -0,0 +1,2 @@
To check:
* [EasyMotion-like hop plugin](https://github.com/smoka7/hop.nvim)

141
nvim/syntax/acs.vim Normal file
View file

@ -0,0 +1,141 @@
" Vim syntax file
" Language: acs
" Author: PROPHESSOR <xenteze@gmail.com>
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
" tuning parameters:
" unlet acs_fold
if !exists("main_syntax")
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
let main_syntax = 'acs'
elseif exists("b:current_syntax") && b:current_syntax == "acs"
finish
endif
" Drop fold if it set but vim doesn't support it.
if version < 600 && exists("acs_fold")
unlet acs_fold
endif
syntax case ignore
syn match acsLineComment "\/\/.*" contains=@Spell,acsCommentTodo
syn match acsCommentSkip "^[ \t]*\*\($\|[ \t]\+\)"
syn match acsSpecial "\\\d\d\d\|\\."
syn match acsSpecialCharacter "'\\.'"
syn match acsNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
syn match acsTypeModifier /[sif]:/
syn match acsPreprocessor /#include/
syn match acsPreprocessor /#library \w\+/
syn match Float /\d\+\(\.\d\)\=/ "TODO: acsNumber
syn match Function /\w\+\((\)\@=/
syn region acsComment start="/\*" end="\*/" contains=@Spell,acsCommentTodo fold
syn region acsString start=/"/ end=/"/ skip=/\\"/ contains=acsCommentTodo fold
"syn keyword acsPreprocessor #include #libraray
syn keyword acsCommentTodo TODO FIXME XXX TBD contained
syn keyword acsConditional if else switch
syn keyword acsRepeat while for do
syn keyword acsBranch break continue
syn keyword acsType int bool str float void
syn keyword acsStatement return function script
syn keyword acsBoolean true false
syn keyword acsNull null
syn keyword acsIdentifier OFF OPEN ENTER DEATH RESPAWN
syn keyword acsLabel case default
syn keyword acsException try catch
syn keyword acsMessage print
syn keyword acsGlobal self window top parent
syn match acsMember /Sector_\w\+/
syn match acsMember /Level_\w\+/
syn match acsMember /Door_\w\+/
syn match acsMember /Floor_\w\+/
syn match acsMember /Ceiling_\w\+/
syn match acsMember /HUD_\w\+/
syn match acsMember /ACS_\w\+/
syn keyword acsReserved const
if exists("acs_fold")
syn match acsScript "\<function\>"
syn region acsScriptFold start="\<function\>.*[^};]$" end="^\z1}.*$" transparent fold keepend
syn sync match acsSync grouphere acsScriptFold "\<function\>"
syn sync match acsSync grouphere NONE "^}"
setlocal foldmethod=syntax
setlocal foldtext=getline(v:foldstart)
else
syn keyword acsScript Script
syn match acsBraces "[{}\[\]]"
syn match acsParens "[()]"
endif
syn sync fromstart
if main_syntax == "acs"
syn sync ccomment acsComment
endif
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_acs_syn_inits")
if version < 508
let did_acs_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command! -nargs=+ HiLink hi def link <args>
endif
HiLink acsComment Comment
HiLink acsLineComment Comment
HiLink acsPreprocessor PreProc
HiLink acsCommentTodo Todo
HiLink acsSpecial Special
HiLink acsStringS String
HiLink acsStringD String
HiLink acsString String
HiLink acsCharacter Character
HiLink acsSpecialCharacteracs Special
HiLink acsNumber Float
HiLink acsConditional Conditional
HiLink acsRepeat Repeat
HiLink acsBranch Conditional
HiLink acsOperator Operator
HiLink acsType Type
HiLink acsTypeModifier Type
HiLink acsStatement Statement
HiLink acsFunction Function
HiLink acsBraces Function
HiLink acsError Error
HiLink acsNull Keyword
HiLink acsBoolean Boolean
HiLink acsRegexpString String
HiLink acsIdentifier Identifier
HiLink acsLabel Label
HiLink acsException Exception
HiLink acsMessage Keyword
HiLink acsGlobal Keyword
HiLink acsMember Keyword
HiLink acsReserved Keyword
HiLink acsConstant Label
delcommand HiLink
endif
let b:current_syntax = "acs"
if main_syntax == 'acs'
unlet main_syntax
endif
" Default file associations
au BufRead,BufNewFile *.acs set filetype=acs
au BufRead,BufNewFile acs.* set filetype=acs

149
nvim/syntax/decorate.vim Normal file
View file

@ -0,0 +1,149 @@
" Vim syntax file
" Language: decorate
" Author: PROPHESSOR <xenteze@gmail.com>
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
" tuning parameters:
" unlet decorate_fold
if !exists("main_syntax")
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
let main_syntax = 'decorate'
elseif exists("b:current_syntax") && b:current_syntax == "decorate"
finish
endif
" Drop fold if it set but vim doesn't support it.
if version < 600 && exists("decorate_fold")
unlet decorate_fold
endif
syntax case ignore
syn match decorateLineComment "\/\/.*" contains=@Spell,decorateCommentTodo
syn match decorateCommentSkip "^[ \t]*\*\($\|[ \t]\+\)"
syn match decorateSpecial "\\\d\d\d\|\\."
syn match decorateSpecialCharacter "'\\.'"
syn match decorateNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
syn match decorateTypeModifier /[sif]:/
syn match decoratePreprocessor /#include/
syn match decoratePreprocessor /#library \w\+/
syn match Float /\d\+\(\.\d\)\=/ "TODO: decorateNumber
syn match Float /\d\+\(\x\[0-9A-Fa-f]\+\)\=/ "TODO: decorateNumber
syn match Function /\w\+\((\)\@=/
syn match decorateStateAction /GoTo\s\+[A-Za-z0-9.]\+/
syn match decorateState /[A-Za-z0-9.]\+:/
syn match decorateSprite /[A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9]\s\+[A-Z]\+/
syn match decorateProperty /Player\.\w\+/
syn match decorateProperty /Inventory\.\w\+/
syn match decorateProperty /Weapon\.\w\+/
syn match decorateProperty /[+]\w\+/
syn match decorateProperty /-\w\+/
syn match Function /A_\w\+/
syn match Tag /user_\w\+/
syn region decorateComment start="/\*" end="\*/" contains=@Spell,decorateCommentTodo fold
syn region decorateString start=/"/ end=/"/ skip=/\\"/ contains=decorateCommentTodo fold
syn keyword decorateCommentTodo TODO FIXME XXX TBD contained
syn keyword decorateConditional A_JumpIf
"syn keyword decorateRepeat while for do
syn keyword decorateBranch replaces
syn keyword decorateType int float
syn keyword decorateStatement var
"syn keyword decorateBoolean true false
"syn keyword decorateNull null
syn keyword decorateStateAction Stop Loop Wait Fail
syn keyword decorateLabel Actor States
"syn keyword decorateException try catch
"syn keyword decorateMessage print
"syn keyword decorateGlobal self window top parent
"syn keyword decorateMember Sector_ Level_ Door_ Floor_ Ceiling_ HUD_
"syn keyword decorateReserved .
set foldmethod=indent
if exists("decorate_fold")
syn match decorateScript "\<function\>"
syn region decorateScriptFold start="\<function\>.*[^};]$" end="^\z1}.*$" transparent fold keepend
setlocal foldmethod=syntax
setlocal foldtext=getline(v:foldstart)
else
syn keyword decorateScript Script
syn match decorateBraces "[{}\[\]]"
syn match decorateParens "[()]"
endif
syn sync fromstart
if main_syntax == "decorate"
syn sync ccomment decorateComment
endif
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_decorate_syn_inits")
if version < 508
let did_decorate_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command! -nargs=+ HiLink hi def link <args>
endif
HiLink decorateProperty Structure
HiLink decorateSprite Tag
HiLink decorateState Macro
HiLink decorateComment Comment
HiLink decorateLineComment Comment
HiLink decoratePreprocessor Comment
HiLink decorateCommentTodo Todo
HiLink decorateSpecial Special
HiLink decorateStringS String
HiLink decorateStringD String
HiLink decorateString String
HiLink decorateCharacter Character
HiLink decorateSpecialCharacterdecorate Special
HiLink decorateNumber Float
HiLink decorateConditional Conditional
HiLink decorateRepeat Repeat
HiLink decorateBranch Conditional
HiLink decorateOperator Operator
HiLink decorateType Type
HiLink decorateTypeModifier Type
HiLink decorateStatement Statement
HiLink decorateFunction Function
HiLink decorateBraces Function
HiLink decorateError Error
HiLink decorateNull Keyword
HiLink decorateBoolean Boolean
HiLink decorateRegexpString String
HiLink decorateStateAction Identifier
HiLink decorateLabel Function
HiLink decorateException Exception
HiLink decorateMessage Keyword
HiLink decorateGlobal Keyword
HiLink decorateMember Keyword
HiLink decorateReserved Keyword
HiLink decorateConstant Label
delcommand HiLink
endif
let b:current_syntax = "decorate"
if main_syntax == 'decorate'
unlet main_syntax
endif
" Default file associations
au BufRead,BufNewFile *.dec set filetype=decorate
au BufRead,BufNewFile *.decorate set filetype=decorate
au BufRead,BufNewFile decorate.* set filetype=decorate

321
nvim/syntax/doomshader.vim Normal file
View file

@ -0,0 +1,321 @@
" Vim syntax file the OpenGL Shading Language
" Language: Doom GLSL Shader
" Author: PROPHESSOR <xenteze@gmail.com>
" File Types: .glsl
" Version: 1
" Notes: Adapted from c.vim - Bram Moolenaar <bram.vim.org>
" Adapted from cg.vim - Kevin Bjorke <kbjorke@nvidia.com>
" Adapted from glsl.vim - Nathan Cournia <nathan@cournia.com>
" Adapted from glsl330.vim - Kamil Patelczyk <patelczyk@gmail.com>
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" glslCommentGroup allows adding matches for special things in comments
syn cluster glslCommentGroup contains=glslTodo
"catch errors caused by wrong parenthesis and brackets
syn cluster glslParenGroup contains=glslParenError,glslIncluded,glslSpecial,glslCommentSkip,glslCommentString,glslComment2String,@glslCommentGroup,glslCommentStartError,glslUserCont,glslUserLabel,glslBitField,glslCommentSkip,glslOctalZero,glslCppOut,glslCppOut2,glslCppSkip,glslFormat,glslNumber,glslFloat,glslOctal,glslOctalError,glslNumbersCom,glslLayoutQual
if exists("c_no_bracket_error")
syn region glslParen transparent start='(' end=')' contains=ALLBUT,@glslParenGroup,glslCppParen,glslCppString,@Spell
" glslCppParen: same as glslParen but ends at end-of-line; used in glslDefine
syn region glslCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@glslParenGroup,glslParen,glslString,@Spell
syn match glslParenError display ")"
syn match glslErrInParen display contained "[{}]"
else
syn region glslParen transparent start='(' end=')' contains=ALLBUT,@glslParenGroup,glslCppParen,glslErrInBracket,glslCppBracket,glslCppString,@Spell
" glslCppParen: same as glslParen but ends at end-of-line; used in glslDefine
syn region glslCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@glslParenGroup,glslErrInBracket,glslParen,glslBracket,glslString,@Spell
syn match glslParenError display "[\])]"
syn match glslErrInParen display contained "[\]{}]"
syn region glslBracket transparent start='\[' end=']' contains=ALLBUT,@glslParenGroup,glslErrInParen,glslCppParen,glslCppBracket,glslCppString,@Spell
" glslCppBracket: same as glslParen but ends at end-of-line; used in glslDefine
syn region glslCppBracket transparent start='\[' skip='\\$' excludenl end=']' end='$' contained contains=ALLBUT,@glslParenGroup,glslErrInParen,glslParen,glslBracket,glslString,@Spell
syn match glslErrInBracket display contained "[);{}]"
endif
"integer number, or floating point number without a dot and with "f".
syn case ignore
syn match glslNumbers display transparent "\<\d\|\.\d" contains=glslNumber,glslFloat,glslOctalError,glslOctal
" Same, but without octal error (for comments)
syn match glslNumbersCom display contained transparent "\<\d\|\.\d" contains=glslNumber,glslFloat,glslOctal
syn match glslNumber display contained "\d\+\(u\=l\{0,2}\|ll\=u\)\>"
"hex number
syn match glslNumber display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>"
" Flag the first zero of an octal number as something special
syn match glslOctal display contained "0\o\+\(u\=l\{0,2}\|ll\=u\)\>" contains=glslOctalZero
syn match glslOctalZero display contained "\<0"
syn match glslFloat display contained "\d\+f"
"floating point number, with dot, optional exponent
syn match glslFloat display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\="
"floating point number, starting with a dot, optional exponent
syn match glslFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
"floating point number, without dot, with exponent
syn match glslFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>"
" flag an octal number with wrong digits
syn match glslOctalError display contained "0\o*[89]\d*"
syn case match
if exists("c_comment_strings")
" A comment can contain glslString, glslCharacter and glslNumber.
" But a "*/" inside a glslString in a glslComment DOES end the comment! So we
" need to use a special type of glslString: glslCommentString, which also ends on
" "*/", and sees a "*" at the start of the line as glslomment again.
" Unfortunately this doesn't very well work for // type of comments :-(
syntax match glslCommentSkip contained "^\s*\*\($\|\s\+\)"
syntax region glslCommentString contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end=+\*/+me=s-1 contains=glslSpecial,glslCommentSkip
syntax region glslComment2String contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end="$" contains=glslSpecial
syntax region glslCommentL start="//" skip="\\$" end="$" keepend contains=@glslCommentGroup,glslComment2String,glslCharacter,glslNumbersCom,glslSpaceError,@Spell
syntax region glslComment matchgroup=glslCommentStart start="/\*" matchgroup=NONE end="\*/" contains=@glslCommentGroup,glslCommentStartError,glslCommentString,glslCharacter,glslNumbersCom,glslSpaceError,@Spell
else
syn region glslCommentL start="//" skip="\\$" end="$" keepend contains=@glslCommentGroup,glslSpaceError,@Spell
syn region glslComment matchgroup=glslCommentStart start="/\*" matchgroup=NONE end="\*/" contains=@glslCommentGroup,glslCommentStartError,glslSpaceError,@Spell
endif
" keep a // comment separately, it terminates a preproc. conditional
syntax match glslCommentError display "\*/"
syntax match glslCommentStartError display "/\*"me=e-1 contained
syn region glslPreCondit start="^\s*#\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" end="//"me=s-1 contains=glslComment,glslCppString,glslCharacter,glslCppParen,glslParenError,glslNumbers,glslCommentError,glslSpaceError
syn match glslPreCondit display "^\s*#\s*\(else\|endif\)\>"
syn region glslCppOut start="^\s*#\s*if\s\+0\+\>" end=".\|$" contains=glslCppOut2
syn region glslCppOut2 contained start="0" end="^\s*#\s*\(endif\>\|else\>\|elif\>\)" contains=glslSpaceError,glslCppSkip
syn region glslCppSkip contained start="^\s*#\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*#\s*endif\>" contains=glslSpaceError,glslCppSkip
"syn match glslLineSkip "\\$"
syn cluster glslPreProglslGroup contains=glslPreCondit,glslIncluded,glslInclude,glslDefine,glslErrInParen,glslErrInBracket,glslUserLabel,glslSpecial,glslOctalZero,glslCppOut,glslCppOut2,glslCppSkip,glslFormat,glslNumber,glslFloat,glslOctal,glslOctalError,glslNumbersCom,glslString,glslCommentSkip,glslCommentString,glslComment2String,@glslCommentGroup,glslCommentStartError,glslParen,glslBracket,glslMulti
syn region glslDefine start="^\s*#\s*\(define\|undef\)\>" skip="\\$" end="$" end="//"me=s-1 contains=ALLBUT,@glslPreProglslGroup,@Spell
syn region glslPreProc start="^\s*#\s*\(pragma\>\|line\>\|error\>\|version\>\|extension\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@glslPreProglslGroup,@Spell
" Highlight User Labels
syn cluster glslMultiGroup contains=glslIncluded,glslSpecial,glslCommentSkip,glslCommentString,glslComment2String,@glslCommentGroup,glslCommentStartError,glslUserCont,glslUserLabel,glslBitField,glslOctalZero,glslCppOut,glslCppOut2,glslCppSkip,glslFormat,glslNumber,glslFloat,glslOctal,glslOctalError,glslNumbersCom,glslCppParen,glslCppBracket,glslCppString
syn region glslMulti transparent start='?' skip='::' end=':' contains=ALLBUT,@glslMultiGroup,@Spell
" Avoid matching foo::bar() in C++ by requiring that the next char is not ':'
syn cluster glslLabelGroup contains=glslUserLabel
syn match glslUserCont display "^\s*\I\i*\s*:$" contains=@glslLabelGroup
syn match glslUserCont display ";\s*\I\i*\s*:$" contains=@glslLabelGroup
syn match glslUserCont display "^\s*\I\i*\s*:[^:]"me=e-1 contains=@glslLabelGroup
syn match glslUserCont display ";\s*\I\i*\s*:[^:]"me=e-1 contains=@glslLabelGroup
syn match glslUserLabel display "\I\i*" contained
" Avoid recognizing most bitfields as labels
syn match glslBitField display "^\s*\I\i*\s*:\s*[1-9]"me=e-1
syn match glslBitField display ";\s*\I\i*\s*:\s*[1-9]"me=e-1
" Keywords and simple stuff
syn keyword glslTodo contained TODO FIXME XXX
syn keyword glslStorageClass const uniform
syn keyword glslStorageClass in out inout
syn keyword glslStorageClass centroid flat smooth noperspective
syn keyword glslStorageClass lowp mediump highp precision
syn keyword glslStorageClass invariant
syn keyword glslDoomPredefined InputTexture FragColor TexCoord
syn match glslLayout /\<layout\s*(\_.\{-})/hs=s,he=s+6 contains=glslLayoutQual,glslNumber
syn keyword glslStorageClassDeprec attribute varying
syn keyword glslLayoutQual contained shared packed std140 row_major column_major
syn keyword glslLayoutQual contained index line_strip lines lines_adjacency location
syn keyword glslLayoutQual contained max_vertices origin_upper_left pixel_center_integer points
syn keyword glslLayoutQual contained triangle_strip triangles triangles_adjacency
syn keyword glslStatement break continue discard return
syn keyword glslRepeat while for do
syn keyword glslConditional if else switch
syn keyword glslLabel case default
syn keyword glslConstant true false
syn keyword glslConstant __LINE__ __FILE__ __VERSION__
syn keyword glslType uint uvec2 uvec3 uvec4
syn keyword glslType float int void bool
syn keyword glslType mat2 mat3 mat4
syn keyword glslType mat2x2 mat2x3 mat2x4
syn keyword glslType mat3x2 mat3x3 mat3x4
syn keyword glslType mat4x2 mat4x3 mat4x4
syn keyword glslType vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4
syn keyword glslType sampler1D sampler2D sampler3D samplerCube
syn keyword glslType sampler1DShadow sampler2DShadow samplerCubeShadow
syn keyword glslType sampler1DArray sampler2DArray
syn keyword glslType sampler1DArrayShadow sampler2DArrayShadow
syn keyword glslType isampler1D isampler2D isampler3D isamplerCube
syn keyword glslType isampler1DArray isampler2DArray
syn keyword glslType usampler1D usampler2D usampler3D usamplerCube
syn keyword glslType usampler1DArray usampler2DArray
syn keyword glslType sampler2DRect sampler2DRectShadow isampler2DRect usampler2DRect
syn keyword glslType samplerBuffer isamplerBuffer usamplerBuffer
syn keyword glslType sampler2DMS isampler2DMS usampler2DMS
syn keyword glslType sampler2DMSArray isampler2DMSArray usampler2DMSArray
syn keyword glslStructure struct
" Swizzling
syn match glslSwizzle /\.[xyzw]\{1,4\}\>/
syn match glslSwizzle /\.[rgba]\{1,4\}\>/
syn match glslSwizzle /\.[stpq]\{1,4\}\>/
" Builtin variables
syn keyword glslState gl_FragCoord gl_FrontFacing gl_PointCoord gl_FragDepth
syn keyword glslState gl_VertexID gl_InstanceID gl_Position gl_PointSize
syn keyword glslState gl_PrimitiveIDIn gl_PrimitiveID gl_Layer gl_ViewportIndex
syn keyword glslState gl_ClipDistance gl_in
syn keyword glslStateDeprec gl_FragColor gl_FragData gl_TexCoord
syn keyword glslStateDeprec gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_FogFragCoord
syn keyword glslStateDeprec gl_Color gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2
syn keyword glslStateDeprec gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord
" Uniforms variables
syn keyword glslUniform gl_DepthRange
syn keyword glslUniformDeprec gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_NormalMatrix gl_NormalScale
syn keyword glslUniformDeprec gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse
syn keyword glslUniformDeprec gl_ModelViewMatrixTranspose gl_ProjectionMatrixTranspose gl_ModelViewProjectionMatrixTranspose
syn keyword glslUniformDeprec gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose
syn keyword glslUniformDeprec gl_Point gl_FrontMaterial gl_BackMaterial gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_Fog
syn keyword glslUniformDeprec gl_BackLightProduct gl_ClipPlane gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT
syn keyword glslUniformDeprec gl_FrontLightProduct gl_LightSource gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS
syn keyword glslUniformDeprec gl_ObjectPlaneT gl_TextureEnvColor gl_TextureMatrixInverseTranspose gl_TextureMatrixInverse
syn keyword glslUniformDeprec gl_TextureMatrixTranspose gl_TextureMatrix
" Builtin constants
syn keyword glslConstant gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVertexOutputComponents gl_MaxGeometryInputComponents
syn keyword glslConstant gl_MaxGeometryOutputComponents gl_MaxFragmentInputComponents gl_MaxVertexTextureImageUnits
syn keyword glslConstant gl_MaxCombinedTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxDrawBuffers
syn keyword glslConstant gl_MaxClipDistances gl_MaxGeometryTextureImageUnits gl_MaxGeometryOutputVertices gl_MaxGeometryTotalOutputComponents
syn keyword glslConstant gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents
syn keyword glslConstantDeprec gl_MaxVaryingFloats gl_MaxVaryingComponents
syn keyword glslConstantDeprec gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxClipPlanes
" Built in functions
syn keyword glslFunc abs acos acosh asin asinh atan atanh ceil cos cosh degrees exp exp2 floor fract inversesqrt log
syn keyword glslFunc log2 max min mod modf pow radians round roundEven sign sin sinh sqrt tan tanh trunc
syn keyword glslFunc clamp cross distance dot floatBitsToInt floatBitsToUint intBitsToFloat isinf isnan
syn keyword glslFunc length mix normalize smoothstep step
syn keyword glslFunc all any determinant equal faceforward
syn keyword glslFunc greaterThan greaterThanEqual imulExtended inverse lessThan lessThanEqual matrixCompMult
syn keyword glslFunc not notEqual outerProduct reflect refract transpose
syn keyword glslFunc textureSize texture textureProj textureLod textureOffset texelFetch texelFetchOffset
syn keyword glslFunc textureProjOffset textureLodOffset textureProjLod textureProjLodOffset textureGrad textureGradOffset
syn keyword glslFunc textureProjGrad textureProjGradOffset
syn keyword glslFunc dFdx dFdy fwidth
syn keyword glslFunc noise1 noise2 noise3 noise4
syn keyword glslFunc EmitVertex EndPrimitive
syn keyword glslFuncDeprec ftransform
syn keyword glslFuncDeprec texture1D texture1DProj texture1DProj texture1DLod texture1DProjLod texture1DProjLod texture2D
syn keyword glslFuncDeprec texture2DProj texture2DProj texture2DLod texture2DProjLod texture2DProjLod texture3D texture3DProj
syn keyword glslFuncDeprec texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj
syn keyword glslFuncDeprec shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod
" Highlight unsupported keywords
syn keyword glslUnsupported asm
syn keyword glslUnsupported class union enum typedef template this packed
syn keyword glslUnsupported common partition active
syn keyword glslUnsupported filter
syn keyword glslUnsupported goto
syn keyword glslUnsupported hvec2 hvec3 hvec4 fvec2 fvec3 fvec4
syn keyword glslUnsupported iimage1D iimage2D iimage3D iimageCube
syn keyword glslUnsupported iimage1DArray iimage2DArray uimage1DArray uimage2DArray
syn keyword glslUnsupported image1D image2D image3D imageCube
syn keyword glslUnsupported image1DArray image2DArray
syn keyword glslUnsupported image1DArrayShadow image2DArrayShadow
syn keyword glslUnsupported image1DShadow image2DShadow
syn keyword glslUnsupported imageBuffer iimageBuffer uimageBuffer
syn keyword glslUnsupported inline noinline volatile public static extern external interface
syn keyword glslUnsupported input output
syn keyword glslUnsupported long short half fixed unsigned superp
syn keyword glslUnsupported namespace using
syn keyword glslUnsupported sampler3DRect
syn keyword glslUnsupported sizeof cast
syn keyword glslUnsupported uimage1D uimage2D uimage3D uimageCube
syn keyword glslUnsupported double dvec2 dvec3 dvec4
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_glsl_syn_inits")
if version < 508
let did_glsl_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink glslCharacter Character
HiLink glslComment Comment
HiLink glslComment2String glslString
HiLink glslCommentError glslError
HiLink glslCommentL glslComment
HiLink glslCommentSkip glslComment
HiLink glslCommentStart glslComment
HiLink glslCommentStartError glslError
HiLink glslCommentString glslString
HiLink glslCppOut Comment
HiLink glslCppOut2 glslCppOut
HiLink glslCppSkip glslCppOut
HiLink glslCppString glslString
HiLink glslDefine Macro
HiLink glslErrInBracket glslError
HiLink glslErrInParen glslError
HiLink glslError Error
HiLink glslFloat Float
HiLink glslFormat glslSpecial
HiLink glslInclude Include
HiLink glslIncluded glslString
HiLink glslNumber Number
HiLink glslOctal Number
HiLink glslOctalError glslError
HiLink glslOctalZero PreProc
HiLink glslOperator Operator
HiLink glslParenError glslError
HiLink glslPreCondit PreCondit
HiLink glslPreProc PreProc
HiLink glslSpaceError glslError
HiLink glslSpecial SpecialChar
HiLink glslSpecialCharacter glslSpecial
HiLink glslSpecialError glslError
HiLink glslString String
HiLink glslConditional Conditional
HiLink glslConstant Constant
HiLink glslFunc glslStatement
HiLink glslFuncDeprec WarningMsg
HiLink glslLabel Label
HiLink glslLayoutQual glslFunc
HiLink glslRepeat Repeat
HiLink glslState glslType
HiLink glslStateDeprec WarningMsg
HiLink glslStatement Statement
HiLink glslStorageClass StorageClass
HiLink glslLayout StorageClass
HiLink glslStorageClassDeprec WarningMsg
HiLink glslStructure Structure
HiLink glslSwizzle SpecialChar
HiLink glslTodo Todo
HiLink glslType Type
HiLink glslUniform glslType
HiLink glslUniformDeprec WarningMsg
HiLink glslUnsupported glslError
HiLink glslUserLabel Label
HiLink glslDoomPredefined Identifier
delcommand HiLink
endif
let b:current_syntax = "doomshader"
" Default file associations
au BufRead,BufNewFile *.fp set filetype=doomshader
au BufRead,BufNewFile *.vp set filetype=doomshader

73
nvim/syntax/sndinfo.vim Normal file
View file

@ -0,0 +1,73 @@
" Vim syntax file
" Language: sndinfo
" Author: PROPHESSOR <xenteze@gmail.com>
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
" tuning parameters:
" unlet sndinfo_fold
if !exists("main_syntax")
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
let main_syntax = 'sndinfo'
elseif exists("b:current_syntax") && b:current_syntax == "sndinfo"
finish
endif
" Drop fold if it set but vim doesn't support it.
if version < 600 && exists("sndinfo_fold")
unlet sndinfo_fold
endif
syntax case ignore
setlocal iskeyword+=$
syn match Comment "\/\/.*" contains=@Spell,Todo
syn match Comment "^[ \t]*\*\($\|[ \t]\+\)"
syn match Number "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
syn match Float /\b\d\+\(\.\d\)\=\b/
syn match Float /\b\d\+\(\x\[0-9A-Fa-f]\+\)\=\b/ "TODO: sndinfoNumber
syn match VisualNOS /[\s\n]\@=\s\@<=\([.A-Za-z0-9_-]\+\)\/\(.\+\)/ " weapons/test
syn match Identifier /*[a-z0-9]\+/
syn region Comment start="/\*" end="\*/" contains=@Spell,Todo fold
syn region String start=/"/ end=/"/ skip=/\\"/ contains=Todo fold
syn keyword Todo TODO FIXME XXX TBD contained
syn keyword Statement $alias $ambient $archivepath $attenuation $edfoverride $ifdoom $ifheretic $ifhexeni $ifstrife $limit $map $mididevice $musicalias $musicvolume $pitchshift $pitchshiftrange $playeralias $playercompat $playersound $playersounddup $random $registered $rolloff $singular $volume
syn keyword Type male female other
set foldmethod=indent
syn sync fromstart
if main_syntax == "sndinfo"
syn sync ccomment sndinfoComment
endif
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_sndinfo_syn_inits")
if version < 508
let did_sndinfo_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command! -nargs=+ HiLink hi def link <args>
endif
delcommand HiLink
endif
let b:current_syntax = "sndinfo"
if main_syntax == 'sndinfo'
unlet main_syntax
endif
" Default file associations
au BufRead,BufNewFile SNDINFO set filetype=sndinfo
au BufRead,BufNewFile SNDINFO.* set filetype=sndinfo

41
wezterm/wezterm.lua Normal file
View file

@ -0,0 +1,41 @@
-- Debug console: CTRL-SHIFT-L
-- Command palette: CTRL-SHIFT-P
-- Pull in wezterm API
local wezterm = require 'wezterm'
return {
-- # Initial window resolution is tiny. Doubled it.
initial_cols = 160,
initial_rows = 48,
animation_fps = 25,
-- Note: Revert this back to version 9 of Unicode if apps breaks.
unicode_version = 14,
default_cursor_style = 'BlinkingBar',
-- color_scheme = "Duotone Dark",
color_scheme = "Dracula+",
-- color_scheme = "C64",
-- color_scheme = "BlueBerryPie",
font_size = 16.0,
-- No desktop notifications of missing glyphs.
warn_about_missing_glyphs = false,
-- Only look for fonts in config dirs.
font_locator = "ConfigDirsOnly",
font_dirs = {
os.getenv("HOME") .. "/.fonts",
'/usr/share/fonts/',
},
-- freetype_load_target = "Light",
-- Note: You'll need to load a non-Nerd font as fallback, otherwise certain symbols break.
font = wezterm.font_with_fallback{
'Monofur Nerd Font Mono',
{ family = 'Android Emoji', assume_emoji_presentation = true },
{ family = 'Noto Emoji', assume_emoji_presentation = true },
-- 'Symbols Nerd Font Mono',
-- 'Noto Sans Mono'
'DejaVu Sans Mono'
},
}