be02b5ead7
nvim: Switch to nvim-cmp
...
nvim-compe has been deprecated. While we tried to make it a few days
without any completion support, in javascript/typescript could not get
the default omnicompletion to work at all. It is possible that this
could be due to nvim-lsp-ts-utils/null-ls but who is gonna debug.
Also tried MUcomplete but it just would not work. There are open issues
on this. See https://github.com/neovim/neovim/issues/12390 and also
https://github.com/lifepillar/vim-mucomplete/issues/179 .
So here we are with nvim-cmp. Some observations in comparison to compe
before. Using buffer completion seems not possible as most of the times
LSP completion items then do not turn up. Do not know if this is server
specific but at least it is the case with Rust. compe seemed better
performance wise especially in tsserver and considering the buffer
problem mentioned above. Also, even with vsnip added as the completion
source can't seem to get any snippet specific completions working.
Could have ditched all completion support if I did not have to use
tsserver but need it for work currently. So we will stick to enabling
this and hopefully it improves in future.
Fuck nodejs, javascript and typescript.
For references see,
https://github.com/kristijanhusak/neovim-config
https://github.com/sQVe/dotfiles/tree/master/config/nvim
2021-09-27 16:29:18 +05:30
b95a14b8d1
nvim: lsp: Fix enabling of range format support again!
...
47b1578
did not actually fix it. We need to keep using 'gq' but actually
correctly specify whether we want normal or visual mode. Also disable
range formatting explicitly for tsserver.
2021-09-27 15:23:12 +05:30
d7fbe762c5
nvim: Update packer
2021-09-27 13:50:59 +05:30
c781b15582
nvim: Drop signify and switch to gitsigns
...
signify seems to be giving an error after somewhat long usage of
"E489: too many highlight and syntax groups".
2021-09-27 13:14:27 +05:30
91eecec611
nvim: keymappings: Drop the mapping for help
2021-09-27 13:14:27 +05:30
975e6a646e
nvim: plugins: Switch from vim-which-key to which-key
2021-09-27 13:14:20 +05:30
00670a867f
nvim: lsp: Enable rust-tools for inlay hints
2021-09-27 12:31:27 +05:30
0aa93c6e9b
nvim: init: Always enable the signcolumn
...
Have a fixed column for the diagnostics to appear in as this removes
the jitter when warnings/errors flow in.
Recommended here
https://sharksforarms.dev/posts/neovim-rust/
2021-09-26 12:06:16 +05:30
97db1c6c9d
nvim: keymappings: Enable unique and refactor/cleanup
...
Enable unique to detect and avoid conflicting key mappings.
2021-09-26 11:51:04 +05:30
6223b802ce
nvim: after/ftplugin/c: Fix conflicting mapping
...
,d cscope mapping conflicts with the LSP diagnostic mapping.
2021-09-26 11:51:04 +05:30
f7d12b27d3
nvim: lsp: Alignment cleanup
2021-09-26 11:50:36 +05:30
55356513a9
nvim: after/plugin/easyalign: Fix conflicting mapping
...
'ga' mapping conflicts with the LSP code action mapping.
2021-09-25 18:31:10 +05:30
47b157805d
nvim: lsp: Fix enabling of range format support
...
If range formatting is supported we should check that first to enable
it else since most LSP servers support formatting, without range
formatting check being first, it would never be enabled.
2021-09-25 18:21:51 +05:30
8801b26fa9
nvim: lsp: Add range formatting with motion
2021-09-25 15:26:52 +05:30
eebffce98e
nvim: lsp: Add back custom preview function
...
Follow up to 469e367
.
2021-09-25 15:26:52 +05:30
f01b1d6a52
nvim: lsp: Use Leader k mapping for LSP hover
...
While at it, align code to look nice.
2021-09-25 15:13:49 +05:30
616c4f003c
nvim: lsp: Increase value of debounce didChange notifications
2021-09-25 13:21:01 +05:30
469e36756b
nvim: lsp: Drop custom preview function
...
Those functions do not work anymore. May be we will add it later
via https://github.com/rmagatti/goto-preview .
2021-09-25 13:21:01 +05:30
cba3c92d06
fish: Add helpers for seeing & collecting perf data
2021-09-25 13:21:01 +05:30
9ab36d4b1b
nvim: lsp: Fix null-ls setup
2021-09-25 13:21:01 +05:30
350a6edd2c
nvim: fugitive/git: Add git helper to push upstream
...
Now that we set push.default to nothing in our git configuration, add
a git helper to figure out the upstream for the current branch and push
it.
2021-09-25 13:21:01 +05:30
2fb77b64bc
fish: Add a rust-gdb helper command
2021-09-25 13:21:01 +05:30
ccdb81f9b5
git: Set push.default
...
Do not push anything (error out) unless a refspec is given. We want
to avoid mistakes by always being explicit.
See https://git-scm.com/docs/git-config#Documentation/git-config.txt-pushdefault
2021-09-25 13:21:01 +05:30
643e1be349
nvim: keymappings: Add mappings to paste from + & * register
2021-09-22 17:52:15 +05:30
130bf3e04d
nvim: colors: yolokai: Update diagnostic highlight
2021-09-22 17:51:51 +05:30
71f5c334f1
nvim: plugins: Drop nvim-peekup
...
Does not work correctly and keeps pasting in the first window instead of
where the cursor is placed.
2021-09-21 11:02:25 +05:30
52ff789cf3
nvim: Switch to the maintained galaxyline fork
...
See
https://github.com/NTBBloodbath/galaxyline.nvim
https://www.reddit.com/r/neovim/comments/pq3zvq/galaxylinenvim_is_back/
2021-09-21 11:02:25 +05:30
b31aeaf597
nvim: Update packer
2021-09-21 11:02:25 +05:30
a7e7ac968f
fish: Add helpers for coredumpctl
2021-09-15 18:33:09 +05:30
e1cfc0408d
nvim: yolokai: Sync with nvim-highlite upstream
2021-09-13 18:00:40 +05:30
763f811931
nvim: after/plugin/haskell: Cleanup settings not required anymore
...
We dropped the Haskell syntax plugin for treesitter and also ghcid.
Remove settings which were for those plugins.
2021-09-11 11:57:10 +05:30
3edfac79b4
nvim: after/plugin/completion: Disable tags completion
...
We were using tags completion for C projects primarily but now that we
have enabled clangd LSP, disable tags based completion.
2021-09-10 14:06:59 +05:30
5b6685b165
nvim: lsp: Enable clangd for C and C++
2021-09-10 14:06:59 +05:30
ccb4b4343d
nvim: after/plugin: fugitive: Update key mappings
2021-09-10 13:41:24 +05:30
be257f67f0
nvim: Update packer
2021-09-06 14:51:16 +05:30
555026ef80
nvim: lsp: Sync nvim-lsp-ts-utils settings with upstream
2021-08-31 11:02:34 +05:30
44411a87e2
nvim: Update packer
2021-08-31 11:02:34 +05:30
f0f12d4294
fish: Add helpers for easing work with gdb
2021-08-13 18:35:03 +05:30
a657297158
kitty: Switch to arrow keys for scroll
...
Use arrow keys as HJKL is not usable like before with the switch to
Colemak.
2021-08-12 18:00:59 +05:30
9431ca8646
nvim: Update packer
2021-08-12 12:02:25 +05:30
20ba60e50a
fish: Add an alias for the icat kitten
2021-08-12 12:02:25 +05:30
6f13255bdd
fish: Add helper to generate dot graph
2021-08-12 12:02:25 +05:30
6af6dfa93a
fish: Add a helper to pipe command output to nvim
2021-08-06 14:04:45 +05:30
e92cc8a823
kitty: Add a mapping to move to previous and next window
2021-08-06 10:51:22 +05:30
97ce089ca0
sway: Drop use of HJKL
...
HJKL are not usable in the same way on Colemak, so drop those.
2021-08-06 10:51:22 +05:30
d43a3b16ba
sway: Add key mapping to move to previous & next workspace
2021-08-06 10:51:22 +05:30
88ed57fb8b
nvim: keymappings: Enable escape and arrow keys
...
Now that we use Planck EZ as our main keyboard with Colemak as the
layout, allow use of escape and arrow keys. HJKL are not usable the
same way as before.
2021-08-06 10:51:22 +05:30
fb1007b1b6
alacritty: Increase font size
2021-08-06 10:51:22 +05:30
8f5e45cb52
nvim: keymappings: Add mapping to copy to clipboard
2021-08-06 10:51:22 +05:30
a26efca087
starship: Remove deprecated property
2021-08-06 10:51:22 +05:30