๐Ÿ”’ Backup for my config files
dotfiles
0
fork

Configure Feed

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

add stylua

+281 -8
-2
.config/nvim/init.lua
··· 1 - vim.o.number = true 2 - vim.o.relativenumber = true
+12
.config/nvim/lua/autocmds.lua
··· 1 + local autocmd = vim.api.nvim_create_autocmd 2 + local augroup = vim.api.nvim_create_augroup 3 + 4 + -- Highlight yanked text 5 + local highlight_group = augroup('YankHighlight', { clear = true }) 6 + autocmd('TextYankPost', { 7 + pattern = '*', 8 + callback = function() 9 + vim.highlight.on_yank({ timeout = 170 }) 10 + end, 11 + group = highlight_group, 12 + })
+16
.config/nvim/lua/keymaps.lua
··· 1 + local map = vim.keymap.set 2 + local opts = { noremap = true, silent = true } 3 + 4 + vim.g.leader = " " 5 + map("n", "<leader>", "<Nop>") 6 + 7 + map("n", "<S-l>", "<cmd>bnext<cr>", { desc = "Next buffer" }) 8 + map("n", "<S-h>", "<cmd>bprevious<cr>", { desc = "Previous buffer" }) 9 + map("n", "[b", "<cmd>bprevious<cr>", { desc = "Prev Buffer" }) 10 + map("n", "]b", "<cmd>bnext<cr>", { desc = "Next Buffer" }) 11 + 12 + -- Window management 13 + map("n", "<C-h>", "<C-w>h", { desc = "Go to Left Window", remap = true }) 14 + map("n", "<C-j>", "<C-w>j", { desc = "Go to Lower Window", remap = true }) 15 + map("n", "<C-k>", "<C-w>k", { desc = "Go to Upper Window", remap = true }) 16 + map("n", "<C-l>", "<C-w>l", { desc = "Go to Right Window", remap = true })
+115
.config/nvim/lua/options.lua
··· 1 + local opt = vim.opt 2 + 3 + opt.number = true -- Line numbers 4 + opt.relativenumber = true -- Relative line numbers 5 + opt.cursorline = true -- Highlight current line 6 + opt.wrap = false -- Dont wrap lines 7 + opt.scrolloff = 10 8 + opt.sidescrolloff = 8 9 + 10 + -- Indentation 11 + opt.tabstop = 4 -- Tab width 12 + opt.shiftwidth = 4 -- Indent width 13 + opt.softtabstop = 4 -- Soft tab stop 14 + opt.expandtab = true -- Use spaces instead of tabs 15 + opt.smartindent = true -- Smart auto-indenting 16 + opt.autoindent = true -- Conpy indent from current line 17 + 18 + -- Search settings 19 + opt.ignorecase = true -- Case insensitive search 20 + opt.smartcase = true -- Case sensitive if uppercase in search 21 + opt.hlsearch = true -- Dont highlight search results 22 + opt.incsearch = true -- Show matches as you search 23 + 24 + -- Visual settings 25 + opt.termguicolors = true -- Enable 24-bit colors 26 + opt.signcolumn = "yes" -- Always show sign column 27 + opt.showmatch = true -- Highlight matching brackets 28 + opt.matchtime = 2 -- How long to show matching bracket 29 + opt.cmdheight = 1 -- Command line height 30 + opt.showmode = true -- Show mode in command line 31 + opt.pumheight = 10 -- Popup menu height 32 + opt.pumblend = 10 -- Popup menu transparency 33 + opt.winblend = 0 -- Floating window transparency 34 + opt.completeopt = "menu,menuone,noselect" 35 + opt.conceallevel = 2 -- Hide * markup for bold and italic, but not markers with substitutions 36 + opt.confirm = true -- Confirm to save changes before exiting modified buffer 37 + opt.concealcursor = "" -- Don't hide cursor line markup 38 + opt.synmaxcol = 300 -- Syntax highlighting limit 39 + opt.ruler = false -- Disable the default ruler 40 + opt.virtualedit = "block" -- Allow cursor to move where there is no text in visual block mode 41 + opt.winminwidth = 5 -- Minimum window width 42 + 43 + -- File handling 44 + opt.undofile = true -- Persistent undo 45 + opt.undolevels = 10000 46 + opt.undodir = vim.fn.expand("~/.vim/undodir") -- Undo directory 47 + opt.updatetime = 300 -- Faster completion 48 + opt.autoread = true -- Auto reload files changed outside vim 49 + opt.autowrite = true -- Auto save 50 + 51 + -- Behaviour settings 52 + opt.hidden = true -- Allow hidden buffers 53 + opt.errorbells = false -- No error bells 54 + opt.backspace = "indent,eol,start" -- Better backspace behavior 55 + opt.autochdir = false -- Don't auto change directory 56 + opt.iskeyword:append("-") -- Treat dash as part of word 57 + opt.path:append("**") -- include subdirectories in search 58 + opt.selection = "exclusive" -- Selection behavior 59 + opt.mouse = "a" -- Enable mouse support 60 + opt.clipboard = "unnamedplus" -- Sync with system clipboard 61 + opt.modifiable = true -- Allow buffer modifications 62 + opt.encoding = "UTF-8" -- Set encoding 63 + 64 + -- Folding settings 65 + opt.smoothscroll = true 66 + vim.wo.foldmethod = "expr" 67 + opt.foldlevel = 99 -- Start with all folds open 68 + opt.formatoptions = "jcroqlnt" -- tcqj 69 + opt.grepformat = "%f:%l:%c:%m" 70 + opt.grepprg = "rg --vimgrep" 71 + 72 + -- Split behavior 73 + opt.splitbelow = true -- Horizontal splits go below 74 + opt.splitright = true -- Vertical splits go right 75 + opt.splitkeep = "screen" 76 + 77 + -- Command-line completion 78 + opt.wildmenu = true 79 + opt.wildmode = "longest:full,full" 80 + opt.wildignore:append({ "*.o", "*.obj", "*.pyc", "*.class", "*.jar" }) 81 + 82 + -- Better diff options 83 + opt.diffopt:append("linematch:60") 84 + 85 + -- Performance improvements 86 + opt.redrawtime = 10000 87 + opt.maxmempattern = 20000 88 + 89 + -- Create undo directory if it doesn't exist 90 + local undodir = vim.fn.expand("~/.vim/undodir") 91 + if vim.fn.isdirectory(undodir) == 0 then 92 + vim.fn.mkdir(undodir, "p") 93 + end 94 + 95 + vim.g.autoformat = true 96 + 97 + -- Visual polish 98 + opt.fillchars = { 99 + foldopen = "", 100 + foldclose = "", 101 + fold = " ", 102 + foldsep = " ", 103 + diff = "โ•ฑ", 104 + eob = " ", 105 + } 106 + 107 + opt.jumpoptions = "view" 108 + opt.laststatus = 3 -- global statusline 109 + opt.list = false 110 + opt.linebreak = true -- Wrap lines at convenient points 111 + opt.list = true -- Show some invisible characters (tabs... 112 + opt.shiftround = true -- Round indent 113 + opt.shiftwidth = 2 -- Size of an indent 114 + opt.shortmess:append({ W = true, I = true, c = true, C = true }) 115 +
+9
.config/nvim/nvim-pack-lock.json
··· 1 1 { 2 2 "plugins": { 3 + "blink.cmp": { 4 + "rev": "451168851e8e2466bc97ee3e026c3dcb9141ce07", 5 + "src": "https://github.com/saghen/blink.cmp", 6 + "version": "1.0.0 - 2.0.0" 7 + }, 8 + "conform.nvim": { 9 + "rev": "086a40dc7ed8242c03be9f47fbcee68699cc2395", 10 + "src": "https://github.com/stevearc/conform.nvim" 11 + }, 3 12 "mini.nvim": { 4 13 "rev": "3923662bf3d6ca49a9503f8d7196ea0450983e6a", 5 14 "src": "https://github.com/nvim-mini/mini.nvim"
+13 -1
.config/nvim/plugin/catppuccin.lua
··· 1 1 vim.pack.add({ "https://github.com/catppuccin/nvim" }) 2 - vim.cmd.colorscheme("catppuccin") 2 + 3 + require("catppuccin").setup({ 4 + flavour = "mocha", 5 + transparent_background = true, 6 + term_colors = false, 7 + default_integrations = true, 8 + float = { 9 + transparent = true, 10 + solid = true, 11 + }, 12 + }) 13 + 14 + vim.cmd.colorscheme("catppuccin-nvim")
+17
.config/nvim/plugin/conform.lua
··· 1 + vim.pack.add({ "https://github.com/stevearc/conform.nvim" }) 2 + 3 + require("conform").setup({ 4 + format_on_save = { timeout_ms = 500, lsp_format = "fallback" }, 5 + 6 + formaters_by_ft = { 7 + gleam = { "gleam" }, 8 + sql = { "sqruff" } 9 + } 10 + }) 11 + 12 + vim.api.nvim_create_autocmd("BufWritePre", { 13 + pattern = "*", 14 + callback = function(args) 15 + require("conform").format({ bufnr = args.buf }) 16 + end, 17 + })
+28 -3
.config/nvim/plugin/mini.lua
··· 1 - vim.pack.add({"https://github.com/nvim-mini/mini.nvim"}) 1 + local map = vim.keymap.set 2 + vim.pack.add({ "https://github.com/nvim-mini/mini.nvim" }) 2 3 3 4 require("mini.basics").setup() 5 + require("mini.ai").setup() 4 6 require("mini.icons").setup() 7 + require("mini.pairs").setup() 8 + require("mini.move").setup() 9 + require("mini.pick").setup() 10 + require("mini.cmdline").setup() 11 + 12 + -- surround 13 + require("mini.surround").setup({ 14 + mappings = { 15 + add = ";;", 16 + delete = ";d", 17 + find = ";f", 18 + find_left = ";F", 19 + highlight = ";h", 20 + replace = ";r", 21 + update_n_lines = ";n", 22 + }, 23 + }) 24 + 25 + -- files 5 26 require("mini.files").setup() 6 - require("mini.pick").setup() 7 - require("mini.surround").setup() 27 + map("n", "<leader>e", function() 28 + require("mini.files").open() 29 + end 30 + ) 31 + 32 + require("mini.notify").setup()
+30 -2
.config/nvim/plugin/nvim-lspconfig.lua
··· 1 - vim.pack.add({"https://github.com/neovim/nvim-lspconfig"}) 2 - vim.lsp.enable({ "lua_ls" }) 1 + local map = vim.keymap.set 2 + vim.pack.add({ 'https://github.com/neovim/nvim-lspconfig' }) 3 + 4 + map("n", "<leader>ca", function() 5 + vim.lsp.buf.code_action() 6 + end 7 + ) 8 + 9 + -- lua 10 + vim.lsp.enable({ "lua_ls" }) 11 + vim.lsp.config('lua_ls', { 12 + settings = { 13 + Lua = { 14 + runtime = { version = 'LuaJIT' }, 15 + diagnostics = { globals = { 'vim', 'require' } }, 16 + workspace = { library = vim.api.nvim_get_runtime_file("", true) }, 17 + telemetry = { enable = false }, 18 + } 19 + } 20 + }) 21 + 22 + -- gleam 23 + vim.lsp.enable({ "gleam" }) 24 + vim.lsp.config("gleam", { 25 + cmd = { "gleam", "lsp" } 26 + }) 27 + 28 + vim.lsp.enable({ "sqruff" }) 29 + 30 + vim.diagnostic.config({ virtual_text = true })
+3
.config/nvim/stylua.toml
··· 1 + indent_type = "Spaces" 2 + indent_width = 2 3 + column_width = 120
+2
packages.txt
··· 17 17 just 18 18 keychain 19 19 lua 20 + lua-language-server 20 21 luarocks 21 22 make 22 23 nodejs ··· 31 32 rumdl 32 33 sqruff 33 34 starship 35 + stylua 34 36 thunderbird 35 37 trash-cli 36 38 tree-sitter