diff options
| author | eric.marin <maarin.eric@gmail.com> | 2024-10-10 21:20:25 +0200 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2024-10-10 21:20:25 +0200 |
| commit | e499df7c3e102c207b96943306950983e09ee1fe (patch) | |
| tree | eddc9bb0d6bce7be3926aede6803dc975397efeb | |
| parent | 218815bae8ef1199004a3bc86608254849409401 (diff) | |
| download | dotfiles-e499df7c3e102c207b96943306950983e09ee1fe.tar.gz dotfiles-e499df7c3e102c207b96943306950983e09ee1fe.zip | |
nvim config changes
deleted nvim-notify
modified noice configuration
| -rw-r--r-- | ags/config.js | 15 | ||||
| -rw-r--r-- | ags/config.ts | 5 | ||||
| -rw-r--r-- | ags/tsconfig.json | 2 | ||||
| -rw-r--r-- | nvim/lazy-lock.json | 7 | ||||
| -rw-r--r-- | nvim/lua/plugins/noice.lua | 28 |
5 files changed, 37 insertions, 20 deletions
diff --git a/ags/config.js b/ags/config.js new file mode 100644 index 0000000..c31e44d --- /dev/null +++ b/ags/config.js @@ -0,0 +1,15 @@ +const { speaker } = await Service.import("audio") + +const child = Widget.Slider({ + value: speaker.bind("volume"), + onChange: ({ value }) => speaker.volume = value, +}) + +const Bar = () => Widget.Window({ + name: 'bar', + anchor: ['top', 'left', 'right'], + child: child, +}) + +App.config({ windows: [Bar()] }) + diff --git a/ags/config.ts b/ags/config.ts deleted file mode 100644 index e3b989c..0000000 --- a/ags/config.ts +++ /dev/null @@ -1,5 +0,0 @@ -App.config({ - windows: [ - - ] -}) diff --git a/ags/tsconfig.json b/ags/tsconfig.json index f03f2d1..6860767 100644 --- a/ags/tsconfig.json +++ b/ags/tsconfig.json @@ -15,4 +15,4 @@ ], "skipLibCheck": true } -}
\ No newline at end of file +} diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 93f66be..88b6a84 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -14,14 +14,13 @@ "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" }, "nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, - "nvim-lspconfig": { "branch": "master", "commit": "d3f169f436e1b44538bfe7e13b4721eec48dbc59" }, - "nvim-notify": { "branch": "master", "commit": "fbef5d32be8466dd76544a257d3f3dce20082a07" }, + "nvim-lspconfig": { "branch": "master", "commit": "ff69ecca55d83ffc70657f260a799f79a5637831" }, "nvim-parinfer": { "branch": "master", "commit": "5ca09287ab3f4144f78ff7977fabc27466f71044" }, - "nvim-treesitter": { "branch": "master", "commit": "9d2acd49976e2a9da72949008df03436f781fd23" }, + "nvim-treesitter": { "branch": "master", "commit": "9b1e607298dd5fc2ee6549488324cc92dafb99c0" }, "nvim-web-devicons": { "branch": "master", "commit": "56f17def81478e406e3a8ec4aa727558e79786f3" }, "oil.nvim": { "branch": "master", "commit": "ccab9d5e09e2d0042fbbe5b6bd05e82426247067" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, - "telescope.nvim": { "branch": "master", "commit": "dc6fc321a5ba076697cca89c9d7ea43153276d81" }, + "telescope.nvim": { "branch": "master", "commit": "df534c3042572fb958586facd02841e10186707c" }, "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" }, "toggleterm.nvim": { "branch": "main", "commit": "137d06fb103952a0fb567882bb8527e2f92d327d" }, "trouble.nvim": { "branch": "main", "commit": "254145ffd528b98eb20be894338e2d5c93fa02c2" }, diff --git a/nvim/lua/plugins/noice.lua b/nvim/lua/plugins/noice.lua index 575cfcf..7aa127c 100644 --- a/nvim/lua/plugins/noice.lua +++ b/nvim/lua/plugins/noice.lua @@ -1,7 +1,21 @@ local config = function() - require("notify").setup({ - render = "wrapped-compact", - max_width = 50 + 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 @@ -9,14 +23,8 @@ return { "folke/noice.nvim", lazy = true, event = "VeryLazy", - opts = { - -- add any options here - }, + config = config, dependencies = { "MunifTanjim/nui.nvim", - { - "rcarriga/nvim-notify", - config = config, - }, }, } |
