mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
update lvim
This commit is contained in:
parent
a537caddf0
commit
da1068fdc2
15 changed files with 169 additions and 127 deletions
|
|
@ -1,16 +0,0 @@
|
|||
local M = {}
|
||||
|
||||
M.setup = function()
|
||||
vim.g.maplocalleader = ","
|
||||
vim.g["conjure#mapping#doc_word"] = "K"
|
||||
|
||||
-- Clojure
|
||||
vim.g["conjure#client#clojure#nrepl#eval#auto_require"] = false
|
||||
vim.g["conjure#client#clojure#nrepl#connection#auto_repl#enabled"] = false
|
||||
|
||||
-- Scheme
|
||||
vim.g["conjure#client#scheme#stdio#command"] = "chicken-csi -quiet -:c"
|
||||
vim.g["conjure#client#scheme#stdio#prompt_pattern"] = "\n-#;%d-> "
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
local M = {}
|
||||
|
||||
M.setup = function ()
|
||||
vim.g.dap_virtual_text = true
|
||||
end
|
||||
|
||||
return M
|
||||
25
config/lvim/lua/user/keymaps.lua
Normal file
25
config/lvim/lua/user/keymaps.lua
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
lvim.keys.normal_mode["<C-w>"] = "<cmd>BufferClose<cr>"
|
||||
lvim.keys.normal_mode["<C-s>"] = "<cmd>w<cr>"
|
||||
lvim.keys.visual_mode["jk"] = "<esc>"
|
||||
|
||||
-- Which key
|
||||
lvim.builtin.which_key.mappings.l.a = { "<cmd>Telescope lsp_code_actions<cr>", "Code Actions" }
|
||||
lvim.builtin.which_key.mappings.l.d = { "<cmd>TroubleToggle<cr>", "Diagnostics" }
|
||||
lvim.builtin.which_key.mappings.l.R = { "<cmd>TroubleToggle lsp_references<cr>", "References" }
|
||||
lvim.builtin.which_key.mappings.s.P = { "<cmd>Telescope projects<cr>", "Projects" }
|
||||
lvim.builtin.which_key.mappings["t"] = {
|
||||
name = "Test",
|
||||
t = { "<cmd>Ultest<cr>", "Run tests" },
|
||||
s = { "<cmd>UltestStop<cr>", "Stop tests" },
|
||||
c = { "<cmd>UltestClear<cr>", "Clear result" },
|
||||
n = { "<cmd>UltestNearest<cr>", "Run test" },
|
||||
o = { "<cmd>UltestOutput<cr>", "Show output" },
|
||||
j = { "<Plug>(ultest-next-fail)", "Next fail" },
|
||||
k = { "<Plug>(ultest-prev-fail)", "Prev fail" },
|
||||
}
|
||||
|
||||
-- Beffers
|
||||
local fmt = string.format
|
||||
for i = 1, 9 do
|
||||
lvim.keys.normal_mode[fmt("<A-%d>", i)] = fmt("<cmd>BufferGoto %d<cr>", i)
|
||||
end
|
||||
53
config/lvim/lua/user/plugins.lua
Normal file
53
config/lvim/lua/user/plugins.lua
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
lvim.plugins = {
|
||||
{ "tpope/vim-surround", keys = { "c", "y", "d" }, event = "BufRead" },
|
||||
{ "folke/trouble.nvim", cmd = "TroubleToggle" },
|
||||
{
|
||||
"theHamsta/nvim-dap-virtual-text",
|
||||
config = function()
|
||||
require("plug.dap").setup()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/todo-comments.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require "plug.todo-comment"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"tzachar/cmp-tabnine",
|
||||
run = "./install.sh",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require "plug.tabnine"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/lua-dev.nvim",
|
||||
ft = "lua",
|
||||
config = function()
|
||||
require("plug.lua-dev").setup()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"Smirnov-O/ts-unit.nvim",
|
||||
keys = { "vip", "cip", "yip", "dip" },
|
||||
config = function()
|
||||
require "plug.ts-unit"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"rcarriga/vim-ultest",
|
||||
requires = {
|
||||
{ "vim-test/vim-test", after = "vim-ultest" },
|
||||
},
|
||||
run = ":UpdateRemotePlugins",
|
||||
cmd = {
|
||||
"Ultest",
|
||||
"UltestStop",
|
||||
"UltestClear",
|
||||
"UltestNearest",
|
||||
"UltestOutput",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue