Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Sync from WSL

+35 -24
+1 -1
nvim/init.lua
··· 5 5 -- Load Plugins 6 6 require("plugins") 7 7 -- Color Scheme 8 - vim.cmd.colorscheme "catppuccin" 8 + vim.cmd.colorscheme "noirbuddy" 9 9 -- vim.cmd([[colorscheme kanagawa]]) 10 10 -- Config for Nord, which I usually use 11 11 -- vim.g.nord_italic = false
+14 -13
nvim/lua/lsp.lua
··· 15 15 "pants.toml", "pyproject.toml", "setup.py", "setup.cfg", "Pipfile" 16 16 } 17 17 return util.find_git_ancestor(fname) or 18 - util.root_pattern(unpack(root_files))(fname) 18 + util.root_pattern(unpack(root_files))(fname) 19 19 end 20 20 }) 21 21 nvim_lsp.lua_ls.setup { ··· 27 27 }, 28 28 diagnostics = { 29 29 -- Get the language server to recognize the `vim` global 30 - globals = {"vim"} 30 + globals = { "vim" } 31 31 }, 32 32 workspace = { 33 33 -- Make the server aware of Neovim runtime files 34 34 library = vim.api.nvim_get_runtime_file("", true) 35 35 }, 36 36 -- Do not send telemetry data containing a randomized but unique identifier 37 - telemetry = {enable = false} 37 + telemetry = { enable = false } 38 38 } 39 39 } 40 40 } ··· 42 42 nvim_lsp.janet_lsp.setup { 43 43 cmd = { 44 44 "janet", 45 - "-i", 46 - "/home/noah/repos/janet-lsp/jpm_tree/lib/janet-lsp.jimage", 47 - "--stdio", 45 + "/home/noah/repos/janet-lsp/.jpm/bin/janet-lsp", 46 + "--stdio" 48 47 } 49 48 } 50 49 51 50 -- LSPs that just use default config 52 51 local simple_lsps = { 52 + --"htmx", 53 53 "nil_ls", "bzl", "bufls", "crystalline", "dockerls", 54 54 "erlangls", "elixirls", "fortls", "gleam", "gopls", "hls", "jsonls", 55 55 "vimls", "asm_lsp", "ccls", "pyright", -- ruff", idk if this is wrong? ··· 59 59 "ocamllsp", "reason_ls", "racket_langserver", "rust_analyzer", 60 60 "scheme_langserver", "sqls", "thriftls", "typst_lsp", "vhdl_ls", "yamlls", 61 61 "zls", "ts_ls", "eslint", "metals", "futhark_lsp", "roc_ls", 62 - -- disabled because broken 62 + -- disabled because it's broken 63 63 -- "scheme_langserver", 64 - -- "htmx", 65 64 } 66 65 -- #simple_lsps is the length of the table when treated as a list... funky! 67 - for _, v in pairs(simple_lsps) do nvim_lsp[v].setup { 68 - capabilities = capabilities 69 - } end 66 + for _, v in pairs(simple_lsps) do 67 + nvim_lsp[v].setup { 68 + capabilities = capabilities 69 + } 70 + end 70 71 71 72 nvim_lsp.fennel_ls.setup({ 72 73 capabilities = capabilities, ··· 78 79 -- Enable completion triggered by <c-x><x-o> 79 80 vim.bo[ev.buf].omnifunc = 'v:lua.vim.lsp.omnifunc' 80 81 81 - local opts = {noremap = true, silent = true, buffer = ev.buf} 82 + local opts = { noremap = true, silent = true, buffer = ev.buf } 82 83 local protocol = require("vim.lsp.protocol") 83 84 -- Mappings. 84 85 -- See `:help vim.lsp.*` for documentation on any of the below functions ··· 101 102 vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts) 102 103 vim.keymap.set("n", "<space>q", vim.diagnostic.setloclist, opts) 103 104 vim.keymap.set("n", "<space>f", 104 - function() vim.lsp.buf.format {async = true} end, opts) 105 + function() vim.lsp.buf.format { async = true } end, opts) 105 106 vim.keymap.set("n", "<space>s", vim.lsp.buf.workspace_symbol, opts) 106 107 107 108 -- require'completion'.on_attach(client, bufnr)
+20 -10
nvim/lua/plugins.lua
··· 27 27 "neanias/everforest-nvim", 28 28 version = false, 29 29 lazy = true, 30 - priority = 500, -- make sure to load this before all the other start plugins 30 + priority = 1000, -- make sure to load this before all the other start plugins 31 31 main = "everforest", 32 32 opts = { background = "hard" } 33 33 }, 34 34 { "rebelot/kanagawa.nvim", opts = { compile = true }, priority = 1000, lazy = true }, 35 + { 36 + 'jesseleite/nvim-noirbuddy', 37 + dependencies = { 38 + 'tjdevries/colorbuddy.nvim', 39 + }, 40 + lazy = false, 41 + priority = 1000, 42 + opts = { 43 + -- All of your `setup(opts)` will go here 44 + preset = "oxide", 45 + }, 46 + }, 35 47 -- show indents and whitespace characters 36 48 "lukas-reineke/indent-blankline.nvim", -- Completion 37 49 -- Completion ··· 80 92 "nvim-treesitter/nvim-treesitter-textobjects", 81 93 "nvim-treesitter/nvim-treesitter-context", 82 94 }, 83 - }, -- Git stuff 95 + }, -- Git stuff 84 96 -- GitGutter, shows inline difs 85 97 "airblade/vim-gitgutter", -- "tpope/vim-fugitive", -- old git command 86 98 { 87 99 "NeogitOrg/neogit", 88 100 dependencies = { 89 - "nvim-lua/plenary.nvim", -- required 101 + "nvim-lua/plenary.nvim", -- required 90 102 "sindrets/diffview.nvim", -- optional - Diff integration 91 103 "nvim-telescope/telescope.nvim" 92 104 }, ··· 96 108 { 97 109 "stevearc/conform.nvim", 98 110 lazy = true, 99 - opt = { 111 + opts = { 100 112 python = { "isort", "black" }, 101 113 lua = { "lua-format" }, 102 114 clojure = { "cljfmt" }, ··· 177 189 }, 178 190 }, 179 191 -- Lithsps 180 - --{ "m4xshen/autoclose.nvim" }, 181 192 { 182 193 "windwp/nvim-autopairs", 183 194 event = "InsertEnter", ··· 298 309 end, 299 310 }, 300 311 { "hiphish/rainbow-delimiters.nvim" }, 301 - --{ "gpanders/nvim-parinfer", ft = { "scheme", "scm", "lisp", "fennel", "clojure", "lua", "janet" } }, 302 312 -- Conjure, lisp is magical 303 313 { 304 314 "Olical/conjure", ··· 343 353 dependencies = { "nvim-lua/plenary.nvim" }, 344 354 config = function() require("crates").setup() end, 345 355 ft = { "rust" } 346 - }, -- RISC-V Assembly syntax highlighting 356 + }, -- RISC-V Assembly syntax highlighting 347 357 { "kylelaker/riscv.vim", ft = "riscv" }, -- Hare Stuff 348 358 -- Haredoc 349 359 { 350 360 url = "https://git.sr.ht/~torresjrjr/vim-haredoc", 351 361 ft = { "hare" }, 352 362 branch = "dev" 353 - }, -- Hare.vim 363 + }, -- Hare.vim 354 364 { url = "https://git.sr.ht/~sircmpwn/hare.vim", ft = { "hare" } }, -- TCL 355 - { "lewis6991/tree-sitter-tcl", build = "make" }, -- LF 365 + { "lewis6991/tree-sitter-tcl", build = "make" }, -- LF 356 366 { "ptzz/lf.vim", cmd = { "Lf" }, dependencies = { "voldikss/vim-floaterm" } }, 357 367 -- SuperMaven, another AI coding tool 358 368 { ··· 367 377 lazy = true, 368 378 ft = "markdown", 369 379 dependencies = { "nvim-lua/plenary.nvim" }, 370 - opt = { 380 + opts = { 371 381 workspaces = { 372 382 { name = "athenaeum", path = "~/Documents/Athenaeum" }, 373 383 -- Mage, the Awakening and other Chronicles of Darkness