Skip to content

Commit 82bcac3

Browse files
Found out what was causing the spinner and fkin nuked it. Changed lsp docs to <C-d> to stop it from messing with my vim motions beween windows
1 parent bcc3d0c commit 82bcac3

File tree

6 files changed

+86
-31
lines changed

6 files changed

+86
-31
lines changed

init.lua

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,6 @@ require('lazy').setup({
4747
-- Automatically install LSPs to stdpath for neovim
4848
'williamboman/mason.nvim',
4949
'williamboman/mason-lspconfig.nvim',
50-
51-
-- Useful status updates for LSP
52-
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
53-
{
54-
'j-hui/fidget.nvim',
55-
opts = {},
56-
},
57-
5850
-- Additional lua configuration, makes nvim stuff amazing!
5951
'folke/neodev.nvim',
6052
},
@@ -201,6 +193,7 @@ require('lazy').setup({
201193
branch = '0.1.x',
202194
dependencies = {
203195
'nvim-lua/plenary.nvim',
196+
'nvim-telescope/telescope-ui-select.nvim',
204197
-- Fuzzy Finder Algorithm which requires local dependencies to be built.
205198
-- Only load if `make` is available. Make sure you have the system
206199
-- requirements installed.
@@ -327,10 +320,32 @@ require('telescope').setup {
327320
},
328321
},
329322
},
323+
extensions = {
324+
["ui-select"] = {
325+
require("telescope.themes").get_dropdown {
326+
-- even more opts
327+
}
328+
329+
-- pseudo code / specification for writing custom displays, like the one
330+
-- for "codeactions"
331+
-- specific_opts = {
332+
-- [kind] = {
333+
-- make_indexed = function(items) -> indexed_items, width,
334+
-- make_displayer = function(widths) -> displayer
335+
-- make_display = function(displayer) -> function(e)
336+
-- make_ordinal = function(e) -> string
337+
-- },
338+
-- -- for example to disable the custom builtin "codeactions" display
339+
-- do the following
340+
-- codeactions = false,
341+
-- }
342+
}
343+
}
330344
}
331345

332346
-- Enable telescope fzf native, if installed
333347
pcall(require('telescope').load_extension, 'fzf')
348+
pcall(require('telescope').load_extension, 'ui-select')
334349

335350
-- Telescope live_grep in git root
336351
-- Function to find the git root directory based on the current buffer's path
@@ -504,7 +519,7 @@ local on_attach = function(_, bufnr)
504519

505520
-- See `:help K` for why this keymap
506521
nmap('K', vim.lsp.buf.hover, 'Hover Documentation')
507-
nmap('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
522+
nmap('<C-d>', vim.lsp.buf.signature_help, 'Signature Documentation')
508523

509524
-- Lesser used LSP functionality
510525
nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')

lazy-lock.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
3-
"LuaSnip": { "branch": "master", "commit": "82108e7e31cc6fc223cc5df5cae6d89f70bb199f" },
3+
"LuaSnip": { "branch": "master", "commit": "2dbef19461198630b3d7c39f414d09fb07d1fdd2" },
44
"beacon.nvim": { "branch": "master", "commit": "a786c9a89b2c739c69f9500a2f70f2586c06ec27" },
55
"bufferline.nvim": { "branch": "main", "commit": "6c456b888823d9e4832aa91c482bccd19445c009" },
66
"catppuccin": { "branch": "main", "commit": "5e36ca599f4aa41bdd87fbf2c5aae4397ac55074" },
@@ -9,37 +9,38 @@
99
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
1010
"copilot-cmp": { "branch": "master", "commit": "72fbaa03695779f8349be3ac54fa8bd77eed3ee3" },
1111
"copilot.lua": { "branch": "master", "commit": "b03617a6dc4bc88b65ab5deac1631da9a9c2dcaf" },
12-
"fidget.nvim": { "branch": "main", "commit": "3a93300c076109d86c7ce35ec67a8034ae6ba9db" },
1312
"friendly-snippets": { "branch": "main", "commit": "69a2c1675b66e002799f5eef803b87a12f593049" },
1413
"gitsigns.nvim": { "branch": "main", "commit": "4aaacbf5e5e2218fd05eb75703fe9e0f85335803" },
1514
"glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
15+
"inc-rename.nvim": { "branch": "main", "commit": "6f9b5f9cb237e12935144cdc535322b8c93c1b25" },
1616
"indent-blankline.nvim": { "branch": "master", "commit": "12e92044d313c54c438bd786d11684c88f6f78cd" },
1717
"lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" },
1818
"lualine.nvim": { "branch": "master", "commit": "566b7036f717f3d676362742630518a47f132fff" },
1919
"mason-lspconfig.nvim": { "branch": "main", "commit": "3ba1b92b771f33256b4969d696b82c8ae7075364" },
2020
"mason-nvim-dap.nvim": { "branch": "main", "commit": "3614a39aae98ccd34124b072939d6283853b3dd2" },
2121
"mason.nvim": { "branch": "main", "commit": "e110bc3be1a7309617cecd77bfe4bf86ba1b8134" },
22-
"neodev.nvim": { "branch": "main", "commit": "8947132fb831f166179af81fca2cb073503250ae" },
22+
"neodev.nvim": { "branch": "main", "commit": "482abc6688a028ce183719b0350d0235ae2c2e83" },
2323
"neogen": { "branch": "main", "commit": "70127baaff25611deaf1a29d801fc054ad9d2dc1" },
2424
"noice.nvim": { "branch": "main", "commit": "92433164e2f7118d4122c7674c3834d9511722ba" },
2525
"nui.nvim": { "branch": "main", "commit": "35da9ca1de0fc4dda96c2e214d93d363c145f418" },
2626
"nvim-cmp": { "branch": "main", "commit": "538e37ba87284942c1d76ed38dd497e54e65b891" },
2727
"nvim-dap": { "branch": "master", "commit": "9adbfdca13afbe646d09a8d7a86d5d031fb9c5a5" },
2828
"nvim-dap-go": { "branch": "main", "commit": "a5cc8dcad43f0732585d4793deb02a25c4afb766" },
29-
"nvim-dap-ui": { "branch": "master", "commit": "7e5e16427aaf814dc2d58e1b219def9ef2fa2435" },
29+
"nvim-dap-ui": { "branch": "master", "commit": "a6beb3a855b42faa1d0fee1081602257719c2c5e" },
3030
"nvim-lspconfig": { "branch": "master", "commit": "7eed8b2150192e5ad05e1886fdf133493ddf2928" },
31-
"nvim-notify": { "branch": "master", "commit": "1576123bff3bed67bc673a3076e591abfe5d8ca9" },
31+
"nvim-notify": { "branch": "master", "commit": "80b67b265530632505193553d05127ae7fe09ddd" },
3232
"nvim-tree.lua": { "branch": "master", "commit": "f1b3e6a7eb92da492bd693257367d9256839ed3d" },
33-
"nvim-treesitter": { "branch": "master", "commit": "fcf843bf14adaeee53aad1b28fabba1d3b62fc8d" },
33+
"nvim-treesitter": { "branch": "master", "commit": "5037721ec5870990db16dcbf06513a78a6a81641" },
3434
"nvim-treesitter-textobjects": { "branch": "master", "commit": "19a91a38b02c1c28c14e0ba468d20ae1423c39b2" },
3535
"nvim-web-devicons": { "branch": "master", "commit": "140edfcf25093e8b321d13e154cbce89ee868ca0" },
36-
"obsidian.nvim": { "branch": "main", "commit": "bc2561cd4d8049a5c91415f15bfb5c3e68b79c48" },
36+
"obsidian.nvim": { "branch": "main", "commit": "a9ae6b20560d716a5f9b89252e4ea29c8e64617a" },
3737
"plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" },
3838
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" },
39+
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
3940
"telescope.nvim": { "branch": "0.1.x", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" },
4041
"todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" },
4142
"tree-sitter-hyprlang": { "branch": "master", "commit": "42aa7274b5f093cec92b7a5bab629ba26b4be439" },
42-
"vim-fugitive": { "branch": "master", "commit": "59659093581aad2afacedc81f009ed6a4bfad275" },
43+
"vim-fugitive": { "branch": "master", "commit": "ec8f7eed103c6d5b75eac69196bb87db0825629a" },
4344
"vim-rhubarb": { "branch": "master", "commit": "ee69335de176d9325267b0fd2597a22901d927b1" },
4445
"vim-sleuth": { "branch": "master", "commit": "1cc4557420f215d02c4d2645a748a816c220e99b" },
4546
"vim-startify": { "branch": "master", "commit": "4e089dffdad46f3f5593f34362d530e8fe823dcf" },

lua/custom/plugins/fidget.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
return {
2+
"j-hui/fidget.nvim",
3+
lazy = true,
4+
opts = {
5+
-- options
6+
},
7+
}

lua/custom/plugins/noice.lua

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,36 @@
22
return {
33
"folke/noice.nvim",
44
event = "VeryLazy",
5-
opts = {
6-
-- add any options here
7-
},
85
dependencies = {
96
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
107
"MunifTanjim/nui.nvim",
118
-- OPTIONAL:
129
-- `nvim-notify` is only needed, if you want to use the notification view.
1310
-- If not available, we use `mini` as the fallback
1411
"rcarriga/nvim-notify",
15-
}
12+
"smjonas/inc-rename.nvim",
13+
},
14+
config = function()
15+
require("noice").setup({
16+
lsp = {
17+
progress = {
18+
enabled = false,
19+
},
20+
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
21+
override = {
22+
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
23+
["vim.lsp.util.stylize_markdown"] = true,
24+
["cmp.entry.get_documentation"] = true,
25+
},
26+
},
27+
-- you can enable a preset for easier configuration
28+
presets = {
29+
-- bottom_search = true, -- use a classic bottom cmdline for search
30+
-- command_palette = true, -- position the cmdline and popupmenu together
31+
long_message_to_split = true, -- long messages will be sent to a split
32+
inc_rename = true, -- enables an input dialog for inc-rename.nvim
33+
lsp_doc_border = true, -- add a border to hover docs and signature help
34+
},
35+
})
36+
end
1637
}

lua/custom/plugins/notify.lua

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
return {
2-
3-
"rcarriga/nvim-notify",
4-
config = function()
5-
require("notify").setup({
6-
background_colour = "#000000",
7-
render = "compact",
8-
})
9-
end
2+
{
3+
"rcarriga/nvim-notify",
4+
config = function()
5+
require("notify").setup({
6+
background_colour = "#000000",
7+
--[[ render = "compact", ]]
8+
})
9+
end
10+
},
11+
-- {
12+
-- "mrded/nvim-lsp-notify",
13+
-- dependencies = { "rcarriga/nvim-notify" },
14+
-- config = function()
15+
-- require('lsp-notify').setup({
16+
-- notify = require('notify'),
17+
-- })
18+
-- end
19+
--
20+
-- }-
1021
}

lua/custom/plugins/plugins.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
return {
66
require('custom.plugins.obsidian'),
77
require('custom.plugins.notify'),
8-
require('custom.plugins.file_tree'),
9-
require('custom.plugins.noice'),
108
require('custom.plugins.start_screen'),
9+
require('custom.plugins.noice'), -- causing fidget to still exist
10+
require('custom.plugins.file_tree'),
1111
require('custom.plugins.tab_line'),
1212
{ "ellisonleao/glow.nvim", config = true, cmd = "Glow" },
1313
{

0 commit comments

Comments
 (0)