Commit graph

111 commits

Author SHA1 Message Date
Martin Larsson
dfbb5c8834 oil.nvim now uses filewatch to update buffer content from fs changes,
additionally, now also save the prev directory state so it persists when
oil is closed and reopened
2024-11-03 02:14:14 +01:00
Martin Larsson
8263b02c70 Add silent option to a lot of keymaps to hide command display. 2024-10-30 17:47:29 +01:00
Martin Larsson
23ed2e9964 Light refactoring to mason/lsp setup, also add support to zig, ocaml,
and go.
2024-10-30 17:46:54 +01:00
Martin Larsson
ee7ce096c8 Update rusteaceanvim to major version 5 2024-10-30 17:46:28 +01:00
Martin Larsson
9b9424ac05 Change keybindings for copilot to better match cmd workflow (completion
on tab and acceping auto complete on right arrow)
2024-10-30 17:45:36 +01:00
Martin Larsson
7c54faf521 Fix incorrect binding for jumping between diagnostics in Lspsaga 2024-10-30 17:02:38 +01:00
Martin Larsson
6c605b47c2 Add tiny inline diagnostics and fix $TERM in tmux and alacritty to
alacritty instead of xterm-256color
2024-10-24 19:09:31 +02:00
Martin Larsson
8744c577ae Fix so clang receives the congifured parameters correctly. 2024-10-24 19:07:12 +02:00
Martin Larsson
c8566d89f0 Add tiny-inline-diagnostics plugin 2024-10-20 03:41:38 +02:00
Martin Larsson
beddd50e98 Remove deprecated config key hererrocks in lazy_init.lua and inrease
timeout to 300sec since toml++ and sol2 takes minutes to compile.
2024-10-20 03:41:03 +02:00
Martin Larsson
1e18e2d419 Change to blink over cmp, improve mason so that we don't need configs
for each language server. We only override the set keys in the custom
    lsp config if it exists, otherwise we rely on the default one from
    lspconfig.
2024-10-20 03:40:10 +02:00
Martin Larsson
21e6ce3181 auto-show-console - false was used as a workaround for an error which
was thrown in some large repos where the git command took a long time to
run. This has been fixed by the author of the plugin so I no longer need
it.
2024-10-09 15:37:44 +02:00
Martin Larsson
006ac8ce9c Use main branch of dap profiles and remove dev stuff 2024-10-09 00:42:54 +02:00
Martin Larsson
39d74b5d84 Add muttrc as parser to treesitter 2024-10-08 01:22:14 +02:00
Martin Larsson
f909d576fd Add modules to Neorg: defaults, dirman, concealer 2024-10-08 01:21:56 +02:00
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