diff --git a/roles/ncdu/tasks/main.yml b/roles/ncdu/tasks/main.yml new file mode 100644 index 00000000..45778ae9 --- /dev/null +++ b/roles/ncdu/tasks/main.yml @@ -0,0 +1,4 @@ +--- +- name: Run Ubuntu Tasks + ansible.builtin.import_tasks: ubuntu.yml + when: ansible_os_family == 'Debian' diff --git a/roles/ncdu/tasks/ubuntu.yml b/roles/ncdu/tasks/ubuntu.yml new file mode 100644 index 00000000..a4983ac3 --- /dev/null +++ b/roles/ncdu/tasks/ubuntu.yml @@ -0,0 +1,6 @@ +--- +- name: "NCDU | Installing ncdu" + ansible.builtin.apt: + name: ncdu + state: latest + become: true diff --git a/roles/neovim/files/init.lua b/roles/neovim/files/init.lua index cb3627fc..0dd53fee 100644 --- a/roles/neovim/files/init.lua +++ b/roles/neovim/files/init.lua @@ -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 = { diff --git a/roles/neovim/files/lua/plugins/filetype.lua b/roles/neovim/files/lua/plugins/filetype.lua index f34ff94c..4d68d45a 100644 --- a/roles/neovim/files/lua/plugins/filetype.lua +++ b/roles/neovim/files/lua/plugins/filetype.lua @@ -9,6 +9,8 @@ return { tfstate_backup = "json", tfplan = "json", sh = "sh", + html = "html", + bashrc = "sh", }, }, }, diff --git a/roles/neovim/files/lua/plugins/neo-tree.lua b/roles/neovim/files/lua/plugins/neo-tree.lua index 246de7d7..b2b7f978 100644 --- a/roles/neovim/files/lua/plugins/neo-tree.lua +++ b/roles/neovim/files/lua/plugins/neo-tree.lua @@ -49,13 +49,14 @@ return { }, }, window = { - position = "float", + position = "left", width = 35, mappings = { [""] = { "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 = { diff --git a/roles/neovim/files/lua/plugins/noice.lua b/roles/neovim/files/lua/plugins/noice.lua new file mode 100644 index 00000000..9b896022 --- /dev/null +++ b/roles/neovim/files/lua/plugins/noice.lua @@ -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 + }, + } +} diff --git a/roles/neovim/files/lua/plugins/notify.lua b/roles/neovim/files/lua/plugins/notify.lua index 71759e01..1ed00f25 100644 --- a/roles/neovim/files/lua/plugins/notify.lua +++ b/roles/neovim/files/lua/plugins/notify.lua @@ -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 } diff --git a/roles/neovim/files/lua/plugins/nvim-surround.lua b/roles/neovim/files/lua/plugins/nvim-surround.lua new file mode 100644 index 00000000..3df14c84 --- /dev/null +++ b/roles/neovim/files/lua/plugins/nvim-surround.lua @@ -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 +} diff --git a/roles/neovim/files/lua/plugins/treesitter.lua b/roles/neovim/files/lua/plugins/treesitter.lua index d6ba5e01..21c0f116 100644 --- a/roles/neovim/files/lua/plugins/treesitter.lua +++ b/roles/neovim/files/lua/plugins/treesitter.lua @@ -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 }