Commit graph

146 commits

Author SHA1 Message Date
Martin Larsson
57473ff020 Update CodeCompanion to use the new API 2024-10-07 19:03:29 +02:00
Martin Larsson
4314571ff4 Turn off "auto_show_console" in Neogit. This fixes an error which
occured when Neogit takes serveral seconds to load (i.e in really large
repos)
2024-10-07 19:02:12 +02:00
Martin Larsson
b6f533183c Add persistent breakpoints which are serialized and loaded on startup.
Additionally, add better visualization for the breakpoints and change
keybindings. Now supports conditional breakpoints, regular breakpoints,
and clearing all breakpoints.
2024-10-04 23:58:30 +02:00
Martin Larsson
1c36d605f0 Fix warning: multiple different client offset_encodings detected for buffer, this is not supported yet by forcing offsetEncoding to utf16. utf8 has problems with copilot. 2024-09-24 14:09:12 +02:00
Martin Larsson
f21179be91 Change so instead of turning off inlay hints and displacing text when
leaping, just hide the text and make it invisible until we finish
leaping.
2024-09-22 15:43:59 +02:00
Martin Larsson
239dad6524 Add keybinds for code companion 2024-09-22 15:20:01 +02:00
Martin Larsson
a55f39f71d Add code companion plugin and configure it to use Copilot on all
accounts as that is promitted to use at work. Since it's using the
official Copilot plugin we can be sure that the token is using whatever
is authorized.
2024-09-22 14:00:02 +02:00
Martin Larsson
9d63c7b0a5 Remove animations from nvim notify as it was causing the cursor to
flicker.
2024-09-22 13:58:53 +02:00
Martin Larsson
2b1009e9f3 Change from 'edit' to 'drop' when switching from header/source in clang 2024-09-21 16:49:12 +02:00
Martin Larsson
822d397635 Update clang from lspconfig, fix keybinds for header/source switching
and symbol info. Also start clang with more and different options for
better handling in larger projects:

+            "--background-index",         -- Enables background indexing
+            "--clang-tidy",               -- Enables clang-tidy diagnostics
+            "--completion-style=bundled", -- Simpler completions for faster performance
+            "--rename-file-limit=0",      -- No limit on renaming files
+            "--header-insertion=iwyu",    -- Suggest missing includes based on IWYU
+            "--inlay-hints",              -- Enable inlay hints for parameter and type information
+            "--limit-results=70",         -- Limit autocompletion and symbol results
+            "--suggest-missing-includes", -- Still show missing includes suggestions
+            "--pch-storage=disk",         -- Stores precompiled headers on disk (fixes the issue where system ran out of memory when indexing large projects, not a huge performance hit on fast m2 ssds)
+            "--log=error",                -- Log only errors
2024-09-21 16:45:34 +02:00
Martin Larsson
1c46dfff48 Remove listchar whitespace visualization, it was just getting in the way
imo.
2024-09-21 16:45:17 +02:00
Martin Larsson
fc01aa096c Completely change from telescope to fzf, it's way more performant 2024-09-16 00:12:30 +02:00
Martin Larsson
3ecc70e179 Change next/prev hunk from h to g keybind 2024-09-15 23:36:32 +02:00
Martin Larsson
ce0dfec2ea Test out fzf over telescope for switching files, might migrate all functionality to fzf over telescope if I like it 2024-09-14 20:35:09 +02:00
Martin Larsson
50c97081ea remove project nvim 2024-09-14 20:34:43 +02:00
Martin Larsson
4d220ef603 Change bindings and add bindings for git hunk navigation. Also enable
gitsigns integration in lspsaga
2024-08-30 13:27:57 +02:00
72d6886df7 Merge branch 'main' of https://github.com/LarssonMartin1998/.dotfiles 2024-08-28 23:51:23 +02:00
e540508216 Add nvimdaprunner 2024-08-28 23:49:10 +02:00
Martin Larsson
f0dce86173 Make sure that custom pickers use the fuzzy sorters, this makes for a
noticable speed increase for large projects.
2024-08-28 23:16:37 +02:00
Martin Larsson
34585fee74 Revert to default dir for compile-commands-dir, more cross project
friendly to just create a symlink to the root instead as part of the gen
step.
2024-08-28 23:15:23 +02:00
Martin Larsson
bcf5f8a405 Change k to q for killing/closing/quitting in sway, neovim, and tmux.
Reason for this is because cmd+q on mac os. I want my setup to be
universal between mac and lin, or as close as it possibly can be.
2024-08-16 10:06:14 +02:00
Martin Larsson
72fbf61c84 Set vim.o.sessionoptions = "localoptions" 2024-08-16 10:06:14 +02:00
c8bce9a631 Make sure dap_repl is installed in treesitter 2024-08-15 21:25:33 +02:00
e54038aafd Remove neodev as I wasn't even using it, additionally, fix so that we
properly exit debug mode when manually stopping the debugger
2024-07-16 11:37:52 +02:00
12840af4c9 Add a debug mode which adds keymaps to step the debugger and removes
them when the debugger is stopped or finished.
2024-07-16 11:08:44 +02:00
8356ff0018 Fix ambiguous variable name in window_management.lua 2024-07-16 11:05:43 +02:00
284dca7daf Add x and o mode tables to the is_single_keymap_table function 2024-07-16 11:05:07 +02:00
cf1fa53b59 Refactor Leap and make sure we can leap in o-mode, which means we can
for instance delete using a leap motion. Very nice
2024-07-16 11:04:18 +02:00
cb806f7adc Feature: WindowManagement 1.0, enter resizing mode with ctrl+space,
resize windows using arrow keys, swap buffers using shift+ctrl and arrow keys. Next todo is to fix highlight feedback for the current selected window in resizing mode.
2024-07-15 18:06:19 +02:00
c472143d9f Upgrade leap, fix visuals since breaking change, some light optimization
and refactoring, add more labelmappings since were not using autojump,
and add remote action binding "gl"
2024-07-15 17:36:35 +02:00
47189b4b62 Delete flit, it only gets in the way when using leap. 2024-07-15 17:36:17 +02:00
42f4bcb5da Fix resizing mode in window management 2024-07-14 22:39:53 +02:00
2fcf44dc3e Fix treesitter initialization 2024-07-14 15:47:09 +02:00
456fc0da59 Optimize startup time and make some minor refactorings 2024-07-12 23:00:01 +02:00
f8faa2f5c1 Change the renderer for notify to compact. 2024-07-12 19:09:31 +02:00
f0502dc916 Re-enable noice and refactor and change some color options. I previously
disabled it because it wasn't playing nicely with Zellij, this is no
longer an issue when using Tmux.
2024-07-12 18:59:02 +02:00
0a53678bb9 Light refactoring, move as many config = func uses into opts as
possible.
2024-07-12 17:04:53 +02:00
657f9cb7e1 Remove obsidian plugin and instead add Neorg 2024-07-12 17:04:18 +02:00
80f1f521cc Remove lazygit and fugitive, add neogit 2024-07-12 10:30:33 +02:00
7a81af9ab4 Refactor init.lua and move the initialization of lazy plugins into the
lazy_init file
2024-07-12 10:28:22 +02:00
1d2e173db6 Refactor trouble, also disable all highlight changes in trouble for the
time being, it's simply not working very well.
2024-07-07 18:08:47 +02:00
26355c8a5c Small refactors to telescope, remove the seperate file for fzf and
integrate it all into the dependency list of telescope, and some minor
refactoring.
2024-07-07 18:03:19 +02:00
9c62cab5c8 Fix highlight and colors for Lspsaga to match edge tool. 2024-07-06 17:20:31 +02:00
606de3f7c6 Remove outdated comment in lualine 2024-07-06 17:13:12 +02:00
1de31f8603 Change highlight groups of Lazy to EdgeTool 2024-07-06 16:53:05 +02:00
578978b1b2 Fix so mason is using the edge tool highlights 2024-07-06 16:49:33 +02:00
e49fbf7eaf Fix lualine separator visualizers, additionally add a custom section for
resizing mode. Finally, add buffers section.
2024-07-06 15:39:21 +02:00
697d0acf15 Create simple window management in neovim, you can swap buffers in
windows, resize windows and enter a resizing mode. Also add some utility
functionality to support this and update the rest of the config to use
these new utility functions
2024-07-05 22:03:24 +02:00
653e57198a Add comment to explain trouble workaround 2024-07-05 16:51:13 +02:00
7316bef23d Add autosizing whenever we open/close an edge panel, meaning we always
keep the relative width/height of the main windows
2024-07-05 16:50:17 +02:00