all repos

dotfiles @ 0b99d6c

i use rach linux btw
8 files changed, 25 insertions(+), 37 deletions(-)
Update lvim
Author: Smirnov-O ss2316544@gmail.com
Committed at: 2021-09-12 23:27:06 +0300
Parent: d1af927
M config/lvim/config.lua
···
                9
                9
                 

              
                10
                10
                 -- GitSigns

              
                11
                11
                 lvim.builtin.gitsigns.opts.current_line_blame = true

              
                12
                
                -lvim.builtin.gitsigns.opts.current_line_blame_opts = { virt_text = true, virt_text_pos = "eol", delay = 200 }

              
                
                12
                +lvim.builtin.gitsigns.opts.current_line_blame_opts = { delay = 200 }

              
                13
                13
                 

              
                14
                14
                 -- TreeSitter

              
                15
                15
                 lvim.builtin.treesitter.ensure_installed = { "javascript", "typescript", "jsdoc", "lua", "java" }

              ···
                18
                18
                 -- Telescope

              
                19
                19
                 lvim.builtin.telescope.defaults.layout_config.prompt_position = "top"

              
                20
                20
                 lvim.builtin.telescope.defaults.file_ignore_patterns = { ".git", "node_modules", "env" }

              
                
                21
                +

              
                
                22
                +-- Debugger

              
                
                23
                +lvim.builtin.dap.active = true

              
                21
                24
                 

              
                22
                25
                 -- Mappings

              
                23
                26
                 lvim.keys.normal_mode["<C-w>"] = "<cmd>BufferClose<cr>"

              ···
                33
                36
                 -- Plugins

              
                34
                37
                 lvim.plugins = {

              
                35
                38
                 	{ "tpope/vim-surround", keys = { "c", "y", "d" } },

              
                36
                
                -	{ "andymass/vim-matchup", keys = { "%" } },

              
                
                39
                +	-- { "andymass/vim-matchup", keys = { "%" } },

              
                37
                40
                 	{ "tzachar/cmp-tabnine", run = "./install.sh", event = "InsertEnter" },

              
                38
                41
                 	{ "folke/trouble.nvim", cmd = { "TroubleToggle" } },

              
                39
                42
                 	{ "folke/todo-comments.nvim", event = "BufRead" },

              
                40
                
                -	{ "mfussenegger/nvim-jdtls", ft = { "java" } },

              
                41
                
                -	{ "npxbr/glow.nvim", ft = { "markdown" }, cmd = { "Glow" } },

              
                
                43
                +	{ "theHamsta/nvim-dap-virtual-text", config = "require[[user.dap-virtual-text]].setup()" },

              
                42
                44
                 }

              
M config/lvim/ftplugin/go.lua
···
                1
                
                -lvim.format_on_save = true

              
                2
                1
                 lvim.lang.go.formatters = {

              
                3
                2
                 	{ exe = "gofmt" },

              
                4
                3
                 	{ exe = "goimports" },

              
                5
                4
                 }

              
                
                5
                +

              
                
                6
                +-- Debugger

              
                
                7
                +require("dap-install").config("go_delve", {})

              
M config/lvim/ftplugin/javascript.lua
···
                7
                7
                 	{ exe = "eslint_d" },

              
                8
                8
                 }

              
                9
                9
                 

              
                
                10
                +-- Debugger

              
                
                11
                +require("dap-install").config("jsnode", {})

              
                
                12
                +

              
                
                13
                +-- Lsp

              
                10
                14
                 lvim.lang.javascript.lsp.setup.handlers = {

              
                11
                15
                 	["textDocument/publishDiagnostics"] = function(_, _, p, client_id, _, config)

              
                12
                16
                 		if p.diagnostics ~= nil then

              
A config/lvim/lsp-settings/gopls.json
···
                
                1
                +{

              
                
                2
                +  "go.lintTool": "golint",

              
                
                3
                +  "go.lintOnSave": "file",

              
                
                4
                +  "go.formatTool": "gofmt"

              
                
                5
                +}

              
D config/lvim/lua/u/package-info.lua
···
                1
                
                -local M = {}

              
                2
                
                -

              
                3
                
                -M.config = function()

              
                4
                
                -	require("package-info").setup({{

              
                5
                
                -    autostart = true,

              
                6
                
                -    colors = { up_to_date = "#3C4048", outdated = "#6ec0fa" },

              
                7
                
                -    icons = {

              
                8
                
                -      enable = true,

              
                9
                
                -      style = { up_to_date = "|  ", outdated = "|  " },

              
                10
                
                -    },

              
                11
                
                -	}})

              
                12
                
                -end

              
                13
                
                -

              
                14
                
                -return M

              
A config/lvim/lua/user/dap-virtual-text.lua
···
                
                1
                +local M = {}

              
                
                2
                +

              
                
                3
                +M.setup = function ()

              
                
                4
                +  vim.g.dap_virtual_text = true

              
                
                5
                +end

              
                
                6
                +

              
                
                7
                +return M

              
D config/nvim/init.lua
···
                1
                
                -local pack_path = vim.fn.stdpath("data") .. "/site/pack"

              
                2
                
                -local fmt = string.format

              
                3
                
                -

              
                4
                
                -local function ensure(user, repo)

              
                5
                
                -	local install_path = fmt("%s/packer/start/%s", pack_path, repo, repo)

              
                6
                
                -	if vim.fn.empty(vim.fn.glob(install_path)) > 0 then

              
                7
                
                -		vim.api.nvim_command(fmt("!git clone https://github.com/%s/%s %s", user, repo, install_path))

              
                8
                
                -		vim.api.nvim_command(fmt("packadd %s", repo))

              
                9
                
                -	end

              
                10
                
                -end

              
                11
                
                -

              
                12
                
                -ensure("wbthomason", "packer.nvim")

              
                13
                
                -ensure("Olical", "aniseed")

              
                14
                
                -

              
                15
                
                -vim.g["aniseed#env"] = {

              
                16
                
                -	module = "config.init",

              
                17
                
                -	compile = true,

              
                18
                
                -}