aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-10 18:36:22 -0400
committeriamcheeseman <[email protected]>2026-05-10 18:36:22 -0400
commit8e5173a2d25c8f79607f4806016276065abda41c (patch)
treebe4cfd1d2c7589d85b44f55ea8a966cb3bf3d776 /.config/nvim
parentf0bf896d1372c69d8ad7889564a28168954d8123 (diff)
update
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/ftdetect/microscript.lua7
-rw-r--r--.config/nvim/ftplugin/lua.lua3
-rw-r--r--.config/nvim/ftplugin/microscript.vim7
-rw-r--r--.config/nvim/init.lua95
-rw-r--r--.config/nvim/lsp/clangd.lua10
-rw-r--r--.config/nvim/lsp/lua_ls.lua17
-rw-r--r--.config/nvim/syntax/microscript.vim44
7 files changed, 0 insertions, 183 deletions
diff --git a/.config/nvim/ftdetect/microscript.lua b/.config/nvim/ftdetect/microscript.lua
deleted file mode 100644
index d14f783..0000000
--- a/.config/nvim/ftdetect/microscript.lua
+++ /dev/null
@@ -1,7 +0,0 @@
----@diagnostic disable: undefined-global
-vim.api.nvim_create_autocmd({"BufNewFile", "BufRead"}, {
- pattern = {"*.us", "*.microscript"},
- callback = function()
- vim.o.filetype = "microscript"
- end
-})
diff --git a/.config/nvim/ftplugin/lua.lua b/.config/nvim/ftplugin/lua.lua
deleted file mode 100644
index 9c6b1dc..0000000
--- a/.config/nvim/ftplugin/lua.lua
+++ /dev/null
@@ -1,3 +0,0 @@
-vim.o.tabstop = 2
-vim.o.shiftwidth = 2
-vim.treesitter.stop() -- get this TRASH outta here
diff --git a/.config/nvim/ftplugin/microscript.vim b/.config/nvim/ftplugin/microscript.vim
deleted file mode 100644
index 10b9c5c..0000000
--- a/.config/nvim/ftplugin/microscript.vim
+++ /dev/null
@@ -1,7 +0,0 @@
-if exists("b:did_ftplugin")
- finish
-endif
-let b:did_ftplugin = 1
-
-setlocal comments="#"
-setlocal commentstring=#\ %s
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
deleted file mode 100644
index 7df64c2..0000000
--- a/.config/nvim/init.lua
+++ /dev/null
@@ -1,95 +0,0 @@
----@diagnostic disable: undefined-global
-vim.o.termguicolors = true
-vim.o.relativenumber = true
-vim.o.number = true
-vim.o.signcolumn = "no"
-vim.o.cc = "80"
-vim.o.splitright = true
-vim.o.splitbelow = true
-vim.o.ignorecase = true
-vim.o.winborder="single"
-vim.o.completeopt = "menu,menuone,noselect"
-
-vim.o.mouse = ""
-vim.o.guicursor = "n-c-sm-ve:block-Cursor,i-ci:block-Cursor_i,v:block-Cursor_v"
-
-vim.o.listchars = "tab:> ,trail:."
-vim.o.list = true
-
-vim.o.tabstop = 8
-vim.o.shiftwidth = 8
-vim.o.expandtab = true
-
-vim.o.undofile = true
-vim.o.backup = false
-vim.o.writebackup = false
-vim.o.swapfile = false
-
-vim.opt.cinoptions:append(":0,N-s,E-s,(s,Ws")
-
-vim.g.mapleader = " "
-vim.g.netrw_banner = 0
-
-vim.pack.add({
- "https://codeberg.org/comfysage/artio.nvim",
- "https://github.com/tpope/vim-fugitive",
-
- "https://git.iamcheeseman.net/mooncheese.nvim.git",
-})
-
-for _, plugin in ipairs(vim.pack.get()) do
- if not plugin.active then
- vim.pack.del({plugin.path:match(".*/(.*)$")})
- end
-end
-
-require("artio").setup({
- opts = {
- promptprefix = ">",
- pointer = ">",
- },
-})
-
-vim.keymap.set("n", "<leader>f", function()
- require("artio.builtins").files({
- findprg = [[ find . -type f -iregex '.*$*.*' -not -path '*/.*' ]]
- })
-end)
-vim.keymap.set("v", "p", '"_dP', opts)
-vim.keymap.set("n", "<leader>s", ":SwapFile<CR>")
-
--- Switch between semantically related files easily :)
-local exts = {{"c", "h"}, {"cc", "hh"}, {"cpp", "hpp"}, {"frag", "vert"}}
-vim.api.nvim_create_user_command("SwapFile", function()
- local bufpath = vim.api.nvim_buf_get_name(0)
- for _, pair in ipairs(exts) do
- for i, ext in ipairs(pair) do
- if bufpath:match("%." .. ext .. "$") then
- local other = pair[i % #pair + 1]
- vim.cmd("e " .. bufpath:gsub("%." .. ext .. "$", "." .. other))
- return
- end
- end
- end
- print("no files to swap to")
-end, {})
-
-vim.api.nvim_create_autocmd("LspAttach", {
- callback = function(ev)
- local opts = {silent=true, buffer=ev.buf}
- vim.keymap.set("n", "gD", function() vim.lsp.buf.declaration() end, opts)
- vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
- end,
-})
-
-vim.lsp.enable({"lua_ls", "clangd"})
-vim.diagnostic.config({
- virtual_text = true,
- severity_sort = true,
-})
-
-vim.cmd.colorscheme("mooncheese")
-vim.api.nvim_set_hl(0, "Cursor_i", {bg="#00FFFF"})
-vim.api.nvim_set_hl(0, "Cursor_v", {bg="#FF00FF"})
-
-require("vim._core.ui2").enable({enable = true})
diff --git a/.config/nvim/lsp/clangd.lua b/.config/nvim/lsp/clangd.lua
deleted file mode 100644
index cbe0fb3..0000000
--- a/.config/nvim/lsp/clangd.lua
+++ /dev/null
@@ -1,10 +0,0 @@
-return {
- cmd = {"clangd", "-j=6"},
- filetypes = {"c", "h", "cpp", "hpp", "cc", "hh"},
- root_markers = {
- ".clangd",
- "compile_commands.json",
- "compile_flags.txt",
- ".git",
- },
-}
diff --git a/.config/nvim/lsp/lua_ls.lua b/.config/nvim/lsp/lua_ls.lua
deleted file mode 100644
index ace2329..0000000
--- a/.config/nvim/lsp/lua_ls.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-return {
- cmd = {"lua-language-server"},
- filetypes = {"lua"},
- root_markers = {".luarc.json", ".git"},
- settings = {
- Lua = {
- runtime = {
- version = "LuaJIT",
- },
- diagnostics = {
- disable = {
- "lowercase-global",
- },
- },
- },
- },
-}
diff --git a/.config/nvim/syntax/microscript.vim b/.config/nvim/syntax/microscript.vim
deleted file mode 100644
index 213c934..0000000
--- a/.config/nvim/syntax/microscript.vim
+++ /dev/null
@@ -1,44 +0,0 @@
-if exists("b:current_syntax")
- finish
-endif
-
-syn keyword usStatement break next ret
-syn keyword usStructure let global
-syn keyword usLiteral true false zilch nada
-syn keyword usConditional else elseif
-syn keyword usOperator and or
-syn keyword usTodo TODO FIXME HACK XXX
-syn keyword usRepeat in
-
-syn region usIfEnd transparent matchgroup=usConditional start="\<if\>" end="\<end\>" contains=TOP
-syn region usRepeatEnd transparent matchgroup=usRepeat start="\<loop\>" end="\<end\>" contains=TOP
-syn region usDoEnd transparent matchgroup=usStatement start="\<do\>" end="\<end\>" contains=TOP
-syn region usFunEnd transparent matchgroup=usStructure start="\<fun\>" end="\<end\>" contains=TOP
-syn region usString start=/"/ end=/"/ contains=usSpecial
-syn region usString start=/'/ end=/'/ contains=usSpecial
-
-syn match usFunction /[a-zA-Z_][a-zA-Z0-9_:]*\ze(/
-syn match usLabel /<[a-zA-Z_][a-zA-Z0-9_:]*>$/
-syn match usSpecial contained /\\[\\"'tnr]/
-syn match usComment /\#.*/ contains=usTodo
-syn match usNumber /\<\d\+\>/
-syn match usNumber /\<\d\+\.\d*/
-syn match usSymbolOperator /=|\+=|-=|\*=|\/=|%=||\+|-|\*|\/|%|<|>|<=|>=|==|!=|!|\.|\.\./
-
-hi def link usStructure Structure
-hi def link usFunction Function
-hi def link usStatement Statement
-hi def link usLabel Label
-hi def link usConditional Conditional
-hi def link usRepeat Repeat
-hi def link usModifier StorageClass
-hi def link usString String
-hi def link usSpecial Special
-hi def link usOperator Operator
-hi def link usSymbolOperator usOperator
-hi def link usNumber Constant
-hi def link usLiteral Constant
-hi def link usComment Comment
-hi def link usTodo Todo
-
-let b:current_syntax = 'microscript'