mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update lvim
This commit is contained in:
parent
d1af9278c5
commit
0b99d6c75c
9 changed files with 25 additions and 38 deletions
|
|
@ -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" }
|
||||
|
|
@ -19,6 +19,9 @@ lvim.builtin.treesitter.indent.disable = { "clojure", "java", "python" }
|
|||
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>"
|
||||
lvim.keys.normal_mode["<C-s>"] = "<cmd>w<cr>"
|
||||
|
|
@ -33,10 +36,9 @@ end
|
|||
-- 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()" },
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
lvim.format_on_save = true
|
||||
lvim.lang.go.formatters = {
|
||||
{ exe = "gofmt" },
|
||||
{ exe = "goimports" },
|
||||
}
|
||||
|
||||
-- Debugger
|
||||
require("dap-install").config("go_delve", {})
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
5
config/lvim/lsp-settings/gopls.json
Normal file
5
config/lvim/lsp-settings/gopls.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"go.lintTool": "golint",
|
||||
"go.lintOnSave": "file",
|
||||
"go.formatTool": "gofmt"
|
||||
}
|
||||
|
|
@ -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
|
||||
7
config/lvim/lua/user/dap-virtual-text.lua
Normal file
7
config/lvim/lua/user/dap-virtual-text.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
local M = {}
|
||||
|
||||
M.setup = function ()
|
||||
vim.g.dap_virtual_text = true
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue