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.

Mostly formatting changes for nvim

+51 -20
+3
nvim/init.lua
··· 123 123 keymap("n", "<Left>", "zh", silentnoremap) 124 124 keymap("n", "<Right>", "zl", silentnoremap) 125 125 126 + -- Telescope 127 + keymap({"n", "i", "v"}, "<C-t>", "<cmd>Telescope<CR>", silentnoremap) 128 + 126 129 -- LSP Documentation viewer 127 130 keymap("n", "K", "<cmd>lua vim.lsp.buf.hover()<CR>", silentnoremap) 128 131
+12 -8
nvim/lua/completion.lua
··· 16 16 ['<C-f>'] = cmp.mapping.scroll_docs(4), 17 17 ['<C-Space>'] = cmp.mapping.complete(), 18 18 ['<C-e>'] = cmp.mapping.abort(), 19 - ['<CR>'] = cmp.mapping.confirm({select = true}) -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. 19 + ['<CR>'] = cmp.mapping.confirm({ select = true }) -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. 20 20 }), 21 21 sources = cmp.config.sources({ 22 - {name = 'nvim_lsp'}, {name = 'vsnip'}, -- For vsnip users. 23 - {name = 'supermaven'}, {name = 'conjure'} 24 - }, {{name = 'buffer'}}) 22 + { name = 'lazydev', group_index = 0}, 23 + { name = 'nvim_lsp' }, 24 + { name = 'vsnip' }, -- For vsnip users. 25 + { name = 'supermaven' }, 26 + { name = 'conjure' }, 27 + }, 28 + {{ name = 'buffer' }}) 25 29 }) 26 30 require("cmp_git").setup() 27 31 -- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore). 28 - cmp.setup.cmdline({'/', '?'}, { 32 + cmp.setup.cmdline({ '/', '?' }, { 29 33 mapping = cmp.mapping.preset.cmdline(), 30 - sources = {{name = 'buffer'}} 34 + sources = { { name = 'buffer' } } 31 35 }) 32 36 33 37 -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). 34 38 cmp.setup.cmdline(':', { 35 39 mapping = cmp.mapping.preset.cmdline(), 36 - sources = cmp.config.sources({{name = 'path'}}, {{name = 'cmdline'}}), 37 - matching = {disallow_symbol_nonprefix_matching = false} 40 + sources = cmp.config.sources({ { name = 'path' } }, { { name = 'cmdline' } }), 41 + matching = { disallow_symbol_nonprefix_matching = false } 38 42 })
+8
nvim/lua/lsp.lua
··· 39 39 } 40 40 } 41 41 42 + nvim_lsp.janet_lsp.setup { 43 + cmd = { 44 + "janet", 45 + "/home/noah/repos/janet-lsp/src/main.janet", 46 + "--stdio" 47 + } 48 + } 49 + 42 50 -- LSPs that just use default config 43 51 local simple_lsps = { 44 52 "nil_ls", "htmx", "bzl", "bufls", "crystalline", "dockerls",
+28 -12
nvim/lua/plugins.lua
··· 38 38 "hrsh7th/cmp-nvim-lsp", 39 39 "hrsh7th/cmp-buffer", 40 40 "hrsh7th/cmp-path", 41 - --"hrsh7th/cmp-vsnip", 42 - --"hrsh7th/vim-vsnip", 41 + "hrsh7th/cmp-vsnip", 42 + "hrsh7th/vim-vsnip", 43 43 "petertriho/cmp-git", 44 44 "hrsh7th/cmp-cmdline" 45 45 } 46 46 }, -- nvim lsp plugins 47 - "neovim/nvim-lspconfig", 47 + { 48 + "neovim/nvim-lspconfig", 49 + }, 48 50 { 49 51 "nvimdev/lspsaga.nvim", 50 52 dependencies = { ··· 66 68 enable = true, 67 69 }, 68 70 indent = { 69 - enable = true, 71 + enable = false, 70 72 }, 71 73 }, 72 74 build = ":TSUpdate", ··· 147 149 dependencies = "nvim-tree/nvim-web-devicons" 148 150 }, 149 151 -- Which key is bound? 152 + -- literally the best plugin ever 150 153 { 151 154 "folke/which-key.nvim", 152 155 init = function() ··· 154 157 vim.o.timeoutlen = 300 155 158 end, 156 159 config = true 157 - }, -- literally the best plugin ever 160 + }, 158 161 -- Developing my neovim 159 - { "folke/neodev.nvim", config = true }, -- Lithsps 162 + { 163 + "folke/lazydev.nvim", 164 + config = true, 165 + ft = "lua", 166 + opts = { 167 + library = { 168 + path = "luvit-meta/library", words = { "vim%.uv" }, 169 + }, 170 + }, 171 + dependencies = { 172 + "Bilal2453/luvit-meta" 173 + }, 174 + }, 175 + -- Lithsps 160 176 --{ "m4xshen/autoclose.nvim" }, 161 177 { 162 178 "windwp/nvim-autopairs", ··· 177 193 "gpanders/nvim-parinfer", 178 194 ft = { "hy", "scheme", "scm", "clojure", "fennel", "janet", "lisp", "python", "lua" }, 179 195 config = function() 180 - vim.g.parinfer_comment_chars = {";", "#"} 196 + vim.g.parinfer_comment_chars = { ";", "#" } 181 197 vim.g.parinfer_force_balance = true 182 198 end 183 199 }, ··· 281 297 end, 282 298 dependencies = { "PaterJason/cmp-conjure" } 283 299 }, 284 - { "PaterJason/cmp-conjure", lazy = true }, 285 - { "p1xelHer0/gerbil.nvim", ft = "scheme" }, -- Fennel, Luasthp 286 - { "jaawerth/fennel.vim", lazy = true, ft = "fennel" }, 287 - { "rktjmp/hotpot.nvim", lazy = true, ft = "fennel" }, 288 - { "Olical/nfnl", ft = "fennel" }, -- Rust stuff 300 + { "PaterJason/cmp-conjure", lazy = true }, 301 + { "p1xelHer0/gerbil.nvim", ft = "scheme" }, -- Fennel, Luasthp 302 + { "jaawerth/fennel.vim", lazy = true, ft = "fennel" }, 303 + { "rktjmp/hotpot.nvim", lazy = true, ft = "fennel" }, 304 + { "Olical/nfnl", ft = "fennel" }, -- Rust stuff 289 305 { 290 306 "simrat39/rust-tools.nvim", 291 307 ft = { "rust" },