forked from mirrors_public/oddlama_nix-config
feat(nvim): adapt config due to plugin updates
This commit is contained in:
parent
32ca87e3a6
commit
d4fb1e4d4e
3 changed files with 38 additions and 34 deletions
|
@ -17,6 +17,8 @@
|
|||
|
||||
# TODO VP9 hardware video decoding blocklisted
|
||||
# TODO gpg switch to sk
|
||||
# TODO some font icons not showing
|
||||
# TODO seogue ui
|
||||
|
||||
shellAliases = {
|
||||
p = "cd ~/projects";
|
||||
|
|
|
@ -59,7 +59,7 @@ return packer.startup(function(use)
|
|||
-- Replace built-in LSP prompts and windows
|
||||
use { "stevearc/dressing.nvim", config = conf_setup "dressing" }
|
||||
-- Status updates for LSP progress in right bottom corner.
|
||||
use { "j-hui/fidget.nvim", after = "nvim-lspconfig", config = conf_setup "fidget" }
|
||||
use { "j-hui/fidget.nvim", after = "nvim-lspconfig", config = conf_setup "fidget", tag = "legacy" }
|
||||
-- Show latex math equations
|
||||
use { "jbyuki/nabla.nvim", config = conf_fn "nabla" }
|
||||
-- Show colors
|
||||
|
@ -99,8 +99,8 @@ return packer.startup(function(use)
|
|||
use "johmsalas/text-case.nvim"
|
||||
-- camelcase (and similar) word motions and textobjects
|
||||
use { "chaoren/vim-wordmotion", config = conf_fn "wordmotion" }
|
||||
-- Codex completion
|
||||
use { "tom-doerr/vim_codex" }
|
||||
-- Respect editor-config files
|
||||
use { "gpanders/editorconfig.nvim" }
|
||||
|
||||
----------------------------------------------------------------------------------------------------
|
||||
-- Functionality
|
||||
|
@ -135,7 +135,7 @@ return packer.startup(function(use)
|
|||
----------------------------------------------------------------------------------------------------
|
||||
|
||||
-- Snippet engine
|
||||
use { "L3MON4D3/LuaSnip" }
|
||||
use { "L3MON4D3/LuaSnip", tag = "v1.*" }
|
||||
-- Completion engine
|
||||
use { "hrsh7th/nvim-cmp", config = conf_module "cmp", after = "LuaSnip" }
|
||||
-- Luasnip completion source
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
vim.cmd [[let g:neo_tree_remove_legacy_commands = 1]]
|
||||
local notify = function(message, level)
|
||||
vim.notify(message, level, { title = "NeoTree" })
|
||||
end
|
||||
-- local notify = function(message, level)
|
||||
-- vim.notify(message, level, { title = "NeoTree" })
|
||||
-- end
|
||||
|
||||
require("neo-tree").setup {
|
||||
sort_case_insensitive = true,
|
||||
|
@ -63,37 +63,39 @@ require("neo-tree").setup {
|
|||
},
|
||||
},
|
||||
group_empty_dirs = true,
|
||||
follow_current_file = true,
|
||||
follow_current_file = {
|
||||
enabled = true,
|
||||
},
|
||||
use_libuv_file_watcher = true,
|
||||
filtered_items = {
|
||||
hide_dotfiles = false,
|
||||
hide_by_name = { ".git" },
|
||||
},
|
||||
},
|
||||
event_handlers = {
|
||||
{
|
||||
event = "file_added",
|
||||
handler = function(arg)
|
||||
notify("Added: " .. arg, "info")
|
||||
end,
|
||||
},
|
||||
{
|
||||
event = "file_deleted",
|
||||
handler = function(arg)
|
||||
notify("Deleted: " .. arg, "info")
|
||||
end,
|
||||
},
|
||||
{
|
||||
event = "file_renamed",
|
||||
handler = function(args)
|
||||
notify("Renamed: " .. args.source .. " -> " .. args.destination, "info")
|
||||
end,
|
||||
},
|
||||
{
|
||||
event = "file_moved",
|
||||
handler = function(args)
|
||||
notify("Moved: " .. args.source .. " -> " .. args.destination, "info")
|
||||
end,
|
||||
},
|
||||
},
|
||||
-- event_handlers = {
|
||||
-- {
|
||||
-- event = "file_added",
|
||||
-- handler = function(arg)
|
||||
-- notify("Added: " .. arg, "info")
|
||||
-- end,
|
||||
-- },
|
||||
-- {
|
||||
-- event = "file_deleted",
|
||||
-- handler = function(arg)
|
||||
-- notify("Deleted: " .. arg, "info")
|
||||
-- end,
|
||||
-- },
|
||||
-- {
|
||||
-- event = "file_renamed",
|
||||
-- handler = function(args)
|
||||
-- notify("Renamed: " .. args.source .. " -> " .. args.destination, "info")
|
||||
-- end,
|
||||
-- },
|
||||
-- {
|
||||
-- event = "file_moved",
|
||||
-- handler = function(args)
|
||||
-- notify("Moved: " .. args.source .. " -> " .. args.destination, "info")
|
||||
-- end,
|
||||
-- },
|
||||
-- },
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue