this repo has no description
0
fork

Configure Feed

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

lunarvim some more

+6 -190
+6 -12
playbooks/roles/vim/tasks/main.yml
··· 1 - - name: astronvim-from-github 1 + - name: lunarvim-from-github 2 2 ansible.builtin.git: 3 3 dest: "{{ home_dir }}/.config/nvim" 4 - repo: "git@github.com:AstroNvim/AstroNvim.git" 5 - version: main 4 + repo: "git@github.com:lunarvim/lunarvim.git" 5 + version: 1.3.0 6 6 update: true 7 7 8 - - name: create-astronvim-user-dir 9 - ansible.builtin.file: 10 - state: directory 11 - path: "{{ home_dir }}/.config/nvim/lua/user/" 12 - recurse: true 13 - 14 - - name: link-astronvim-user-config 8 + - name: link-lunarvim-user-config 15 9 ansible.builtin.file: 16 - src: "{{ dotfiles_dir }}/vim/astronvim/init.lua" 17 - dest: "{{ home_dir }}/.config/nvim/lua/user/init.lua" 10 + src: "{{ dotfiles_dir }}/vim/lvim" 11 + dest: "{{ home_dir }}/.config/lvim" 18 12 state: link 19 13 force: true 20 14
-178
vim/astronvim/init.lua
··· 1 - local config = { 2 - -- Configure AstroNvim updates 3 - updater = { 4 - remote = "origin", -- remote to use 5 - channel = "nightly", -- "stable" or "nightly" 6 - version = "latest", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY) 7 - branch = "nightly", -- branch name (NIGHTLY ONLY) 8 - commit = nil, -- commit hash (NIGHTLY ONLY) 9 - pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only) 10 - skip_prompts = false, -- skip prompts about breaking changes 11 - show_changelog = true, -- show the changelog after performing an update 12 - }, 13 - 14 - header = { 15 - [[ __ __ ]], 16 - [[ | \ | \ ]], 17 - [[ ______ | ▓▓____ | ▓▓____ ______ __ __ ]], 18 - [[ / \| ▓▓ \ | ▓▓ \ / \| \ | \]], 19 - [[| ▓▓▓▓▓▓\ ▓▓▓▓▓▓▓\ | ▓▓▓▓▓▓▓\ ▓▓▓▓▓▓\ ▓▓ | ▓▓]], 20 - [[| ▓▓ | ▓▓ ▓▓ | ▓▓ | ▓▓ | ▓▓ ▓▓ ▓▓ ▓▓ | ▓▓]], 21 - [[| ▓▓__/ ▓▓ ▓▓ | ▓▓ | ▓▓ | ▓▓ ▓▓▓▓▓▓▓▓ ▓▓__/ ▓▓]], 22 - [[ \▓▓ ▓▓ ▓▓ | ▓▓ | ▓▓ | ▓▓\▓▓ \\▓▓ ▓▓]], 23 - [[ \▓▓▓▓▓▓ \▓▓ \▓▓ \▓▓ \▓▓ \▓▓▓▓▓▓▓_\▓▓▓▓▓▓▓]], 24 - [[ | \__| ▓▓]], 25 - [[ \▓▓ ▓▓]], 26 - [[ \▓▓▓▓▓▓ ]], 27 - }, 28 - 29 - colorscheme = "solarized", 30 - 31 - -- set vim options here (vim.<first_key>.<second_key> = value) 32 - options = { 33 - opt = { 34 - relativenumber = true, 35 - background = "light", 36 - termguicolors = true, 37 - wrap = false, 38 - }, 39 - g = { 40 - mapleader = " ", 41 - cmp_enabled = true, -- enable completion at start 42 - }, 43 - }, 44 - 45 - -- Disable AstroNvim ui features 46 - ui = { 47 - nui_input = true, 48 - telescope_select = true, 49 - }, 50 - 51 - -- Configure plugins 52 - plugins = { 53 - init = { 54 - { "ishan9299/nvim-solarized-lua" }, 55 - { "LnL7/vim-nix" }, 56 - { "tpope/vim-surround" }, 57 - { "junegunn/goyo.vim" }, 58 - { "hashivim/vim-terraform" }, 59 - { "MaxMEllon/vim-jsx-pretty" }, 60 - { "pantharshit00/vim-prisma" }, 61 - }, 62 - packer = { 63 - compile_path = vim.fn.stdpath("config") .. "/lua/packer_compiled.lua", 64 - }, 65 - ["neo-tree"] = function(config) 66 - config.window.width = 40 67 - end, 68 - ["null-ls"] = function(config) 69 - local null_ls = require("null-ls") 70 - 71 - config.sources = { 72 - null_ls.builtins.formatting.stylua, 73 - null_ls.builtins.formatting.prettier, 74 - null_ls.builtins.formatting.goimports, 75 - } 76 - return config 77 - end, 78 - ["mason-lspconfig"] = { 79 - ensure_installed = { 80 - -- "sumneko_lua", 81 - -- "typescript-language-server", 82 - -- "gopls", 83 - -- "rust-analyzer", 84 - -- "pylsp", 85 - -- "terraformls", 86 - -- "yamlls", 87 - -- "html", 88 - }, 89 - }, 90 - ["mason-tool-installer"] = { 91 - ensure_installed = { "prettier", "stylua" }, 92 - }, 93 - }, 94 - 95 - cmp = { 96 - source_priority = { 97 - nvim_lsp = 1000, 98 - luasnip = 750, 99 - buffer = 500, 100 - path = 250, 101 - }, 102 - }, 103 - 104 - diagnostics = { 105 - virtual_text = true, 106 - underline = true, 107 - }, 108 - 109 - mappings = { 110 - n = { 111 - [";"] = { ":", desc = "you know" }, 112 - ["<leader>qc"] = { ":cclose<CR>", desc = "close the quickfix list" }, 113 - ["<leader>qo"] = { ":copen<CR>", desc = "open the quickfix list" }, 114 - ["<leader>fO"] = { ":Goyo<CR>", desc = "Focus with Goyo" }, 115 - ["<leader>t"] = { ":Neotree left toggle<CR>", desc = "" }, 116 - ["<leader>e"] = { ":Neotree float toggle<CR>", desc = "Show neotree as float" }, 117 - ["<leader>fr"] = { ":Neotree reveal_file=%<CR>", desc = "Reveal file in Neotree" }, 118 - ["<leader>w/"] = { ":vsp<CR>", desc = "Split vertical" }, 119 - ["<leader>w?"] = { ":sp<CR>", desc = "Split horizontal" }, 120 - ["<leader>gd"] = { 121 - function() 122 - vim.ui.input({ 123 - prompt = "Diff against: ", 124 - default = "", 125 - }, function(target) 126 - require("gitsigns").diffthis(target) 127 - end) 128 - end, 129 - desc = "View git diff", 130 - }, 131 - 132 - ["<leader>go"] = { 133 - ':exe "!gbrowse " . fnamemodify(expand("%"), ":~:.")<CR>', 134 - desc = "Open in github / gitlab", 135 - }, 136 - ["<leader>gg"] = { 137 - function() 138 - astronvim.toggle_term_cmd( 139 - "lazygit -ucf '/Users/sethetter/Library/Application Support/lazygit/nvim.yml'" 140 - ) 141 - end, 142 - desc = "Open lazygit", 143 - }, 144 - }, 145 - }, 146 - 147 - -- This function is run last 148 - polish = function() 149 - -- Set autocommands 150 - vim.api.nvim_create_augroup("packer_conf", { clear = true }) 151 - vim.api.nvim_create_autocmd("BufWritePost", { 152 - desc = "Sync packer after modifying plugins.lua", 153 - group = "packer_conf", 154 - pattern = "plugins.lua", 155 - command = "source <afile> | PackerSync", 156 - }) 157 - 158 - vim.cmd("autocmd FileType markdown set wrap linebreak nolist") 159 - 160 - vim.cmd("autocmd User GoyoEnter :Gitsigns toggle_signs") 161 - vim.cmd("autocmd User GoyoLeave :Gitsigns toggle_signs") 162 - 163 - -- Set up custom filetypes 164 - vim.filetype.add({ 165 - -- extension = { 166 - -- foo = "fooscript", 167 - -- }, 168 - filename = { 169 - ["tiltfile"] = "python", 170 - }, 171 - -- pattern = { 172 - -- ["~/%.config/foo/.*"] = "fooscript", 173 - -- }, 174 - }) 175 - end, 176 - } 177 - 178 - return config