clone of my dotfiles.ssp.sh
1
fork

Configure Feed

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

fix some things and add

sspaeti da0037e3 c069ff78

+42 -42
+5
nvim/after/plugin/firenvim.lua
··· 1 + -- configure firenvim for the browser 2 + if vim.g.started_by_firenvim then 3 + vim.cmd("source $HOME/.config/nvim/plugin/firenvim.vim") 4 + end 5 +
+16 -11
nvim/after/plugin/lsp.lua
··· 5 5 lsp.ensure_installed({ 6 6 'eslint', 7 7 'rust_analyzer', 8 + 'sumneko_lua', 8 9 }) 9 10 11 + -- Fix Undefined global 'vim' 12 + lsp.configure('sumneko_lua', { 13 + settings = { 14 + Lua = { 15 + diagnostics = { 16 + globals = { 'vim' } 17 + } 18 + } 19 + } 20 + }) 10 21 11 22 local cmp = require('cmp') 12 23 local cmp_select = {behavior = cmp.SelectBehavior.Select} ··· 45 56 virtual_text = true, 46 57 }) 47 58 59 + 48 60 lsp.on_attach(function(client, bufnr) 49 61 local opts = {buffer = bufnr, remap = false} 50 62 ··· 65 77 vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, opts) 66 78 vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts) 67 79 80 + -- turn on grammarly language server only for filetype=markdown 81 + if client.name == "grammarly" then 82 + vim.api.nvim_buf_set_option(bufnr, "filetype", "markdown") 83 + end 68 84 end) 69 85 70 86 lsp.setup() 71 87 72 88 73 - --lua 74 - require'lspconfig'.sumneko_lua.setup { 75 - settings = { 76 - Lua = { 77 - diagnostics = { 78 - -- Get the language server to recognize the `vim` global 79 - globals = {'vim'}, 80 - }, 81 - }, 82 - }, 83 - }
-6
nvim/lua/old_config.vim
··· 97 97 98 98 "ranger nvim 99 99 " nnoremap <leader>e :RnvimrToggl<CR> 100 - nnoremap <leader>e :Explore<CR> 101 100 102 101 " 103 102 " Replace `$EDITOR` candidate with this command to open the selected file ··· 129 128 let w:surround_{char2nr('w')} = "```\r```" 130 129 let b:surround_{char2nr('b')} = "**\r**" 131 130 132 - 133 - " configure firenvim for the browser 134 - if exists("g:started_by_firenvim") 135 - source $HOME/.config/nvim/plugin/firenvim.vim 136 - endif 137 131 138 132 139 133
+2 -2
nvim/lua/sspaeti/init.lua
··· 1 1 require("sspaeti.packer") 2 2 require("theme.kanagawa") 3 - require("sspaeti.remap") 4 - require("sspaeti.set") 5 3 vim.cmd("source $HOME/.config/nvim/lua/old_config.vim") 4 + require("sspaeti.set") 5 + require("sspaeti.remap") 6 6 7 7 vim.opt.listchars = { eol = "↵", tab = "→ ", trail = "·", extends = "$" } 8 8 --lead = '·',
+8 -11
nvim/lua/sspaeti/packer.lua
··· 25 25 26 26 --color scheme 27 27 use("rebelot/kanagawa.nvim") 28 - 28 + use("gruvbox-community/gruvbox") 29 + -- use 'joshdick/onedark.vim' 29 30 use({ 30 31 "ldelossa/gh.nvim", 31 32 requires = { { "ldelossa/litee.nvim" } }, ··· 73 74 74 75 --theme 75 76 use("sheerun/vim-polyglot") 76 - --themes 77 - -- use 'joshdick/onedark.vim' 78 - use("gruvbox-community/gruvbox") 79 - use("rebelot/kanagawa.nvim") 80 77 use("christoomey/vim-system-copy") 81 78 --use 'valloric/youcompleteme' 82 79 use("tpope/vim-surround") -- Surrounding ysw) ··· 144 141 -- use 'neoclide/coc.nvim', {'branch': 'release'} 145 142 use("jmcantrell/vim-virtualenv") 146 143 147 - use({ 148 - "folke/which-key.nvim", 149 - config = function() 150 - require("which-key").setup({}) 151 - end, 152 - }) 144 + -- use({ 145 + -- "folke/which-key.nvim", 146 + -- config = function() 147 + -- require("which-key").setup({}) 148 + -- end, 149 + -- }) 153 150 use("github/copilot.vim") 154 151 --Markdown (or any Outline) 155 152 use("simrat39/symbols-outline.nvim")
+3 -3
nvim/lua/sspaeti/remap.lua
··· 1 1 --general 2 - local map = vim.api.nvim_set_keymap 3 - vim.keymap.set("n", "<leader>e", ":Explore<CR>") --netrw file explorer 2 + vim.keymap.set("n", "<leader>e", ":Explore<CR>") 4 3 5 4 6 5 -- s-shortcuts is for search -> without leader, directly with s 7 - vim.keymap.set('n','sb', ':Buffers<CR>') 6 + vim.keymap.set('n', 'sb', ':Buffers<CR>') 8 7 vim.keymap.set('n', 's/', ':History/<CR>') 9 8 vim.keymap.set('n', 's;', ':Commands<CR>') 10 9 vim.keymap.set('n', 'sa', ':Ag<CR>') ··· 59 58 vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]]) 60 59 61 60 --vim.keymap.set("n", "<Leader>lf", "vim.lsp.buf.format()<CR>") 61 + vim.keymap.set("n", "<Leader>li", ":Mason<CR>") 62 62 63 63 -- moving blocks with automatically indenting 64 64 vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
+4
nvim/lua/sspaeti/set.lua
··· 43 43 vim.opt.tabstop = 2 -- Insert 2 spaces for a tab 44 44 vim.opt.shiftwidth = 2 -- Change the number of space characters inserted for indentation 45 45 vim.opt.softtabstop = 2 --Number of spaces that a <Tab> counts for while performing editing operations, like inserting a <Tab> or using <BS> 46 + 47 + --wrap lines for markdown only 46 48 vim.opt.wrap = false -- Display long lines as just one line 49 + vim.cmd("autocmd FileType markdown setlocal wrap") 50 + 47 51 vim.opt.expandtab = true -- Converts tabs to spaces 48 52 vim.opt.smarttab = true -- Makes tabbing smarter will realize you have 2 vs 4 49 53 vim.opt.smartindent = true -- Makes indenting smart
+3 -8
nvim/plugin/packer_compiled.lua
··· 399 399 path = "/Users/sspaeti/.local/share/nvim/site/pack/packer/start/vimspector", 400 400 url = "https://github.com/puremourning/vimspector" 401 401 }, 402 - ["which-key.nvim"] = { 403 - config = { "\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14which-key\frequire\0" }, 402 + vimwiki = { 404 403 loaded = true, 405 - path = "/Users/sspaeti/.local/share/nvim/site/pack/packer/start/which-key.nvim", 406 - url = "https://github.com/folke/which-key.nvim" 404 + path = "/Users/sspaeti/.local/share/nvim/site/pack/packer/start/vimwiki", 405 + url = "https://github.com/vimwiki/vimwiki" 407 406 } 408 407 } 409 408 410 409 time([[Defining packer_plugins]], false) 411 - -- Config for: which-key.nvim 412 - time([[Config for which-key.nvim]], true) 413 - try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14which-key\frequire\0", "config", "which-key.nvim") 414 - time([[Config for which-key.nvim]], false) 415 410 416 411 _G._packer.inside_compile = false 417 412 if _G._packer.needs_bufread == true then
+1 -1
zsh/paths.shrc
··· 33 33 export DAGSTER_HOME=~/.dagster 34 34 35 35 #vim stuff 36 - export MYVIMRC=~/.config/nvim/init.vim 36 + export MYVIMRC=~/.config/nvim/init.lua 37 37 export VIMRC=$MYVIMRC 38 38 export RC=$MYVIMRC 39 39 #vim in browser