Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CosmicNvim/cosmic-ui
Cosmic-UI is a simple wrapper around specific vim functionality. Built in order to provide a quick and easy way to create a Cosmic UI experience with Neovim!
https://github.com/CosmicNvim/cosmic-ui
cosmic ide lua neovim neovim-configuration neovim-dotfiles neovim-lua neovim-lua-plugin neovim-plugin neovim-ui ui vim vim-plugin
Last synced: 3 months ago
JSON representation
Cosmic-UI is a simple wrapper around specific vim functionality. Built in order to provide a quick and easy way to create a Cosmic UI experience with Neovim!
- Host: GitHub
- URL: https://github.com/CosmicNvim/cosmic-ui
- Owner: CosmicNvim
- License: gpl-3.0
- Created: 2021-12-04T05:43:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T19:52:48.000Z (about 2 years ago)
- Last Synced: 2024-07-31T20:50:51.192Z (6 months ago)
- Topics: cosmic, ide, lua, neovim, neovim-configuration, neovim-dotfiles, neovim-lua, neovim-lua-plugin, neovim-plugin, neovim-ui, ui, vim, vim-plugin
- Language: Lua
- Homepage:
- Size: 56.6 KB
- Stars: 162
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-neovim - CosmicNvim/cosmic-ui - Cosmic-UI is a simple wrapper around specific Vim functionality. Built in order to provide a quick and easy way to create a Cosmic UI experience with Neovim! (Utility / Cursorline)
README
💫 Cosmic-UI
## 🚀 Stellar Features
_Warning: Under heavy development_
Cosmic-UI is a simple wrapper around specific vim functionality. Built in order to provide a quick and easy way to create a Cosmic UI experience with Neovim!
- Rename floating popup & file change notification
- Code Actions## 📷 Screenshots
### Code Actions
### Rename Floating Popup
## 🛠 Installation
```lua
use({
'CosmicNvim/cosmic-ui',
requires = { 'MunifTanjim/nui.nvim', 'nvim-lua/plenary.nvim' },
config = function()
require('cosmic-ui').setup()
end,
})
```## ⚙️ Configuration
You may override any of the settings below by passing a config object to `.setup`
```lua
{
-- default border to use
-- 'single', 'double', 'rounded', 'solid', 'shadow'
border_style = 'single',-- rename popup settings
rename = {
border = {
highlight = 'FloatBorder',
style = 'single',
title = ' Rename ',
title_align = 'left',
title_hl = 'FloatBorder',
},
prompt = '> ',
prompt_hl = 'Comment',
},code_actions = {
min_width = nil,
border = {
bottom_hl = 'FloatBorder',
highlight = 'FloatBorder',
style = 'single',
title = 'Code Actions',
title_align = 'center',
title_hl = 'FloatBorder',
},
}
}
```## ✨ Usage
#### Rename
```lua
function map(mode, lhs, rhs, opts)
local options = { noremap = true, silent = true }
if opts then
options = vim.tbl_extend('force', options, opts)
end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
endmap('n', 'gn', 'lua require("cosmic-ui").rename()')
```#### Code Actions
```lua
map('n', 'ga', 'lua require("cosmic-ui").code_actions()')
map('v', 'ga', 'lua require("cosmic-ui").range_code_actions()')
```_More coming soon..._