clone of my dotfiles.ssp.sh
1
fork

Configure Feed

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

trying to use lsp python

sspaeti 647c3b31 fe7a0e39

+86 -9
+1
Brewfile
··· 23 23 brew "brew-cask-completion" 24 24 brew "commitizen" 25 25 brew "fzf" 26 + brew "gh" 26 27 brew "helm" 27 28 brew "hub" 28 29 brew "hugo"
+1 -1
linting/pylintrc
··· 33 33 generated-members=pyspark.* 34 34 ignored-modules=pyspark.sql.functions 35 35 36 - max-line-length = 140 36 + max-line-length = 150
+11 -6
nvim/init.vim
··· 59 59 " Plug 'nvim-lua/popup.nvim' 60 60 Plug 'nvim-lua/plenary.nvim' 61 61 Plug 'ThePrimeagen/harpoon' 62 + Plug 'jose-elias-alvarez/null-ls.nvim' 62 63 " Plug 'nvim-telescope/telescope.nvim' 63 64 " Plug 'nvim-telescope/telescope-fzy-native.nvim' 64 65 "terminal ··· 149 150 "fold settings 150 151 "set foldnestmax=2 151 152 set foldmethod=indent 152 - set foldlevel=3 153 + set foldlevel=5 153 154 nnoremap <Leader>z za 154 155 vnoremap <Leader>z zf 155 156 map z1 :set foldlevel=0<CR><Esc> ··· 173 174 "auto format on save with Black 174 175 autocmd BufWritePre *.py execute ':Black' 175 176 177 + "null-ls formatting, diagnostic and linting configs 178 + map <Leader>lf :lua vim.lsp.buf.format()<CR> 179 + 176 180 " Turn off autocomplete for Markdown 177 181 autocmd FileType markdown let b:coc_suggest_disable = 1 178 182 ··· 189 193 "FileType settings {{{ 190 194 augroup mb_filetype 191 195 autocmd! 192 - autocmd FileType brainfuck xmap <buffer> R "xygv*;%s;;<c-r>x;g<left><left> 196 + autocmd FileType brainfuck xmap <buffern R "xygv*;%s;;<c-r>x;g<left><left> 193 197 autocmd FileType yaml nnoremap <buffer> <CR> :AnsibleDoc<CR> 194 198 autocmd FileType python iabbrev <buffer> im import 195 199 autocmd FileType python iabbrev <buffer> rt return ··· 291 295 292 296 " Alternate way to save 293 297 nnoremap <C-s> :w<CR> 294 - nnoremap <C-r> q: 298 + nnoremap <leader>r q: 295 299 296 300 297 301 " Select all ··· 392 396 393 397 " Open current directory 394 398 nmap te :tabedit 395 - " Attention, sometimes when you map <Tab> also ctrl+l will change! 396 399 nmap st :tabnew<Return> 397 400 nmap <S-Tab> :tabprev<Return> 398 - nmap <Tab> :tabnext<Return> 401 + " Attention, sometimes when you map <Tab> also ctrl+i will change! 402 + "nmap <Tab> :tabnext<Return> 399 403 400 404 "nnoremap <Tab> :tabnext<Return> 401 405 ··· 512 516 lua require('plugins.aerial') 513 517 lua require('plugins.treesitter') 514 518 lua require('plugins.cmp') 515 - 519 + lua require('plugins.pyright') 520 + lua require('plugins.null-ls') 516 521 517 522 set encoding=utf8 518 523 let g:airline#extensions#tabline#enabled = 0 "because using bufferline
+17
nvim/lua/plugins/null-ls.lua
··· 1 + local null_ls_status_ok, null_ls = pcall(require, "null-ls") 2 + if not null_ls_status_ok then 3 + return 4 + end 5 + 6 + local formatting = null_ls.builtins.formatting 7 + local diagnostics = null_ls.builtins.diagnostics 8 + 9 + require("null-ls").setup({ 10 + sources = { 11 + formatting.black.with({extra_args = {"--fast"}}), 12 + formatting.isort, 13 + formatting.stylua, 14 + diagnostics.flake8.with({extra_args = {"--max-line-length=140"}}), 15 + diagnostics.mypy, 16 + }, 17 + })
+1
nvim/lua/plugins/pyright.lua
··· 1 + require'lspconfig'.pyright.setup{}
+53
nvim/lua/plugins/symbols-outline.lua
··· 1 + -- init.lua 2 + vim.g.symbols_outline = { 3 + highlight_hovered_item = true, 4 + show_guides = true, 5 + auto_preview = true, 6 + position = 'right', 7 + relative_width = true, 8 + width = 25, 9 + auto_close = false, 10 + show_numbers = false, 11 + show_relative_numbers = false, 12 + show_symbol_details = true, 13 + preview_bg_highlight = 'Pmenu', 14 + keymaps = { -- These keymaps can be a string or a table for multiple keys 15 + close = {"<Esc>", "q"}, 16 + goto_location = "<Cr>", 17 + focus_location = "o", 18 + hover_symbol = "<C-space>", 19 + toggle_preview = "K", 20 + rename_symbol = "r", 21 + code_actions = "a", 22 + }, 23 + lsp_blacklist = {}, 24 + symbol_blacklist = {}, 25 + symbols = { 26 + File = {icon = "", hl = "TSURI"}, 27 + Module = {icon = "", hl = "TSNamespace"}, 28 + Namespace = {icon = "", hl = "TSNamespace"}, 29 + Package = {icon = "", hl = "TSNamespace"}, 30 + Class = {icon = "𝓒", hl = "TSType"}, 31 + Method = {icon = "ƒ", hl = "TSMethod"}, 32 + Property = {icon = "", hl = "TSMethod"}, 33 + Field = {icon = "", hl = "TSField"}, 34 + Constructor = {icon = "", hl = "TSConstructor"}, 35 + Enum = {icon = "ℰ", hl = "TSType"}, 36 + Interface = {icon = "ﰮ", hl = "TSType"}, 37 + Function = {icon = "", hl = "TSFunction"}, 38 + Variable = {icon = "", hl = "TSConstant"}, 39 + Constant = {icon = "", hl = "TSConstant"}, 40 + String = {icon = "𝓐", hl = "TSString"}, 41 + Number = {icon = "#", hl = "TSNumber"}, 42 + Boolean = {icon = "⊨", hl = "TSBoolean"}, 43 + Array = {icon = "", hl = "TSConstant"}, 44 + Object = {icon = "⦿", hl = "TSType"}, 45 + Key = {icon = "🔐", hl = "TSType"}, 46 + Null = {icon = "NULL", hl = "TSType"}, 47 + EnumMember = {icon = "", hl = "TSField"}, 48 + Struct = {icon = "𝓢", hl = "TSType"}, 49 + Event = {icon = "🗲", hl = "TSType"}, 50 + Operator = {icon = "+", hl = "TSOperator"}, 51 + TypeParameter = {icon = "𝙏", hl = "TSParameter"} 52 + } 53 + }
+1 -1
nvim/lua/plugins/treesitter.lua
··· 13 13 autopairs = { 14 14 enable = true, 15 15 }, 16 - indent = { enable = true, disable = { "yaml" } }, 16 + indent = { enable = true, disable = { "yaml", "python" } }, 17 17 })
-1
obsidian/core-plugins.json
··· 12 12 "zk-prefixer", 13 13 "outline", 14 14 "word-count", 15 - "open-with-default-app", 16 15 "file-recovery", 17 16 "sync" 18 17 ]
+1
package.json
··· 1 + {}