mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
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 VP9 hardware video decoding blocklisted
|
||||||
# TODO gpg switch to sk
|
# TODO gpg switch to sk
|
||||||
|
# TODO some font icons not showing
|
||||||
|
# TODO seogue ui
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
p = "cd ~/projects";
|
p = "cd ~/projects";
|
||||||
|
|
|
@ -59,7 +59,7 @@ return packer.startup(function(use)
|
||||||
-- Replace built-in LSP prompts and windows
|
-- Replace built-in LSP prompts and windows
|
||||||
use { "stevearc/dressing.nvim", config = conf_setup "dressing" }
|
use { "stevearc/dressing.nvim", config = conf_setup "dressing" }
|
||||||
-- Status updates for LSP progress in right bottom corner.
|
-- 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
|
-- Show latex math equations
|
||||||
use { "jbyuki/nabla.nvim", config = conf_fn "nabla" }
|
use { "jbyuki/nabla.nvim", config = conf_fn "nabla" }
|
||||||
-- Show colors
|
-- Show colors
|
||||||
|
@ -99,8 +99,8 @@ return packer.startup(function(use)
|
||||||
use "johmsalas/text-case.nvim"
|
use "johmsalas/text-case.nvim"
|
||||||
-- camelcase (and similar) word motions and textobjects
|
-- camelcase (and similar) word motions and textobjects
|
||||||
use { "chaoren/vim-wordmotion", config = conf_fn "wordmotion" }
|
use { "chaoren/vim-wordmotion", config = conf_fn "wordmotion" }
|
||||||
-- Codex completion
|
-- Respect editor-config files
|
||||||
use { "tom-doerr/vim_codex" }
|
use { "gpanders/editorconfig.nvim" }
|
||||||
|
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
-- Functionality
|
-- Functionality
|
||||||
|
@ -135,7 +135,7 @@ return packer.startup(function(use)
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- Snippet engine
|
-- Snippet engine
|
||||||
use { "L3MON4D3/LuaSnip" }
|
use { "L3MON4D3/LuaSnip", tag = "v1.*" }
|
||||||
-- Completion engine
|
-- Completion engine
|
||||||
use { "hrsh7th/nvim-cmp", config = conf_module "cmp", after = "LuaSnip" }
|
use { "hrsh7th/nvim-cmp", config = conf_module "cmp", after = "LuaSnip" }
|
||||||
-- Luasnip completion source
|
-- Luasnip completion source
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
vim.cmd [[let g:neo_tree_remove_legacy_commands = 1]]
|
vim.cmd [[let g:neo_tree_remove_legacy_commands = 1]]
|
||||||
local notify = function(message, level)
|
-- local notify = function(message, level)
|
||||||
vim.notify(message, level, { title = "NeoTree" })
|
-- vim.notify(message, level, { title = "NeoTree" })
|
||||||
end
|
-- end
|
||||||
|
|
||||||
require("neo-tree").setup {
|
require("neo-tree").setup {
|
||||||
sort_case_insensitive = true,
|
sort_case_insensitive = true,
|
||||||
|
@ -63,37 +63,39 @@ require("neo-tree").setup {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
group_empty_dirs = true,
|
group_empty_dirs = true,
|
||||||
follow_current_file = true,
|
follow_current_file = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
use_libuv_file_watcher = true,
|
use_libuv_file_watcher = true,
|
||||||
filtered_items = {
|
filtered_items = {
|
||||||
hide_dotfiles = false,
|
hide_dotfiles = false,
|
||||||
hide_by_name = { ".git" },
|
hide_by_name = { ".git" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
event_handlers = {
|
-- event_handlers = {
|
||||||
{
|
-- {
|
||||||
event = "file_added",
|
-- event = "file_added",
|
||||||
handler = function(arg)
|
-- handler = function(arg)
|
||||||
notify("Added: " .. arg, "info")
|
-- notify("Added: " .. arg, "info")
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
{
|
-- {
|
||||||
event = "file_deleted",
|
-- event = "file_deleted",
|
||||||
handler = function(arg)
|
-- handler = function(arg)
|
||||||
notify("Deleted: " .. arg, "info")
|
-- notify("Deleted: " .. arg, "info")
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
{
|
-- {
|
||||||
event = "file_renamed",
|
-- event = "file_renamed",
|
||||||
handler = function(args)
|
-- handler = function(args)
|
||||||
notify("Renamed: " .. args.source .. " -> " .. args.destination, "info")
|
-- notify("Renamed: " .. args.source .. " -> " .. args.destination, "info")
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
{
|
-- {
|
||||||
event = "file_moved",
|
-- event = "file_moved",
|
||||||
handler = function(args)
|
-- handler = function(args)
|
||||||
notify("Moved: " .. args.source .. " -> " .. args.destination, "info")
|
-- notify("Moved: " .. args.source .. " -> " .. args.destination, "info")
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue