stuff
This commit is contained in:
@@ -11,7 +11,6 @@ function init_lazy_nvim()
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup(PLUGINS, opts)
|
||||
end
|
||||
|
||||
@@ -65,7 +64,7 @@ function define_keymaps()
|
||||
vim.keymap.set("n", "<space>F", builtin.find_files, {})
|
||||
vim.keymap.set("n", "<space>g", builtin.live_grep, {})
|
||||
vim.keymap.set("n", "<space>b", builtin.buffers, {})
|
||||
vim.keymap.set("n", "<space>r", builtin.lsp_references, {})
|
||||
vim.keymap.set("n", "<space>u", builtin.lsp_references, {})
|
||||
end
|
||||
|
||||
function setup_plugins()
|
||||
@@ -157,11 +156,33 @@ function setup_plugins()
|
||||
},
|
||||
})
|
||||
|
||||
require("telescope").setup({
|
||||
local telescope = require("telescope")
|
||||
telescope.setup({
|
||||
defaults = {
|
||||
file_ignore_patterns = { "node_modules" },
|
||||
},
|
||||
|
||||
extensions = {
|
||||
["ui-select"] = {
|
||||
require("telescope.themes").get_dropdown({}),
|
||||
|
||||
-- pseudo code / specification for writing custom displays, like the one
|
||||
-- for "codeactions"
|
||||
-- specific_opts = {
|
||||
-- [kind] = {
|
||||
-- make_indexed = function(items) -> indexed_items, width,
|
||||
-- make_displayer = function(widths) -> displayer
|
||||
-- make_display = function(displayer) -> function(e)
|
||||
-- make_ordinal = function(e) -> string
|
||||
-- },
|
||||
-- -- for example to disable the custom builtin "codeactions" display
|
||||
-- do the following
|
||||
-- codeactions = false,
|
||||
-- }
|
||||
},
|
||||
},
|
||||
})
|
||||
telescope.load_extension("ui-select")
|
||||
|
||||
require("nvim-web-devicons").setup()
|
||||
|
||||
@@ -197,6 +218,10 @@ function setup_plugins()
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
clangd = {
|
||||
cmd = { "clangd", "--background-index", "--clang-tidy" },
|
||||
},
|
||||
}
|
||||
|
||||
require("mason").setup()
|
||||
@@ -503,6 +528,7 @@ PLUGINS = {
|
||||
tag = "0.1.6",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
},
|
||||
{ "nvim-telescope/telescope-ui-select.nvim" },
|
||||
{
|
||||
{
|
||||
"kdheepak/lazygit.nvim",
|
||||
|
Reference in New Issue
Block a user