8 files changed,
25 insertions(+),
37 deletions(-)
jump to
M
config/lvim/config.lua
@@ -9,7 +9,7 @@ lvim.builtin.autopairs.active = true
-- GitSigns lvim.builtin.gitsigns.opts.current_line_blame = true -lvim.builtin.gitsigns.opts.current_line_blame_opts = { virt_text = true, virt_text_pos = "eol", delay = 200 } +lvim.builtin.gitsigns.opts.current_line_blame_opts = { delay = 200 } -- TreeSitter lvim.builtin.treesitter.ensure_installed = { "javascript", "typescript", "jsdoc", "lua", "java" }@@ -18,6 +18,9 @@
-- Telescope lvim.builtin.telescope.defaults.layout_config.prompt_position = "top" lvim.builtin.telescope.defaults.file_ignore_patterns = { ".git", "node_modules", "env" } + +-- Debugger +lvim.builtin.dap.active = true -- Mappings lvim.keys.normal_mode["<C-w>"] = "<cmd>BufferClose<cr>"@@ -33,10 +36,9 @@
-- Plugins lvim.plugins = { { "tpope/vim-surround", keys = { "c", "y", "d" } }, - { "andymass/vim-matchup", keys = { "%" } }, + -- { "andymass/vim-matchup", keys = { "%" } }, { "tzachar/cmp-tabnine", run = "./install.sh", event = "InsertEnter" }, { "folke/trouble.nvim", cmd = { "TroubleToggle" } }, { "folke/todo-comments.nvim", event = "BufRead" }, - { "mfussenegger/nvim-jdtls", ft = { "java" } }, - { "npxbr/glow.nvim", ft = { "markdown" }, cmd = { "Glow" } }, + { "theHamsta/nvim-dap-virtual-text", config = "require[[user.dap-virtual-text]].setup()" }, }
M
config/lvim/ftplugin/go.lua
@@ -1,5 +1,7 @@
-lvim.format_on_save = true lvim.lang.go.formatters = { { exe = "gofmt" }, { exe = "goimports" }, } + +-- Debugger +require("dap-install").config("go_delve", {})
M
config/lvim/ftplugin/javascript.lua
@@ -7,6 +7,10 @@ lvim.lang.javascript.linters = {
{ exe = "eslint_d" }, } +-- Debugger +require("dap-install").config("jsnode", {}) + +-- Lsp lvim.lang.javascript.lsp.setup.handlers = { ["textDocument/publishDiagnostics"] = function(_, _, p, client_id, _, config) if p.diagnostics ~= nil then
A
config/lvim/lsp-settings/gopls.json
@@ -0,0 +1,5 @@
+{ + "go.lintTool": "golint", + "go.lintOnSave": "file", + "go.formatTool": "gofmt" +}
D
config/lvim/lua/u/package-info.lua
@@ -1,14 +0,0 @@
-local M = {} - -M.config = function() - require("package-info").setup({{ - autostart = true, - colors = { up_to_date = "#3C4048", outdated = "#6ec0fa" }, - icons = { - enable = true, - style = { up_to_date = "| ", outdated = "| " }, - }, - }}) -end - -return M
A
config/lvim/lua/user/dap-virtual-text.lua
@@ -0,0 +1,7 @@
+local M = {} + +M.setup = function () + vim.g.dap_virtual_text = true +end + +return M
D
config/nvim/init.lua
@@ -1,18 +0,0 @@
-local pack_path = vim.fn.stdpath("data") .. "/site/pack" -local fmt = string.format - -local function ensure(user, repo) - local install_path = fmt("%s/packer/start/%s", pack_path, repo, repo) - if vim.fn.empty(vim.fn.glob(install_path)) > 0 then - vim.api.nvim_command(fmt("!git clone https://github.com/%s/%s %s", user, repo, install_path)) - vim.api.nvim_command(fmt("packadd %s", repo)) - end -end - -ensure("wbthomason", "packer.nvim") -ensure("Olical", "aniseed") - -vim.g["aniseed#env"] = { - module = "config.init", - compile = true, -}