Giter VIP home page Giter VIP logo

cosmic-ui's Introduction

๐Ÿ’ซ CosmicNvim

Neovim Minimum Version GitHub last commit Discord Website

CosmicNvim is a lightweight and opinionated Neovim config for web development, specifically designed to provide a ๐Ÿ’ซ COSMIC programming experience!

Screen Shot 2021-12-19 at 1 25 24 PM

๐Ÿš€ Stellar Features

Native LSP

Full featured native LSP functionality!

  • ๐Ÿ“˜ Go-to definition
  • ๐Ÿ” Find references/type def/declaration
  • ๐Ÿ’ก Code actions
  • ๐Ÿšจ Statusline diagnostics
  • ๐Ÿ”ง Formatting/linting thanks to null-ls

Additional features

While CosmicNvim is geared specifically toward TypeScript/JavaScript development, it should be able to provide a great experience with any LSP supported language.

๐Ÿ›  Installation

Quick guide

Prerequisites

Install

  # move to config dir
  cd ~/.config
  # back up current config
  cp -r nvim nvim.backup
  # clone repository
  git clone [email protected]:CosmicNvim/CosmicNvim.git nvim
  # open nvim and install plugins
  nvim

By default, this will assume the Cosmic git directory is placed at vim.fn.stdpath('config'), i.e. ~/.config/nvim. If you are symlinking your pulled repo to ~/.config/nvim, you must define the shell environment variable COSMICNVIM_INSTALL_DIR that points to your installation.

Additional CosmicNvim installation details.

Additional LSP server installation details.

CosmicNvim uninstallation details.

๐ŸŽจ Theming

New documentation coming soon!

โš™๏ธ Configuration

General Info

Cosmic configurations

Add additional vim options

โœจ Cosmic Commands

Update CosmicNvim

Updates CosmicNvim to the latest version

:CosmicUpdate

๐Ÿ—บ Default Mappings

File navigation

File explorer

Terminal

LSP

Other

๐Ÿ“ท Screenshots

See more

cosmic-ui's People

Contributors

jeff-dh avatar jzone1366 avatar mattleong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

doodleesc

cosmic-ui's Issues

Renaming identifiers with 23 (or more) characters

I just wanted to rename a function with a name of the length of 23 characters and when calling cosmic-ui.rename() a -- seemingly -- empty textbox popup.

It turned out that the textbox actually was not empty but was "scrolled" and the whole identifier was "scrolled out of" the textbox. Hitting the left arrow key once fixed it, buuuuuuut.... this is at least confusing.

Same for identifiers longer than 23 characters, when renaming a 25 character identifier 2 characters -- seemingly -- show up in the textbox.

In both cases would I would expect the textbox to be completely filled and only truncated on the left side.

Missing Dependency - Getting an error at try to rename with cosmic-ui

At call:

require('cosmic-ui').rename()

In my attach function, with code like this:

function bufmap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end

bufmap('n', 'gn', '<cmd>lua require("cosmic-ui").rename()<cr>', { noremap = true, silent = true })

It shows an error at call it function in my file:

Error at executing vim.schedule lua callback: vim.lua:435: Chunk is not an array with one or two strings

Investigating, the file and the line is:

-- ~/.local/share/nvim/site/pack/packer/start/cosmic-ui/lua/cosmic-ui/rename/handler.lua:30
vim.notify(msg, vim.log.levels.INFO, { title = ('Rename: %s -> %s'):format(currName, new_word) })

I don't know what I am doing wrong

NOTE: Sorry for my english

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.