Added AutoSession and noice, big changes
This commit is contained in:
18
lua/plugins/autosession.lua
Normal file
18
lua/plugins/autosession.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
"rmagatti/auto-session",
|
||||
lazy = false,
|
||||
|
||||
---enables autocomplete for opts
|
||||
---@module "auto-session"
|
||||
---@type AutoSession.Config
|
||||
opts = {
|
||||
suppressed_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
|
||||
-- log_level = 'debug',
|
||||
},
|
||||
|
||||
config = function()
|
||||
require('auto-session').setup({})
|
||||
|
||||
vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
|
||||
end
|
||||
}
|
||||
39
lua/plugins/noice.lua
Normal file
39
lua/plugins/noice.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
return
|
||||
-- lazy.nvim
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- add any options here
|
||||
},
|
||||
dependencies = {
|
||||
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- OPTIONAL:
|
||||
-- `nvim-notify` is only needed, if you want to use the notification view.
|
||||
-- If not available, we use `mini` as the fallback
|
||||
"rcarriga/nvim-notify",
|
||||
},
|
||||
config = function()
|
||||
require("noice").setup({
|
||||
lsp = {
|
||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||
override = {
|
||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||||
["vim.lsp.util.stylize_markdown"] = true,
|
||||
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
|
||||
},
|
||||
},
|
||||
-- you can enable a preset for easier configuration
|
||||
presets = {
|
||||
bottom_search = true, -- use a classic bottom cmdline for search
|
||||
command_palette = true, -- position the cmdline and popupmenu together
|
||||
long_message_to_split = true, -- long messages will be sent to a split
|
||||
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
||||
lsp_doc_border = false, -- add a border to hover docs and signature help
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ return {
|
||||
build = ':TSUpdate',
|
||||
config = function()
|
||||
require'nvim-treesitter'.setup {
|
||||
ensure_installed = {"help", "vim", "c", "lua", "vimdoc", "python", "json", "rust"},
|
||||
ensure_installed = {"regex", "bash", "help", "vim", "c", "lua", "vimdoc", "python", "json", "rust"},
|
||||
|
||||
auto_install = true,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user