diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-03-19 19:29:52 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-03-19 19:29:52 -0400 |
| commit | 75f923f59b4d5987bfbff8f7983e1f265e0247b8 (patch) | |
| tree | 350a7a9dffdfcd6fd372c32304fa41a92898b501 /.config/nvim | |
| parent | c762b8ff816db9537e6030f1daa618bcb13d8018 (diff) | |
refactor: Neovim Configuration in Fennel
Used antifennel to convert Lua Neovim configuration to fennel instead.
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/lua/plugins/download.lua | 7 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/harpoon.lua | 3 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/init.lua | 5 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/knap.lua | 8 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 3 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/treesitter.lua | 16 | ||||
| -rw-r--r-- | .config/nvim/lua/remaps.lua | 52 | ||||
| -rw-r--r-- | .config/nvim/lua/set.lua | 42 |
8 files changed, 4 insertions, 132 deletions
diff --git a/.config/nvim/lua/plugins/download.lua b/.config/nvim/lua/plugins/download.lua index 3b28179..384cc2a 100644 --- a/.config/nvim/lua/plugins/download.lua +++ b/.config/nvim/lua/plugins/download.lua @@ -18,9 +18,10 @@ require("lazy").setup({ { "nvim-treesitter/nvim-treesitter", tag = 'v0.10.0', build = ":TSUpdate" }, { "mbbill/undotree" }, { "ThePrimeagen/harpoon", branch = "harpoon2", dependencies = { 'nvim-lua/plenary.nvim' } }, - {'neovim/nvim-lspconfig'}, + { 'neovim/nvim-lspconfig' }, { "sainnhe/everforest" }, - {"Civitasv/cmake-tools.nvim"}, - {"frabjous/knap"}, + { "Civitasv/cmake-tools.nvim" }, + { "frabjous/knap" }, + { "rktjmp/hotpot.nvim" }, }) diff --git a/.config/nvim/lua/plugins/harpoon.lua b/.config/nvim/lua/plugins/harpoon.lua deleted file mode 100644 index cc60307..0000000 --- a/.config/nvim/lua/plugins/harpoon.lua +++ /dev/null @@ -1,3 +0,0 @@ -local harpoon = require("harpoon") -harpoon:setup() - diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua index f2ff2bc..809ff99 100644 --- a/.config/nvim/lua/plugins/init.lua +++ b/.config/nvim/lua/plugins/init.lua @@ -1,6 +1 @@ require("plugins.download") -require("plugins.treesitter") -require("plugins.lsp") -require("plugins.knap") -require("plugins.harpoon") - diff --git a/.config/nvim/lua/plugins/knap.lua b/.config/nvim/lua/plugins/knap.lua deleted file mode 100644 index 6ee24c1..0000000 --- a/.config/nvim/lua/plugins/knap.lua +++ /dev/null @@ -1,8 +0,0 @@ -local gknapsettings = { - texoutputext = "pdf", - textopdf = "tectonic %docroot%", - textopdfviewerlaunch = "sioyek %outputfile%", - textopdfviewerrefresh = "kill -HUP %pid%" -} -vim.g.knap_settings = gknapsettings - diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua deleted file mode 100644 index fe571e3..0000000 --- a/.config/nvim/lua/plugins/lsp.lua +++ /dev/null @@ -1,3 +0,0 @@ --- Enable preconfigured LSP's -vim.lsp.enable({"clangd", "gopls", "texlab", "rust-analyzer"}) - diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua deleted file mode 100644 index b75b2b3..0000000 --- a/.config/nvim/lua/plugins/treesitter.lua +++ /dev/null @@ -1,16 +0,0 @@ -require'nvim-treesitter.configs'.setup { - ensure_installed = { "c" }, - sync_install = false, - auto_install = true, - - highlight = { - enable = true, - - -- Setting this to true will run `:h syntax` and tree-sitter at the same time. - -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). - -- Using this option may slow down your editor, and you may see some duplicate highlights. - -- Instead of true it can also be a list of languages - additional_vim_regex_highlighting = false, - }, -} - diff --git a/.config/nvim/lua/remaps.lua b/.config/nvim/lua/remaps.lua deleted file mode 100644 index 854b61a..0000000 --- a/.config/nvim/lua/remaps.lua +++ /dev/null @@ -1,52 +0,0 @@ -vim.g.mapleader = " " - --- Netrw Directory Listing -vim.keymap.set("n", "<leader>pv", vim.cmd.Ex) - --- Quick Make -vim.keymap.set("n", "<leader>mk", vim.cmd.make) - --- Quick Save -vim.keymap.set("n", "<leader>w", vim.cmd.w) - --- Swap down -vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv") --- Swap up -vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv") - --- Concat line below with space -vim.keymap.set("n", "J", "mzJ`z") --- Page down with recenter -vim.keymap.set("n", "<C-d>", "<C-d>zz") --- Page up with recenter -vim.keymap.set("n", "<C-u>", "<C-u>zz") - -vim.keymap.set("n", "<C-h>", "<C-w>h") -vim.keymap.set("n", "<C-j>", "<C-w>j") -vim.keymap.set("n", "<C-k>", "<C-w>k") -vim.keymap.set("n", "<C-l>", "<C-w>l") - --- Telescope keybinds -local tsBuiltin = require('telescope.builtin') -vim.keymap.set('n', '<leader>ff', tsBuiltin.find_files, {}) -vim.keymap.set('n', '<leader>fp', tsBuiltin.git_files, {}) -vim.keymap.set('n', '<leader>ps', function() - tsBuiltin.grep_string({ search = vim.fn.input("Grep > ") }) -end) - -local harpoon = require("harpoon") -vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end) -vim.keymap.set("n", "<leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) - -vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle) - --- Knap Keybinds --- F5 processes the document once, and refreshes the view -vim.keymap.set('n', '<leader>kp', function() require("knap").process_once() end) - --- F6 closes the viewer application, and allows settings to be reset -vim.keymap.set('n', '<leader>ks', function() require("knap").close_viewer() end) - --- F7 toggles the auto-processing on and off -vim.keymap.set('n', '<leader>ka', function() require("knap").toggle_autopreviewing() end) - diff --git a/.config/nvim/lua/set.lua b/.config/nvim/lua/set.lua deleted file mode 100644 index ece5395..0000000 --- a/.config/nvim/lua/set.lua +++ /dev/null @@ -1,42 +0,0 @@ -vim.opt.nu = true -vim.opt.relativenumber = true - -vim.opt.tabstop = 4 -vim.opt.softtabstop = 4 -vim.opt.shiftwidth = 4 -vim.opt.expandtab = true - -vim.opt.smartindent = true - -vim.opt.wrap = true - -vim.opt.swapfile = false -vim.opt.backup = false -vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir" -vim.opt.undofile = true - -vim.opt.hlsearch = false -vim.opt.incsearch = true - -vim.opt.scrolloff = 8 -vim.opt.signcolumn = "yes" -vim.opt.isfname:append("@-@") - -vim.opt.updatetime = 50 - -vim.opt.colorcolumn = "120" - -vim.opt.mouse = 'a' - -vim.opt.list = true -vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣', leadmultispace = '·' } - --- Remove trailing whitespace -vim.api.nvim_create_autocmd({ "BufWritePre" }, { - pattern = { "*" }, - command = [[%s/\s\+$//e]], -}) - -vim.cmd.colorscheme 'everforest' -vim.cmd('set background=dark') - |
