mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
update zsh, vscode, lvim
This commit is contained in:
parent
846f37457c
commit
2feea5ce1e
5 changed files with 27 additions and 9 deletions
|
|
@ -1,3 +1,5 @@
|
|||
vim.o.relativenumber = true
|
||||
|
||||
lvim.format_on_save = true
|
||||
lvim.lint_on_save = true
|
||||
lvim.colorscheme = "onedarker"
|
||||
|
|
@ -23,7 +25,7 @@ lvim.builtin.telescope.defaults.file_ignore_patterns = { ".git", "node_modules",
|
|||
lvim.builtin.nvimtree.ignore = { ".git", "node_modules", ".bin", "env" }
|
||||
|
||||
-- LSP
|
||||
-- lvim.lsp.override = {"gopls"}
|
||||
lvim.lsp.override = { "go", "gopls" }
|
||||
|
||||
-- Others
|
||||
require "user.plugins"
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
lvim.keys.insert_mode["<C-BS>"] = "<C-w>"
|
||||
lvim.keys.normal_mode["<C-w>"] = "<cmd>BufferClose<cr>"
|
||||
lvim.keys.normal_mode["<C-s>"] = "<cmd>w<cr>"
|
||||
lvim.keys.term_mode["jk"] = "<C-\\><C-n>"
|
||||
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" }
|
||||
|
|
|
|||
|
|
@ -3,10 +3,18 @@ lvim.plugins = {
|
|||
{ "folke/trouble.nvim", cmd = "TroubleToggle" },
|
||||
{
|
||||
"theHamsta/nvim-dap-virtual-text",
|
||||
after = "nvim-dap",
|
||||
config = function()
|
||||
require("plug.dap").setup()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"kristijanhusak/orgmode.nvim",
|
||||
ft = "org",
|
||||
config = function()
|
||||
require"orgmode".setup {}
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/todo-comments.nvim",
|
||||
event = "BufRead",
|
||||
|
|
@ -33,7 +41,7 @@ lvim.plugins = {
|
|||
"Smirnov-O/ts-unit.nvim",
|
||||
keys = { "vip", "cip", "yip", "dip" },
|
||||
config = function()
|
||||
require("plug.ts-unit").setup()
|
||||
require("plug.ts-unit").setup { keymaps = true }
|
||||
end,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue