Compare commits

..

54 Commits

Author SHA1 Message Date
markus.dieckmann
01dc6da430 lock 2025-06-26 08:52:39 +02:00
markus.dieckmann
dc74cfc951 wip dap 2025-06-26 08:52:37 +02:00
markus.dieckmann
c6c8c6f5c3 try helm integration 2025-06-26 08:52:27 +02:00
markus.dieckmann
efcbd0be30 Revert "delete old stuff"
This reverts commit 7c32724416.
2025-05-27 13:03:22 +02:00
markus.dieckmann
1f58bb91cc experimental json to types 2025-05-27 11:54:12 +02:00
markus.dieckmann
3a383abe5a lockfile 2025-05-27 11:54:12 +02:00
markus.dieckmann
191d86f197 rainbox parentheses 2025-05-27 11:54:12 +02:00
markus.dieckmann
a993f440b1 the return of neotree <3 2025-05-27 11:54:12 +02:00
markus.dieckmann
98a100af8b flash for movement 2025-05-27 11:53:55 +02:00
markus.dieckmann
19f8fcd06e eslint_d instead of prettier if available 2025-05-27 11:53:55 +02:00
markus.dieckmann
118decfd8a buffer keys 2025-05-27 11:53:55 +02:00
markus.dieckmann
610ff2426c folding 2025-05-27 11:53:55 +02:00
7c32724416 delete old stuff 2025-05-27 11:53:55 +02:00
markus.dieckmann
904665d86c lock 2025-05-23 11:08:10 +02:00
markus.dieckmann
657a1cdc06 trying to enable inlayhints for vtsls 2025-05-23 11:08:07 +02:00
markus.dieckmann
73c3e42eb2 bufdelete 2025-05-23 11:07:51 +02:00
markus.dieckmann
ade185ece7 gitsigns 2025-05-21 10:57:01 +02:00
markus.dieckmann
140f7483e1 treesitter context 2025-05-21 10:56:49 +02:00
markus.dieckmann
8cd716f592 change fzflua window size 2025-05-21 10:56:49 +02:00
7d8d1a62a3 lock 2025-05-19 18:52:49 +02:00
a3f6e37e2d signature help and auto show 2025-05-19 18:50:09 +02:00
markus.dieckmann
3a67710814 keymap
remove double ]
cursorcolumn
scrolloff
2025-05-14 18:09:19 +02:00
markus.dieckmann
53b225e31f git-blame 2025-05-14 18:08:52 +02:00
markus.dieckmann
cb30bcc532 snacks.animate 2025-05-14 18:08:39 +02:00
markus.dieckmann
5c9d817d73 indenting 2025-05-13 14:26:38 +02:00
markus.dieckmann
54ac7d5ce5 lock 2025-05-12 14:05:28 +02:00
markus.dieckmann
1c18db6ce9 jsonls 2025-05-12 13:51:29 +02:00
markus.dieckmann
5728cfae22 add toggleterm back 2025-05-12 13:51:22 +02:00
markus.dieckmann
6f36503b48 lock 2025-05-12 13:00:20 +02:00
markus.dieckmann
89b7af86ff mini 2025-05-12 13:00:14 +02:00
markus.dieckmann
481ad345a1 lsps and settings 2025-05-12 13:00:11 +02:00
markus.dieckmann
b44a2b20de lock 2025-05-12 11:49:00 +02:00
markus.dieckmann
7dd8871a48 trouble init 2025-05-12 11:48:58 +02:00
markus.dieckmann
dea2a9e4e5 older options 2025-05-12 11:48:50 +02:00
markus.dieckmann
3f346ba288 scrolloff 2025-05-12 11:29:01 +02:00
markus.dieckmann
4dda237702 better lsp keys 2025-05-12 11:28:58 +02:00
e93d0952cd lock 2025-05-12 11:27:18 +02:00
ee7e4f018a oil snacks trouble 2025-05-12 11:27:17 +02:00
bdad7dbab3 formatting, completion, lsp 2025-05-12 11:27:08 +02:00
068782f050 lsp keys and lock 2025-05-08 00:10:28 +02:00
bb026a1bf6 spacing 2025-05-08 00:10:21 +02:00
1f597043eb bufferline 2025-05-08 00:10:10 +02:00
f17b2cd074 square bracket reamp 2025-05-08 00:10:06 +02:00
e7cea6c88d lock 2025-05-07 23:50:27 +02:00
2ea53bfb09 snacks 2025-05-07 23:50:22 +02:00
29017286ed lsp 2025-05-07 23:49:54 +02:00
059484dc4b fzf keys 2025-05-07 23:49:50 +02:00
13700286da lock 2025-05-07 00:25:13 +02:00
186e2def11 formatting 2025-05-07 00:25:12 +02:00
c234f6957a navigation 2025-05-07 00:25:07 +02:00
d7b6c3b450 formatting 2025-05-07 00:24:58 +02:00
cd3a5784fb plugins and config 2025-05-06 23:37:50 +02:00
850670d44c lazy init 2025-05-06 23:37:41 +02:00
1d0b4786d1 delete old stuff 2025-05-06 23:37:31 +02:00
12 changed files with 104 additions and 286 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -1,49 +1,46 @@
{ {
"auto-session": { "branch": "main", "commit": "517a75727d28a4d1ee9c79b56dde239a5408778f" }, "blink.cmp": { "branch": "main", "commit": "9bcb14b43852a6f2bfd5ac9ef29cb5cf09b1b39b" },
"blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"conform.nvim": { "branch": "master", "commit": "fbcb4fa7f34bfea9be702ffff481a8e336ebf6ed" }, "conform.nvim": { "branch": "master", "commit": "8132ec733eed3bf415b97b76797ca41b59f51d7d" },
"fidget.nvim": { "branch": "main", "commit": "3f5475949679953af6d78654db29b944fa826e6a" }, "fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
"flash.nvim": { "branch": "main", "commit": "2febce67ff9cf7638d2569d17c41af02c38401eb" }, "flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"fzf-lua": { "branch": "main", "commit": "83e4080ae886a42ec48c5c26ce5892ceb557c425" }, "fzf-lua": { "branch": "main", "commit": "05eaee319fcf2f5a0d378c2848641858c8b8962e" },
"git-blame.nvim": { "branch": "master", "commit": "54da04264ec5313d602aebea7c5dc90141696ad7" }, "git-blame.nvim": { "branch": "master", "commit": "8503b199edf9a666fe7b1a989cf14e3c26b2eb03" },
"gitsigns.nvim": { "branch": "main", "commit": "1ee5c1fd068c81f9dd06483e639c2aa4587dc197" }, "gitsigns.nvim": { "branch": "main", "commit": "88205953bd748322b49b26e1dfb0389932520dc9" },
"json-to-types.nvim": { "branch": "main", "commit": "e8dcc6ac710c59fcac354255a835f72916171ba8" }, "json-to-types.nvim": { "branch": "main", "commit": "e8dcc6ac710c59fcac354255a835f72916171ba8" },
"kanagawa.nvim": { "branch": "master", "commit": "aef7f5cec0a40dbe7f3304214850c472e2264b10" }, "kanagawa.nvim": { "branch": "master", "commit": "debe91547d7fb1eef34ce26a5106f277fbfdd109" },
"lazy.nvim": { "branch": "main", "commit": "1ea3c4085785f460fb0e46d2fe1ee895f5f9e7c1" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"lazydev.nvim": { "branch": "main", "commit": "e28ce52fc7ff79fcb76f0e79ee6fb6182fca90b9" }, "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "6bdb14f230de0904229ec367b410fb817e59b072" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "f54e3c11fc9ebfcfc27e696182b0295b071d0811" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" }, "mason-tool-installer.nvim": { "branch": "main", "commit": "93a9ff9b34c91c0cb0f7de8d5f7e4abce51d8903" },
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" }, "mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
"mini.icons": { "branch": "main", "commit": "284798619aed9f4c1ac1b9417b9a5e3b4b85ef3a" }, "mini.icons": { "branch": "main", "commit": "94848dad1589a199f876539bd79befb0c5e3abf0" },
"mini.nvim": { "branch": "main", "commit": "94cae4660a8b2d95dbbd56e1fbc6fcfa2716d152" }, "mini.nvim": { "branch": "main", "commit": "94cae4660a8b2d95dbbd56e1fbc6fcfa2716d152" },
"mini.statusline": { "branch": "main", "commit": "faa39777ca729c6dafe86041207ba8db9321cb29" }, "mini.statusline": { "branch": "main", "commit": "452d27d764720cddcb9909b786598bb9e80c1ce8" },
"neo-tree.nvim": { "branch": "v3.x", "commit": "c4c168e459395275c552179a1baf9c3d885d6a74" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "f481de16a0eb59c985abac8985e3f2e2f75b4875" },
"none-ls-extras.nvim": { "branch": "main", "commit": "402c6b5c29f0ab57fac924b863709f37f55dc298" },
"none-ls.nvim": { "branch": "main", "commit": "a96172f673f720cd4f3572e1fcd08400ed3eb25d" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-dap": { "branch": "master", "commit": "6782b097af2417a4c3e33849b0a26ae2188bd7ea" }, "nvim-dap": { "branch": "master", "commit": "2edd6375692d9ac1053d50acfe415c1eb2ba92d0" },
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" }, "nvim-dap-ui": { "branch": "master", "commit": "73a26abf4941aa27da59820fd6b028ebcdbcf932" },
"nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" },
"nvim-lsp-file-operations": { "branch": "master", "commit": "9744b738183a5adca0f916527922078a965515ed" }, "nvim-lsp-file-operations": { "branch": "master", "commit": "9744b738183a5adca0f916527922078a965515ed" },
"nvim-lspconfig": { "branch": "master", "commit": "ac98db2f9f06a56498ec890a96928774eae412c3" }, "nvim-lspconfig": { "branch": "master", "commit": "314b35335cc84bc2a085c84c69da955ba22da163" },
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-treesitter-context": { "branch": "master", "commit": "41847d3dafb5004464708a3db06b14f12bde548a" }, "nvim-treesitter-context": { "branch": "master", "commit": "1a1a7c5d6d75cb49bf64049dafab15ebe294a79f" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "89ebe73cd2836db80a22d9748999ace0241917a5" },
"nvim-vtsls": { "branch": "main", "commit": "0b5f73c9e50ce95842ea07bb3f05c7d66d87d14a" }, "nvim-vtsls": { "branch": "main", "commit": "60b493e641d3674c030c660cabe7a2a3f7a914be" },
"nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" }, "nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" },
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" }, "nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
"oil.nvim": { "branch": "master", "commit": "71948729cda5fc1b761d6ae60ff774b5525f1d50" }, "oil.nvim": { "branch": "master", "commit": "08c2bce8b00fd780fb7999dbffdf7cd174e896fb" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" }, "project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" },
"rainbow-delimiters.nvim": { "branch": "master", "commit": "3277ad5f96eb03c9d618c88e24f683e4364e578c" }, "rainbow-delimiters.nvim": { "branch": "master", "commit": "55ad4fb76ab68460f700599b7449385f0c4e858e" },
"rustaceanvim": { "branch": "master", "commit": "12504405821c05874d2d1f6b5ec919f9808e2c99" }, "rustaceanvim": { "branch": "master", "commit": "b554761a920d807c3a7e8388d0dd34205ae4fd0d" },
"snacks.nvim": { "branch": "main", "commit": "454ba02d69347c0735044f159b95d2495fc79a73" }, "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" },
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" }, "toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
"trouble.nvim": { "branch": "main", "commit": "c098362fe603d3922095e7db595961e020bdf2d0" }, "trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" },
"vim-helm": { "branch": "master", "commit": "2c8525fd98e57472769d137317bca83e477858ce" }, "vim-helm": { "branch": "master", "commit": "cc5ac22444332381f38084a6c7f023c25eef6201" },
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" }, "vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
"which-key.nvim": { "branch": "main", "commit": "b4177e3eaf15fe5eb8357ebac2286d488be1ed00" } "which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
} }

View File

@@ -1,17 +1,17 @@
-- Bootstrap lazy.nvim -- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git" local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({ vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" }, { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" }, { out, "WarningMsg" },
{ "\nPress any key to exit..." }, { "\nPress any key to exit..." },
}, true, {}) }, true, {})
vim.fn.getchar() vim.fn.getchar()
os.exit(1) os.exit(1)
end end
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
@@ -25,16 +25,15 @@ require("config.options")
-- Setup lazy.nvim -- Setup lazy.nvim
require("lazy").setup({ require("lazy").setup({
spec = { spec = {
-- import your plugins -- import your plugins
{ import = "plugins" }, { import = "plugins" },
}, },
-- Configure any other settings here. See the documentation for more details. -- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins. -- colorscheme that will be used when installing plugins.
install = { colorscheme = { "kanagawa" } }, install = { colorscheme = { "kanagawa" } },
-- automatically check for plugin updates -- automatically check for plugin updates
checker = { enabled = true }, checker = { enabled = true },
}) })
require("config.keymap") require("config.keymap")
require("fzf-lua").register_ui_select()

View File

@@ -1,11 +1,10 @@
vim.o.fillchars = "eob: ,fold: ,foldopen:,foldsep: ,foldclose:" vim.o.fillchars = 'eob: ,fold: ,foldopen:,foldsep: ,foldclose:'
vim.o.foldcolumn = "1" vim.o.foldcolumn = '1'
vim.o.foldenable = true vim.o.foldenable = true
vim.o.foldexpr = "v:lua.vim.lsp.foldexpr()" vim.o.foldexpr = 'v:lua.vim.lsp.foldexpr()'
vim.o.foldlevel = 99 vim.o.foldlevel = 99
vim.o.foldlevelstart = 99 vim.o.foldlevelstart = 99
vim.o.foldmethod = "expr" vim.o.foldmethod = 'expr'
-- vim.o.winborder = "bold"
vim.opt.langmap = "+]ü[" vim.opt.langmap = "+]ü["
vim.keymap.set("n", "ü", "[", { remap = true }) vim.keymap.set("n", "ü", "[", { remap = true })
@@ -29,7 +28,7 @@ vim.opt.number = true
vim.opt.relativenumber = true vim.opt.relativenumber = true
-- Enable mouse mode, can be useful for resizing splits for example! -- Enable mouse mode, can be useful for resizing splits for example!
vim.opt.mouse = "a" vim.opt.mouse = 'a'
-- Don't show the mode, since it's already in the status line -- Don't show the mode, since it's already in the status line
vim.opt.showmode = false vim.opt.showmode = false
@@ -39,7 +38,7 @@ vim.opt.showmode = false
-- Remove this option if you want your OS clipboard to remain independent. -- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'` -- See `:help 'clipboard'`
vim.schedule(function() vim.schedule(function()
vim.opt.clipboard = "unnamedplus" vim.opt.clipboard = 'unnamedplus'
end) end)
-- Enable break indent -- Enable break indent
@@ -53,7 +52,7 @@ vim.opt.ignorecase = true
vim.opt.smartcase = true vim.opt.smartcase = true
-- Keep signcolumn on by default -- Keep signcolumn on by default
vim.opt.signcolumn = "yes" vim.opt.signcolumn = 'yes'
-- Decrease update time -- Decrease update time
vim.opt.updatetime = 250 vim.opt.updatetime = 250
@@ -69,10 +68,10 @@ vim.opt.splitbelow = true
-- See `:help 'list'` -- See `:help 'list'`
-- and `:help 'listchars'` -- and `:help 'listchars'`
vim.opt.list = true vim.opt.list = true
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "" } vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' }
-- Preview substitutions live, as you type! -- Preview substitutions live, as you type!
vim.opt.inccommand = "split" vim.opt.inccommand = 'split'
-- Show which line your cursor is on -- Show which line your cursor is on
vim.opt.cursorline = true vim.opt.cursorline = true
@@ -97,10 +96,10 @@ vim.diagnostic.config({ virtual_text = true })
-- Clear highlights on search when pressing <Esc> in normal mode -- Clear highlights on search when pressing <Esc> in normal mode
-- See `:help hlsearch` -- See `:help hlsearch`
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>") vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Diagnostic keymaps -- Diagnostic keymaps
vim.keymap.set("n", "<leader>q", vim.diagnostic.setloclist, { desc = "Open diagnostic [Q]uickfix list" }) vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which -- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
@@ -108,7 +107,7 @@ vim.keymap.set("n", "<leader>q", vim.diagnostic.setloclist, { desc = "Open diagn
-- --
-- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping -- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping
-- or just use <C-\><C-n> to exit terminal mode -- or just use <C-\><C-n> to exit terminal mode
vim.keymap.set("t", "<Esc><Esc>", "<C-\\><C-n>", { desc = "Exit terminal mode" }) vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
-- TIP: Disable arrow keys in normal mode -- TIP: Disable arrow keys in normal mode
-- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>') -- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
@@ -120,17 +119,17 @@ vim.keymap.set("t", "<Esc><Esc>", "<C-\\><C-n>", { desc = "Exit terminal mode" }
-- Use CTRL+<hjkl> to switch between windows -- Use CTRL+<hjkl> to switch between windows
-- --
-- See `:help wincmd` for a list of all window commands -- See `:help wincmd` for a list of all window commands
vim.keymap.set("n", "<C-h>", "<C-w><C-h>", { desc = "Move focus to the left window" }) vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
vim.keymap.set("n", "<C-l>", "<C-w><C-l>", { desc = "Move focus to the right window" }) vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
vim.keymap.set("n", "<C-j>", "<C-w><C-j>", { desc = "Move focus to the lower window" }) vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
vim.keymap.set("n", "<C-k>", "<C-w><C-k>", { desc = "Move focus to the upper window" }) vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
-- Highlight when yanking (copying) text -- Highlight when yanking (copying) text
-- Try it with `yap` in normal mode -- Try it with `yap` in normal mode
-- See `:help vim.highlight.on_yank()` -- See `:help vim.highlight.on_yank()`
vim.api.nvim_create_autocmd("TextYankPost", { vim.api.nvim_create_autocmd('TextYankPost', {
desc = "Highlight when yanking (copying) text", desc = 'Highlight when yanking (copying) text',
group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true }), group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
callback = function() callback = function()
vim.highlight.on_yank() vim.highlight.on_yank()
end, end,

View File

@@ -10,10 +10,6 @@ return {
}, },
}, },
opts = { opts = {
async = true,
format = {
timeout_ms = 5000,
},
formatters_by_ft = { formatters_by_ft = {
lua = { "stylua" }, lua = { "stylua" },
-- Conform will run multiple formatters sequentially -- Conform will run multiple formatters sequentially
@@ -23,10 +19,10 @@ return {
-- Conform will run the first available formatter -- Conform will run the first available formatter
javascript = { "eslint_d", "prettierd", "prettier", stop_after_first = true }, javascript = { "eslint_d", "prettierd", "prettier", stop_after_first = true },
typescript = { "eslint_d", "prettierd", "prettier", stop_after_first = true }, typescript = { "eslint_d", "prettierd", "prettier", stop_after_first = true },
prisma = { "null-ls", lsp_format = false },
format_on_save = { format_on_save = {
-- These options will be passed to conform.format() -- These options will be passed to conform.format()
timeout_ms = 5000, timeout_ms = 500,
lsp_format = "fallback",
}, },
}, },
}, },

View File

@@ -4,7 +4,7 @@ return {
dependencies = { dependencies = {
"rcarriga/nvim-dap-ui", "rcarriga/nvim-dap-ui",
"nvim-neotest/nvim-nio", "nvim-neotest/nvim-nio",
"theHamsta/nvim-dap-virtual-text", "theHamsta/nvim-dap-virtual-text"
}, },
keys = { keys = {
{ {
@@ -22,24 +22,5 @@ return {
}, },
config = function() config = function()
require("dapui").setup() require("dapui").setup()
require("dap").adapters["pwa-node"] = {
type = "server",
host = "localhost",
port = "${port}",
}
require("dap").configurations.typescript = {
type = "pwa-node",
request = "launch",
name = "Launch file",
program = "${file}",
cwd = "${workspaceFolder}",
}
require("dap").configurations.javascript = {
type = "pwa-node",
request = "launch",
name = "Launch file",
program = "${file}",
cwd = "${workspaceFolder}",
}
end, end,
} }

View File

@@ -1,92 +1,23 @@
return { return {
"ibhagwan/fzf-lua", "ibhagwan/fzf-lua",
dependencies = { "echasnovski/mini.icons" }, dependencies = { "echasnovski/mini.icons" },
config = function() opts = {
require("fzf-lua").setup({ winopts={
winopts = { height = 0.85,
height = 0.85, width = 0.95,
width = 0.95, }
},
})
require("fzf-lua").register_ui_select()
end,
keys = {
{
"<leader>ff",
function()
require("fzf-lua").files()
end,
desc = "Find Files in current dir",
},
{
"<leader>fb",
function()
require("fzf-lua").buffers()
end,
desc = "Find open buffers",
},
{
"<leader><leader>",
function()
require("fzf-lua").buffers()
end,
desc = "Find open buffers",
},
{
"<leader>fgf",
function()
require("fzf-lua").git_files()
end,
desc = "Find git files",
},
{
"<leader>fgb",
function()
require("fzf-lua").git_branches()
end,
desc = "Find git branches",
},
{
"<leader>fB",
function()
require("fzf-lua").builtin()
end,
desc = "Find builtin finders",
},
{
"<leader>fr",
function()
require("fzf-lua").resume()
end,
desc = "Resume last search",
},
{
"<leader>fG",
function()
require("fzf-lua").live_grep()
end,
desc = "Grep files live",
},
{
"<leader>fw",
function()
require("fzf-lua").grep_cword()
end,
desc = "Grep current word",
},
{
"<leader>fW",
function()
require("fzf-lua").grep_cWORD()
end,
desc = "Grep current WORD",
},
{
"<leader>/",
function()
require("fzf-lua").lgrep_curbuf()
end,
desc = "Grep current buffer",
},
}, },
keys = {
{ "<leader>ff", function() require('fzf-lua').files() end, desc="Find Files in current dir"},
{ "<leader>fb", function() require('fzf-lua').buffers() end, desc="Find open buffers"},
{ "<leader><leader>", function() require('fzf-lua').buffers() end, desc="Find open buffers"},
{ "<leader>fgf", function() require('fzf-lua').git_files() end, desc="Find git files"},
{ "<leader>fgb", function() require('fzf-lua').git_branches() end, desc="Find git branches"},
{ "<leader>fB", function() require('fzf-lua').builtin() end, desc="Find builtin finders"},
{ "<leader>fr", function() require('fzf-lua').resume() end, desc="Resume last search"},
{ "<leader>fG", function() require('fzf-lua').live_grep() end, desc="Grep files live"},
{ "<leader>fw", function() require('fzf-lua').grep_cword() end, desc="Grep current word"},
{ "<leader>fW", function() require('fzf-lua').grep_cWORD() end, desc="Grep current WORD"},
{ "<leader>/", function() require('fzf-lua').lgrep_curbuf() end, desc="Grep current buffer"},
}
} }

View File

@@ -6,9 +6,6 @@ return {
"WhoIsSethDaniel/mason-tool-installer.nvim", "WhoIsSethDaniel/mason-tool-installer.nvim",
"yioneko/nvim-vtsls", "yioneko/nvim-vtsls",
opts = { opts = {
format = {
timeout_ms = 10000,
},
settings = { settings = {
typescript = { typescript = {
inlayHints = { inlayHints = {
@@ -23,7 +20,7 @@ return {
}, },
}, },
{ "j-hui/fidget.nvim", opts = {} }, { "j-hui/fidget.nvim", opts = {} },
"saghen/blink.cmp", "saghen/blink.cmp",
}, },
@@ -90,7 +87,7 @@ return {
local client = vim.lsp.get_client_by_id(event.data.client_id) local client = vim.lsp.get_client_by_id(event.data.client_id)
if if
client and client_supports_method(client, vim.lsp.protocol.Methods.textDocument_documentHighlight, event.buf) client and client_supports_method(client, vim.lsp.protocol.Methods.textDocument_documentHighlight, event.buf)
then then
local highlight_augroup = vim.api.nvim_create_augroup("kickstart-lsp-highlight", { clear = false }) local highlight_augroup = vim.api.nvim_create_augroup("kickstart-lsp-highlight", { clear = false })
vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, { vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, {

View File

@@ -1,20 +1,20 @@
return { return {
"nvim-mini/mini.nvim", "echasnovski/mini.nvim",
version = "*", version = "*",
config = function() config = function()
require("mini.pairs").setup({}) require("mini.pairs").setup({})
require("mini.surround").setup({ require("mini.surround").setup({
mappings = { mappings = {
add = "gza", -- Add surrounding in Normal and Visual modes add = "gza", -- Add surrounding in Normal and Visual modes
delete = "gzd", -- Delete surrounding delete = "gzd", -- Delete surrounding
find = "gzf", -- Find surrounding (to the right) find = "gzf", -- Find surrounding (to the right)
find_left = "gzF", -- Find surrounding (to the left) find_left = "gzF", -- Find surrounding (to the left)
highlight = "gzh", -- Highlight surrounding highlight = "gzh", -- Highlight surrounding
replace = "gzr", -- Replace surrounding replace = "gzr", -- Replace surrounding
update_n_lines = "gzn", -- Update `n_lines` update_n_lines = "gzn", -- Update `n_lines`
suffix_last = "l", -- Suffix to search with "prev" method suffix_last = "l", -- Suffix to search with "prev" method
suffix_next = "n", -- Suffix to search with "next" method suffix_next = "n", -- Suffix to search with "next" method
}, },
}) })
end, end,

View File

@@ -1,18 +0,0 @@
return {
"nvimtools/none-ls.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvimtools/none-ls-extras.nvim",
},
config = function()
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.code_actions.gitsigns,
null_ls.builtins.code_actions.refactoring,
null_ls.builtins.formatting.prisma_format,
require("none-ls.diagnostics.eslint"), -- requires none-ls-extras.nvim
},
})
end,
}

View File

@@ -1,57 +0,0 @@
return {
"rmagatti/auto-session",
lazy = false,
keys = {
-- Will use Telescope if installed or a vim.ui.select picker otherwise
{ "<leader>wr", "<cmd>AutoSession search<CR>", desc = "Session search" },
{ "<leader>ws", "<cmd>AutoSession save<CR>", desc = "Save session" },
{ "<leader>wa", "<cmd>AutoSession toggle<CR>", desc = "Toggle autosave" },
},
---enables autocomplete for opts
---@module "auto-session"
---@type AutoSession.Config
opts = {
-- The following are already the default values, no need to provide them if these are already the settings you want.
session_lens = {
picker = nil, -- "telescope"|"snacks"|"fzf"|"select"|nil Pickers are detected automatically but you can also manually choose one. Falls back to vim.ui.select
mappings = {
-- Mode can be a string or a table, e.g. {"i", "n"} for both insert and normal mode
delete_session = { "i", "<C-d>" },
alternate_session = { "i", "<C-s>" },
copy_session = { "i", "<C-y>" },
},
picker_opts = {
-- For Telescope, you can set theme options here, see:
-- https://github.com/nvim-telescope/telescope.nvim/blob/master/doc/telescope.txt#L112
-- https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/themes.lua
--
-- border = true,
-- layout_config = {
-- width = 0.8, -- Can set width and height as percent of window
-- height = 0.5,
-- },
-- For Snacks, you can set layout options here, see:
-- https://github.com/folke/snacks.nvim/blob/main/docs/picker.md#%EF%B8%8F-layouts
--
-- preset = "dropdown",
-- preview = false,
-- layout = {
-- width = 0.4,
-- height = 0.4,
-- },
-- For Fzf-Lua, picker_opts just turns into winopts, see:
-- https://github.com/ibhagwan/fzf-lua#customization
--
-- height = 0.8,
-- width = 0.50,
},
-- Telescope only: If load_on_setup is false, make sure you use `:AutoSession search` to open the picker as it will initialize everything first
load_on_setup = true,
},
},
}

View File

@@ -21,13 +21,6 @@ return {
words = { enabled = true }, words = { enabled = true },
}, },
keys = { keys = {
{
"<leader>gl",
function()
Snacks.git.blame_line()
end,
desc = "Snacks blame line",
},
{ {
"<leader>gg", "<leader>gg",
function() function()
@@ -56,8 +49,8 @@ return {
Snacks.toggle.diagnostics():map("<leader>ud") Snacks.toggle.diagnostics():map("<leader>ud")
Snacks.toggle.line_number():map("<leader>ul") Snacks.toggle.line_number():map("<leader>ul")
Snacks.toggle Snacks.toggle
.option("conceallevel", { off = 0, on = vim.o.conceallevel > 0 and vim.o.conceallevel or 2 }) .option("conceallevel", { off = 0, on = vim.o.conceallevel > 0 and vim.o.conceallevel or 2 })
:map("<leader>uc") :map("<leader>uc")
Snacks.toggle.treesitter():map("<leader>uT") Snacks.toggle.treesitter():map("<leader>uT")
Snacks.toggle.option("background", { off = "light", on = "dark", name = "Dark Background" }):map("<leader>ub") Snacks.toggle.option("background", { off = "light", on = "dark", name = "Dark Background" }):map("<leader>ub")
Snacks.toggle.inlay_hints():map("<leader>uh") Snacks.toggle.inlay_hints():map("<leader>uh")