Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neovim/add noice #86

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions roles/ncdu/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- name: Run Ubuntu Tasks
ansible.builtin.import_tasks: ubuntu.yml
when: ansible_os_family == 'Debian'
6 changes: 6 additions & 0 deletions roles/ncdu/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: "NCDU | Installing ncdu"
ansible.builtin.apt:
name: ncdu
state: latest
become: true
4 changes: 2 additions & 2 deletions roles/neovim/files/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ require('lazy').setup('plugins', {
},
checker = {
enabled = true,
notify = false,
notify = true,
},
change_detection = {
enabled = true,
notify = false,
notify = true,
},
performance = {
rtp = {
Expand Down
2 changes: 2 additions & 0 deletions roles/neovim/files/lua/plugins/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ return {
tfstate_backup = "json",
tfplan = "json",
sh = "sh",
html = "html",
bashrc = "sh",
},
},
},
Expand Down
5 changes: 3 additions & 2 deletions roles/neovim/files/lua/plugins/neo-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ return {
},
},
window = {
position = "float",
position = "left",
width = 35,
mappings = {
["<Backspace>"] = {
"close_node",
nowait = true, -- disable `nowait` if you have existing combos starting with this char that you want to use
}
},
["P"] = { "toggle_preview", config = { use_float = false, use_image_nvim = true } }
}
},
filesystem = {
Expand Down
36 changes: 36 additions & 0 deletions roles/neovim/files/lua/plugins/noice.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
return {
"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 = {
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,
},
},
messages = {
enabled = false
},
-- 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 = true, -- add a border to hover docs and signature help
},
}
}
18 changes: 9 additions & 9 deletions roles/neovim/files/lua/plugins/notify.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
return {
"rcarriga/nvim-notify", -- pretty notifications
config = function()
require("notify").setup {
stages = 'fade_in_slide_out',
background_colour = 'FloatShadow',
timeout = 2000,
}
vim.notify = require("notify")
end
-- "rcarriga/nvim-notify", -- pretty notifications
-- config = function()
-- require("notify").setup {
-- stages = 'fade_in_slide_out',
-- background_colour = 'FloatShadow',
-- timeout = 2000,
-- }
-- vim.notify = require("notify")
-- end
}
10 changes: 10 additions & 0 deletions roles/neovim/files/lua/plugins/nvim-surround.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
return {
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end
}
32 changes: 16 additions & 16 deletions roles/neovim/files/lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
require 'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all"
ensure_installed = "all",
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = true,
-- Automatically install missing parsers when entering buffer
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
auto_install = true,
highlight = {
-- `false` will disable the whole extension
enable = true,
additional_vim_regex_highlighting = false,
},
}
end
-- config = function()
-- require 'nvim-treesitter.configs'.setup {
-- -- A list of parser names, or "all"
-- ensure_installed = "all",
-- -- Install parsers synchronously (only applied to `ensure_installed`)
-- sync_install = true,
-- -- Automatically install missing parsers when entering buffer
-- -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
-- auto_install = true,
-- highlight = {
-- -- `false` will disable the whole extension
-- enable = true,
-- additional_vim_regex_highlighting = false,
-- },
-- }
-- end
}