clone of my dotfiles.ssp.sh
1
fork

Configure Feed

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

use lsp and null-ls for python development instead of coc, update kitty, and many others

sspaeti 2309d75e 647c3b31

+286 -8
+1
Brewfile
··· 50 50 brew "ripgrep" 51 51 brew "sbt" 52 52 brew "scala" 53 + brew "stylua" 53 54 brew "tfenv" 54 55 brew "the_platinum_searcher" 55 56 brew "the_silver_searcher"
+2
dbeaver/vrapperrc
··· 1 + :imap jk <Esc> 2 + :imap kj <Esc>
+23
kitty/custom_kitty.conf
··· 1 + shell zsh 1 2 2 3 font_family MesloLGS NF 3 4 bold_font MesloLGS NF Bold ··· 9 10 10 11 # hide top bar 11 12 hide_window_decorations titlebar-only 13 + 14 + enable_audio_bell no 15 + copy_on_select clipboard 16 + skip_trailing_lines smart 17 + mouse_hide_wait 0 18 + 19 + # these are used by fzf in vim 20 + map ctrl+shift+v no_op 21 + map ctrl+shift+s no_op 22 + map ctrl+shift+t no_op 23 + map ctrl+shit+j no_op 24 + map ctrl+shit+k no_op 25 + map ctrl+shit+n no_op 26 + map ctrl+shit+w no_op 27 + map ctrl+shit+t no_op 28 + map ctrl+shit+p no_op 29 + map ctrl+shit+n no_op 30 + map ctrl+shit+h no_op 31 + map ctrl+shit+g no_op 32 + map ctrl+shit+v no_op 33 + 34 + map alt+shit+p no_op
+19 -4
nvim/init.vim
··· 71 71 Plug 'junegunn/fzf.vim' 72 72 73 73 "File Navigation 74 - Plug 'vim-airline/vim-airline' 74 + Plug 'nvim-lualine/lualine.nvim' 75 + " If you want to have icons in your statusline choose one of these 76 + Plug 'kyazdani42/nvim-web-devicons' 77 + 75 78 "Plug 'kyazdani42/nvim-web-devicons' "Im using vim-devicons without color as it uses by nerdtree as well " Recommended (for coloured icons) 76 79 Plug 'ryanoasis/vim-devicons' "Icons without colours and used by NerdTree 77 80 Plug 'akinsho/bufferline.nvim', { 'tag': 'v2.*' } ··· 100 103 "install with :PlugInstall 101 104 102 105 " source coc custom configs 103 - source $HOME/.config/nvim/coc.vim 106 + " source $HOME/.config/nvim/coc.vim 107 + " I will try lsp commands -> Should be moved to ~/.config/nvim/lua/lsp/config.lua 108 + nmap <silent> K :lua vim.lsp.buf.hover()<CR> 109 + nmap <silent> gd :lua vim.lsp.buf.definition()<CR> 110 + nmap <silent> gD :lua vim.lsp.buf.declaration()<CR> 111 + nmap <silent> gr :lua vim.lsp.buf.references()<CR> 112 + nmap <silent> gI :lua vim.lsp.buf.implementation()<CR> 113 + nmap <silent> gs :lua vim.lsp.buf.signature_help()<CR> 104 114 105 115 " Ignore files 106 116 set wildignore=*.pyc,*_build/*,**/coverage/*,**/.git/*,**/__pycache__/* ··· 506 516 " \ } 507 517 508 518 519 + "lua plugins installing with packer.nvim 520 + lua require('plugins') 509 521 510 522 " lua basic settings 511 523 lua require('my_basic') 524 + lua require('lsp.config') 512 525 " lua plugins settings 513 526 lua require('plugins.bufferline') 514 527 lua require('plugins.indent-blankline') ··· 518 531 lua require('plugins.cmp') 519 532 lua require('plugins.pyright') 520 533 lua require('plugins.null-ls') 534 + lua require('plugins.lualine') 535 + lua require('plugins.github') 521 536 522 537 set encoding=utf8 523 - let g:airline#extensions#tabline#enabled = 0 "because using bufferline 524 - let g:airline_powerline_fonts = 1 "If you want the powerline symbols 538 + " let g:airline#extensions#tabline#enabled = 0 "because using bufferline 539 + " let g:airline_powerline_fonts = 1 "If you want the powerline symbols 525 540 " let g:airline_filetype_overrides = { 526 541 " \ 'coc-explorer': [ 'CoC Explorer', '' ], 527 542 " \ 'fugitive': ['fugitive', '%{airline#util#wrap(airline#extensions#branch#get_head(),80)}'],
+113
nvim/lua/lsp/config.lua
··· 1 + -- local skipped_filetypes = { "markdown", "plaintext" } 2 + 3 + -- local join_paths = require("lvim.utils").join_paths 4 + 5 + --return { 6 + -- -- templates_dir = join_paths(get_runtime_dir(), "site", "after", "ftplugin"), 7 + -- diagnostics = { 8 + -- signs = { 9 + -- active = true, 10 + -- values = { 11 + -- { name = "DiagnosticSignError", text = "" }, 12 + -- { name = "DiagnosticSignWarn", text = "" }, 13 + -- { name = "DiagnosticSignHint", text = "" }, 14 + -- { name = "DiagnosticSignInfo", text = "" }, 15 + -- }, 16 + -- }, 17 + -- virtual_text = true, 18 + -- update_in_insert = false, 19 + -- underline = true, 20 + -- severity_sort = true, 21 + -- float = { 22 + -- focusable = false, 23 + -- style = "minimal", 24 + -- border = "rounded", 25 + -- source = "always", 26 + -- header = "", 27 + -- prefix = "", 28 + -- format = function(d) 29 + -- local t = vim.deepcopy(d) 30 + -- local code = d.code or (d.user_data and d.user_data.lsp.code) 31 + -- if code then 32 + -- t.message = string.format("%s [%s]", t.message, code):gsub("1. ", "") 33 + -- end 34 + -- return t.message 35 + -- end, 36 + -- }, 37 + -- }, 38 + -- document_highlight = true, 39 + -- code_lens_refresh = true, 40 + -- float = { 41 + -- focusable = true, 42 + -- style = "minimal", 43 + -- border = "rounded", 44 + -- }, 45 + -- peek = { 46 + -- max_height = 15, 47 + -- max_width = 30, 48 + -- context = 10, 49 + -- }, 50 + -- on_attach_callback = nil, 51 + -- on_init_callback = nil, 52 + -- automatic_servers_installation = true, 53 + -- automatic_configuration = { 54 + -- ---@usage list of servers that the automatic installer will skip 55 + -- skipped_servers = skipped_servers, 56 + -- ---@usage list of filetypes that the automatic installer will skip 57 + -- skipped_filetypes = skipped_filetypes, 58 + -- }, 59 + -- buffer_mappings = { 60 + -- normal_mode = { 61 + -- ["K"] = { vim.lsp.buf.hover, "Show hover" }, 62 + -- ["gd"] = { vim.lsp.buf.definition, "Goto Definition" }, 63 + -- ["gD"] = { vim.lsp.buf.declaration, "Goto declaration" }, 64 + -- ["gr"] = { vim.lsp.buf.references, "Goto references" }, 65 + -- ["gI"] = { vim.lsp.buf.implementation, "Goto Implementation" }, 66 + -- ["gs"] = { vim.lsp.buf.signature_help, "show signature help" }, 67 + -- ["gp"] = { 68 + -- function() 69 + -- require("lvim.lsp.peek").Peek "definition" 70 + -- end, 71 + -- "Peek definition", 72 + -- }, 73 + -- ["gl"] = { 74 + -- function() 75 + -- local config = lvim.lsp.diagnostics.float 76 + -- config.scope = "line" 77 + -- vim.diagnostic.open_float(0, config) 78 + -- end, 79 + -- "Show line diagnostics", 80 + -- }, 81 + -- }, 82 + -- insert_mode = {}, 83 + -- visual_mode = {}, 84 + -- }, 85 + -- ---@usage list of settings of nvim-lsp-installer 86 + -- installer = { 87 + -- setup = { 88 + -- ensure_installed = {}, 89 + -- ui = { 90 + -- icons = { 91 + -- server_installed = "✓", 92 + -- server_pending = "", 93 + -- server_uninstalled = "✗", 94 + -- }, 95 + -- }, 96 + -- }, 97 + -- }, 98 + -- -- nlsp_settings = { 99 + -- -- setup = { 100 + -- -- config_home = join_paths(get_config_dir(), "lsp-settings"), 101 + -- -- -- set to false to overwrite schemastore.nvim 102 + -- -- append_default_schemas = true, 103 + -- -- ignored_servers = {}, 104 + -- -- loader = "json", 105 + -- -- }, 106 + -- -- }, 107 + -- null_ls = { 108 + -- setup = {}, 109 + -- config = {}, 110 + -- }, 111 + -- ---@deprecated use automatic_configuration.skipped_servers instead 112 + -- override = {}, 113 + --}
+1 -1
nvim/lua/my_basic.lua
··· 1 - vim.opt.listchars = {eol = '↵', tab = '→→', trail = '·', extends = "$"} 1 + vim.opt.listchars = {eol = '↵', tab = '→ ', trail = '·', extends = "$"} 2 2 --lead = '·', 3 3 vim.opt.list = true
+29
nvim/lua/plugins.lua
··· 1 + local vim = vim 2 + local execute = vim.api.nvim_command 3 + local fn = vim.fn 4 + -- ensure that packer is installed 5 + local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim' 6 + if fn.empty(fn.glob(install_path)) > 0 then 7 + execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path) 8 + execute 'packadd packer.nvim' 9 + end 10 + vim.cmd('packadd packer.nvim') 11 + local packer = require'packer' 12 + local util = require'packer.util' 13 + packer.init({ 14 + package_root = util.join_paths(vim.fn.stdpath('data'), 'site', 'pack') 15 + }) 16 + 17 + 18 + 19 + 20 + 21 + return require('packer').startup(function() 22 + 23 + use 'ldelossa/litee.nvim' 24 + use { 25 + 'ldelossa/gh.nvim', 26 + requires = { { 'ldelossa/litee.nvim' } } 27 + } 28 + 29 + end)
+3
nvim/lua/plugins/github.lua
··· 1 + require('litee.lib').setup() 2 + require('litee.gh').setup({}) 3 +
+82
nvim/lua/plugins/lualine.lua
··· 1 + -- require('lualine').setup() 2 + 3 + local hide_in_width = function(width) 4 + return function() 5 + return vim.fn.winwidth(0) > width 6 + end 7 + end 8 + 9 + 10 + local branch = { 11 + 'branch', 12 + cond = hide_in_width(80) 13 + } 14 + local diagnostics = { 15 + 'diagnostics', 16 + sources = {'nvim_diagnostic'}, 17 + cond = hide_in_width(80) 18 + } 19 + 20 + local diff = { 21 + 'diff', 22 + cond = hide_in_width(100) 23 + } 24 + local filetype = { 25 + 'filetype', 26 + cond = hide_in_width(100) 27 + } 28 + local filename = { 29 + 'filename', 30 + path = 1 31 + } 32 + local progress = { 33 + 'progress', 34 + cond = hide_in_width(100) 35 + } 36 + local location = { 37 + 'location', 38 + cond = hide_in_width(40) 39 + } 40 + 41 + local function attached_lsp() 42 + local clients = vim.lsp.get_active_clients() 43 + if #clients > 0 then 44 + return clients[1].name 45 + end 46 + return "" 47 + end 48 + 49 + local active_lsp = { 50 + attached_lsp, 51 + icon = '', 52 + cond = function() return #vim.lsp.get_active_clients() > 0 and hide_in_width(100)() end 53 + } 54 + 55 + require'lualine'.setup { 56 + options = { 57 + icons_enabled = true, 58 + -- theme = 'nightfox', 59 + component_separators = { left = '', right = ''}, 60 + section_separators = { left = '', right = ''}, 61 + disabled_filetypes = {}, 62 + always_divide_middle = true, 63 + }, 64 + sections = { 65 + lualine_a = {'mode'}, 66 + lualine_b = {}, 67 + lualine_c = {branch, active_lsp, filename}, 68 + lualine_x = {diff, diagnostics, filetype}, 69 + lualine_y = {}, 70 + lualine_z = {progress, location} 71 + }, 72 + inactive_sections = { 73 + lualine_a = {filename}, 74 + lualine_b = {}, 75 + lualine_c = {}, 76 + lualine_x = {}, 77 + lualine_y = {}, 78 + lualine_z = {}, 79 + }, 80 + tabline = {}, 81 + extensions = {} 82 + }
+13 -3
nvim/lua/plugins/null-ls.lua
··· 10 10 sources = { 11 11 formatting.black.with({extra_args = {"--fast"}}), 12 12 formatting.isort, 13 - formatting.stylua, 14 - diagnostics.flake8.with({extra_args = {"--max-line-length=140"}}), 15 - diagnostics.mypy, 13 + formatting.stylua.with({extra_args = {"indent_type=space"}}), 14 + 15 + --see also ~/.pylintrc or .my_example.toml 16 + -- R - refactoring related checks => snake_case 17 + -- C - convention related checks 18 + -- W0511 disable TODO warning 19 + -- W1201, W1202 disable log format warning. False positives (I think) 20 + -- W0231 disable super-init-not-called - pylint doesn't understand six.with_metaclass(ABCMeta) 21 + -- W0707 disable raise-missing-from which we cant use because py2 back compat 22 + -- C0301 Line too long => disabled as black-formatter handles long lines automatically 23 + diagnostics.flake8.with({extra_args = {"--max-line-length=140", "--disable=R,duplicate-code,W0231,W0511,W1201,W1202,W0707,C0301,no-init"}}), 24 + diagnostics.mypy.with({extra_args = {"--ignore-missing-imports"}}), 16 25 }, 17 26 }) 27 +