6 files changed,
40 insertions(+),
46 deletions(-)
M
config/lvim/config.lua
··· 47 47 -- Pluginos 48 48 lvim.plugins = { 49 49 { "tpope/vim-surround", keys = { "c", "y", "d" }, event = "BufRead" }, 50 - { "tzachar/cmp-tabnine", run = "./install.sh", event = "InsertEnter" }, 51 50 { "folke/trouble.nvim", cmd = { "TroubleToggle" } }, 52 - { "folke/todo-comments.nvim", event = "BufRead" }, 53 51 { "editorconfig/editorconfig-vim" }, 54 - { "theHamsta/nvim-dap-virtual-text", config = "vim.g.dap_virtual_text = true" }, 52 + { 53 + "theHamsta/nvim-dap-virtual-text", 54 + config = function() 55 + require("user.conjure").setup() 56 + end, 57 + }, 58 + { 59 + "folke/todo-comments.nvim", 60 + event = "BufRead", 61 + config = function() 62 + require("todo-comments").setup({}) 63 + end, 64 + }, 65 + { 66 + "tzachar/cmp-tabnine", 67 + run = "./install.sh", 68 + event = "InsertEnter", 69 + config = function() 70 + require("cmp_tabnine.config"):setup({ 71 + max_lines = 1000, 72 + max_num_results = 10, 73 + sort = true, 74 + }) 75 + end, 76 + }, 77 + { 78 + "folke/lua-dev.nvim", 79 + ft = "lua", 80 + config = function() 81 + require("user.lua-dev").setup() 82 + end, 83 + }, 55 84 { 56 85 "Smirnov-O/ts-unit.nvim", 57 86 keys = { "vip", "cip", "yip", "dip" },
M
config/lvim/ftplugin/javascript.lua
··· 12 12 13 13 -- Lsp 14 14 lvim.lang.javascript.lsp.setup.handlers = { 15 - ["textDocument/publishDiagnostics"] = function(_, _, p, client_id, _, config) 15 + ["textDocument/publishDiagnostics"] = function(_, _, p, id, _, cfg) 16 16 if p.diagnostics ~= nil then 17 17 local i = 1 18 18 while i <= #p.diagnostics do ··· 23 23 end 24 24 end 25 25 end 26 - vim.lsp.diagnostic.on_publish_diagnostics(_, _, p, client_id, _, config) 26 + vim.lsp.diagnostic.on_publish_diagnostics(_, _, p, id, _, cfg) 27 27 end, 28 28 }
M
config/lvim/lua/user/conjure.lua
··· 11 11 -- Scheme 12 12 vim.g["conjure#client#scheme#stdio#command"] = "chicken-csi -quiet -:c" 13 13 vim.g["conjure#client#scheme#stdio#prompt_pattern"] = "\n-#;%d-> " 14 - 15 - lvim.builtin.cmp.sources = { 16 - { name = "nvim_lsp", max_item_count = 7 }, 17 - { name = "cmp_tabnine", max_item_count = 3 }, 18 - { name = "buffer", max_item_count = 3 }, 19 - { name = "path", max_item_count = 5 }, 20 - { name = "luasnip", max_item_count = 3 }, 21 - { name = "nvim_lua" }, 22 - { name = "conjure" }, 23 - } 24 - 25 - lvim.builtin.cmp.formatting = { 26 - format = function(entry, vim_item) 27 - local cmp_kind = require("user.lsp_kind").cmp_kind 28 - vim_item.kind = cmp_kind(vim_item.kind) 29 - vim_item.menu = ({ 30 - buffer = "(Buffer)", 31 - nvim_lsp = "(LSP)", 32 - luasnip = "(Snip)", 33 - spell = "(Spell)", 34 - path = "(Path)", 35 - conjure = "(Conjure)", 36 - cmp_tabnine = "(Tabnine)", 37 - })[entry.source.name] 38 - vim_item.dup = ({ 39 - buffer = 1, 40 - path = 1, 41 - nvim_lsp = 0, 42 - })[entry.source.name] or 0 43 - return vim_item 44 - end, 45 - } 46 14 end 47 15 48 16 return M
M
zshrc
··· 25 25 dotnet() { 26 26 $HOME/dotnet/dotnet "$@" 27 27 } 28 -asdf() { 29 - . /opt/asdf-vm/asdf.sh 30 - asdf $@ 31 -} 32 28 33 29 ## Aliases 34 30 alias cls="clear" cp="cp -r" mkdir="mkdir -p" open="open_command" lg="lazygit" 35 31 alias lv="lvim" vim="lvim" 36 32 alias ...="cd ../.." .3="cd ../../.." 37 33 alias gor="go run" gob="go build" gog="go get" goi="go install" got="go test" 38 -alias n="npm" 34 +alias n="npm" asdfi=". /opt/asdf-vm/asdf.sh" 39 35 40 36 if [[ -f "/bin/exa" ]]; then 41 37 alias ls="exa -l" ll="ls" la="ls -a"