Catppuccino.nvim
lightline.vim
Our great sponsors
Catppuccino.nvim | lightline.vim | |
---|---|---|
15 | 24 | |
230 | 6,644 | |
- | - | |
9.4 | 4.6 | |
over 2 years ago | about 2 months ago | |
Lua | Vim Script | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Catppuccino.nvim
-
lua error when installing `telescope-fzf-native`
-- Add numbers to rows vim.wo.number = true vim.wo.colorcolumn = '120' -- Set indentation of files local indent = 2 vim.bo.expandtab = true vim.bo.shiftwidth = indent vim.bo.smartindent = true vim.bo.tabstop = indent vim.bo.autoindent = true vim.o.smarttab = true vim.bo.softtabstop = indent -- Enable the mouse vim.o.mouse = 'a' -- Set nocompatible mode for more powerful commands vim.o.compatible = false -- Set some search options vim.o.showmatch = true vim.o.ignorecase = true vim.o.hlsearch = true vim.o.incsearch = true -- Set options for color scheme vim.o.termguicolors = true --- Key Mappings --- vim.api.nvim_set_keymap('i', 'jj', '', {noremap = true}) vim.api.nvim_set_keymap('n', 'JJJJ', '', {noremap = true}) vim.api.nvim_set_keymap('n', ':', ';', {noremap = true}) vim.api.nvim_set_keymap('n', ';', ':', {noremap = true}) --- Plugins --- -- Start plugin section. Use this section in order to install new plugins to -- neovim. -- In order to install a new plugin, you need to put in this section the -- repository where it can be found, and then refresh the plugin list by -- installing them with the command: -- :PlugInstall -- Auto install vim-plug that's the plugin manager local vimplugrepository = '' local installpath = vim.fn.stdpath('config')..'/autoload' local vimpluginstallpath = installpath..'/plug.vim' local vimplugrepository = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' if vim.fn.empty(vim.fn.glob(vimpluginstallpath)) > 0 then vim.api.nvim_command('!curl -flo '..vimpluginstallpath..' --create-dirs '..vimplugrepository) vim.cmd 'autocmd VimEnter = PlugInstall' end local Plug = vim.fn['plug#'] -- Put plugins in this section. Define a Plug with the reposiutory of the -- plugin that you want vim.call('plug#begin', installpath) -- Nice theme Plug 'https://github.com/Pocco81/Catppuccino.nvim' -- Nvim-Tree for file browsing Plug 'nvim-tree/nvim-web-devicons' Plug 'nvim-tree/nvim-tree.lua' -- Installing mason with its dependencies Plug 'neovim/nvim-lspconfig' Plug 'williamboman/mason-lspconfig.nvim' Plug 'mfussenegger/nvim-dap' Plug 'mfussenegger/nvim-lint' Plug 'mhartington/formatter.nvim' Plug 'williamboman/mason.nvim' -- Telescope for find files and in files Plug 'nvim-lua/plenary.nvim' Plug 'BurntSushi/ripgrep' -- Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' } Plug 'nvim-treesitter/nvim-treesitter' Plug 'nvim-telescope/telescope.nvim' -- Status line Plug 'nvim-lualine/lualine.nvim' -- Tabs Plug 'romgrk/barbar.nvim' vim.call('plug#end') --- Plugins configuration --- -- Color scheme vim.cmd[[colorscheme catppuccin]] -- nvim-tree require('nvim-tree').setup ({ sort_by = 'case_sensitive', view = { adaptive_size = true, mappings = { list = { { key = 'u', action = 'dir_up' }, }, }, }, renderer = { group_empty = true, }, filters = { dotfiles = true, }, }) vim.api.nvim_set_keymap('n', '', ':NvimTreeToggle', { noremap = true, silent = true }) -- Mason require('mason').setup() require('mason-lspconfig').setup() require'lspconfig'.clangd.setup{} require'lspconfig'.luau_lsp.setup{} -- Telescope local builtin_telescope = require('telescope.builtin') vim.keymap.set('n', 'ff', builtin_telescope.find_files, {}) vim.keymap.set('n', 'fg', builtin_telescope.live_grep, {}) vim.keymap.set('n', 'fb', builtin_telescope.buffers, {}) vim.keymap.set('n', 'fh', builtin_telescope.help_tags, {}) require('telescope').setup {} -- require('telescope').load_extension('fzf') -- Lua line require('lualine').setup { options = { theme = 'ayu_mirage' } } -- Bars require('bufferline').setup() local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } -- Move to previous/next map('n', '', 'BufferPrevious', opts) map('n', '', 'BufferNext', opts) -- Re-order to previous/next map('n', '', 'BufferMovePrevious', opts) map('n', '>', 'BufferMoveNext', opts) -- Goto buffer in position... map('n', '', 'BufferGoto 1', opts) map('n', '', 'BufferGoto 2', opts) map('n', '', 'BufferGoto 3', opts) map('n', '', 'BufferGoto 4', opts) map('n', '', 'BufferGoto 5', opts) map('n', '', 'BufferGoto 6', opts) map('n', '', 'BufferGoto 7', opts) map('n', '', 'BufferGoto 8', opts) map('n', '', 'BufferGoto 9', opts) map('n', '', 'BufferLast', opts) -- Pin/unpin buffer map('n', '', 'BufferPin', opts) -- Close buffer map('n', '', 'BufferClose', opts) -- Wipeout buffer -- :BufferWipeout -- Close commands -- :BufferCloseAllButCurrent -- :BufferCloseAllButPinned -- :BufferCloseAllButCurrentOrPinned -- :BufferCloseBuffersLeft -- :BufferCloseBuffersRight -- Magic buffer-picking mode map('n', '', 'BufferPick', opts) -- Sort automatically by... map('n', 'bb', 'BufferOrderByBufferNumber', opts) map('n', 'bd', 'BufferOrderByDirectory', opts) map('n', 'bl', 'BufferOrderByLanguage', opts) map('n', 'bw', 'BufferOrderByWindowNumber', opts)
-
lsp-error with clangd when opening a cpp file in Ubuntu
-- Neovim configuration by Daniele Lupo (Jepessen) --- Require --- local utils = require('utils') --- Options --- -- Add number to rows utils.opt('o', 'number', true) -- Set indentation of files local indent = 2 utils.opt('b', 'expandtab', true) utils.opt('b', 'shiftwidth', indent) utils.opt('b', 'smartindent', true) utils.opt('b', 'tabstop', indent) utils.opt('b', 'autoindent', true) utils.opt('o', 'smarttab', true) utils.opt('b', 'softtabstop', indent) -- Enable the mouse utils.opt('o', 'mouse', 'a') -- Set nocompatible mode for more powerful commands utils.opt('o', 'compatible', false) -- Set some search options utils.opt('o', 'showmatch', true) utils.opt('o', 'ignorecase', true) utils.opt('o', 'hlsearch', true) utils.opt('o', 'incsearch', true) -- Set options for color scheme utils.opt('o', 'termguicolors', true) --- Keymappings --- -- Remap jj to escape in insert mode utils.map('i', 'jj', '') utils.map('n', 'JJJJ', '') -- Swap ; and : utils.map('n', ':', ';') utils.map('n', ';', ':') -- Start plugin section. Use this section in order to install new plugins to -- neovim. -- -- In order to install a new plugin, you need to put in this section the -- repository where it can be found, and then refresh the plugin list by -- installing them with the command: -- -- :PlugInstall -- Auto install vim-plug that's a plugin manager local vimplugrepository = '' local installpath = vim.fn.stdpath('config')..'/autoload' local vimpluginstallpath = installpath..'/plug.vim' local vimplugrepository = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' if vim.fn.empty(vim.fn.glob(vimpluginstallpath)) > 0 then vim.api.nvim_command('!curl -flo '..vimpluginstallpath..' --create-dirs '..vimplugrepository) vim.cmd 'autocmd VimEnter * PlugInstall' end local Plug = vim.fn['plug#'] -- Put plugins in this section. Define a Plug with the repository of the plugin that you want vim.call('plug#begin', installpath) -- Vim airline. This plugin creates a nice status bar with more features than -- standard one. Plug 'https://github.com/vim-airline/vim-airline' -- NerdTree is a plugin for showing a tree folder structure of the filesystem. Plug 'https://github.com/preservim/nerdtree' -- Vim color schemes Plug 'https://github.com/rafi/awesome-vim-colorschemes' -- Developer icons Plug 'https://github.com/ryanoasis/vim-devicons' -- Surrounding with parenthesis and xml tags with cs command and more Plug 'https://github.com/tpope/vim-surround' -- Show trailing whitespaces and use the command :StripWhitespace for removing -- them Plug 'https://github.com/ntpeters/vim-better-whitespace.git' -- Install the LSP server for configuring it with clangd for code completition -- in C++ Plug 'https://github.com/neovim/nvim-lspconfig' -- An interesting theme Plug 'https://github.com/Pocco81/Catppuccino.nvim' vim.call('plug#end') --- PLUGINS CONFIGURATION --- -- Nerdtree -- Configure keys so with ctrlf go to the tree, with ctrl+n open the tree, and -- ctrl+t toggle the tree utils.map('n', '', ':NERDTreeFocus') utils.map('n', '', ':NERDTree') utils.map('n', '', ':NERDTreeToggle') --- LSP CONFIG --- -- Main configuration local lspremapopts = { noremap = true, silent = true } vim.keymap.set('n', 'e', vim.diagnostic.open_float, lspremapopts) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, lspremapopts) vim.keymap.set('n', ']d', vim.diagnostic.goto_next, lspremapopts) vim.keymap.set('n', 'q', vim.diagnostic.setloclist, lspremapopts) -- Use an on_attach function to only map the following keys -- after the language server attaches to the current buffer local on_attach = function(client, bufnr) -- Enable completition triggered by vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') -- Mappings -- See ':help vim.lsp.* local bufopts = { noremap = true, silent = true, bufnr = bufnr } vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, bufopts) vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts) vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts) vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, bufopts) vim.keymap.set('n', '', vim.lsp.buf.signature_help, bufopts) vim.keymap.set('n', 'wa', vim.lsp.buf.add_workspace_folder, bufopts) vim.keymap.set('n', 'wr', vim.lsp.buf.remove_workspace_folder, bufopts) vim.keymap.set('n', 'wl', function () print(vim.inspect(vim.lsp.buf.list_workspace_folders())) end, bufopts) vim.keymap.set('n', 'D', vim.lsp.buf.type_definition, bufopts) vim.keymap.set('n', 'rn', vim.lsp.buf.rename, bufopts) vim.keymap.set('n', 'ca', vim.lsp.buf.code_action, bufopts) vim.keymap.set('n', 'gr', vim.lsp.buf.references.bufopts) vim.keymap.set('n', 'f', vim.lsp.buf.formatting, bufopts) end -- Now the servers must be defined and set. In order to load them it's -- convenient to define them in an array and use a loop. local servers = { 'pyright', 'clangd' } for _, lsp in pairs(servers) do require('lspconfig')[lsp].setup { on_attach = on_attach, flags = { debounce_text_changes = 150 } } end --- COLOR SCHEME --- vim.cmd[[colorscheme catppuccin]]
-
CosmicNvim - New Themes!
Hi everyone! Iām happy to announce that CosmicNvim now includes first-class support for 4 additional themes on top of the default for a total of 5 themes to choose from! The current selection: - [Catppuccino](https://github.com/Pocco81/Catppuccino.nvim) - [Gruvbox](https://github.com/ellisonleao/gruvbox.nvim) - [Rose-pine](https://github.com/rose-pine/neovim) - [Nord](https://github.com/shaunsingh/nord.nvim) - [Tokyonight](https://github.com/folke/tokyonight.nvim) Repo: https://github.com/mattleong/CosmicNvim (āļøās are very appreciated!) Iāve previously said that I wouldnāt implement first class theme support for CosmicNvim outside of the default themeā¦ Well, I guess I changed my mind. š For one, itās probably been the most requested feature. For another, I want to be able to swap and play around with themes easily as well. My initial reason for _not_ wanting to include additional theme support was because I was worried about what sort of complexity it would bring. Turns out itās not so bad and doesnāt overly bloat the codebase. If you have any suggestions for themes youād like to see implemented, please feel free to drop them in the open [issue](https://github.com/mattleong/CosmicNvim/issues/25)!
The current selection: - Catppuccino - Gruvbox - Rose-pine - Nord - Tokyonight
-
Any color sheme with working colorized undercurls ?
https://github.com/Pocco81/Catppuccino.nvim has support for colorized undercurls, but havenāt tried it yet, so I can say if it works or not
-
What's your neovim colorscheme?
same, but are you using the old colorschemes or the remastered theme? In case you are interested, here you can see what led to the creation of the remastered theme.
-
[Plugin] ftFT.nvim: A pure Lua plugin that gives highlights to f{char} command
Nice one! Btw would it be possible for you to allow custom hi groups? I personally would use this to create an integration for my colorscheme.
-
Is is possible to create a simple vim theme like this without a ton of work and inefficient code? Maybe with Tree-sitter?
Not sure if it helps but I have my own colorscheme named Catppuccino (side note: colors will be refactored soon). It has a bunch of integrations and basically everything you'd expect from a full featured theme.
-
Complete colourschemes for treesitter?
I'd recommend you Catppuccino.nvim
-
[OC] Finally ported Catppuccino themes to Tmux!
They were ported from Catppuccino.nvim, a colorscheme for NeoVim: https://github.com/Pocco81/Catppuccino.nvim
lightline.vim
-
Nordic Desktop
vim-plug, nord-vim, lightline
-
How to implement mode_map into lightline-plug?
I'm trying to add the mode_map after 'let g:lightline =' as seen in github: https://github.com/itchyny/lightline.vim
- Base16 theme for shell, (n)vim, tmux, fzf
- [Help] Visable startup delay (~0.36s) because of `vim-airline`
-
Vem-Tabline not showing file icons in tabs
I am not able to get vem-tabline to show the file icons in the tabs(there are only tab numbers that are displayed), with nvim, and neovide. I have installed vim-devicons, and the icons do show up in my statusline, for which I am using lightline. I have also installed a Nerd Font, so I don't know where I am going wrong. Could someone help me with this?
-
mistfly-statusline, the plugin previously named moonfly-statusline, now with adaptive colorscheme support
I already use a statusline plugin such or lightline or Lualine, should I change? Answer: no
-
Vim: A Beginner's Guide From A Beginner
lightline.vim - a light and configurable statusline/tabline plugin for Vim
-
Why do I need to hit <Escape> twice to leave insert mode?
syntax on " Enable syntax highlighting set mouse=a " Enable mouse usage (all modes) set number " Enable numbering rows set nofoldenable " Disable folding colorscheme lego call plug#begin('~/.config/nvim/plugins/') Plug 'https://github.com/itchyny/lightline.vim' call plug#end()
-
How to Configure Vim as Your Main Python IDE
the cool yellow line in the bottom of my Vim at the screenshot above is called statusbar. there are some plugins that you can use to make your statusbar looks better. for example, vim airline and vim lightline. I myself use vim airline for my statusbar. to install this plugin, you can use some plugin-manager that you prefer, like vundle or vim-plug. but, if you use Vim 8, you can use vim native package manager. to install vim airline using vim native package manager, do this step :
-
Is there a way to highlight insert mode?
I can think of a few ways: 1. :h showmode will show --INSERT-- at the bottom when in insert mode. I'm sure you already have this on, but just to be sure. 1. Lightline can be helpful. The default colour scheme makes the entire line blue. 1. My personal favorite is setting :h guicursor. Insert mode cursor is thin, while normal mode cursor is block. Unfortunately, I use neovim so its default and you have to figure out the code portion yourself. 1. Maybe use autocmd (:h InsertEnter, :h InsertLeave) and write enough vimscript until it works. Suggestions include disabling line numbers in insert mode, change entire background colour, you're limited only by the power of vimscript (or Lua for those nvim doods).
What are some alternatives?
tokyonight.nvim - š A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins. Includes additional themes for Kitty, Alacritty, iTerm and Fish.
vim-airline - lean & mean status/tabline for vim that's light as air
barbar.nvim - The neovim tabline plugin.
neovim - Vim-fork focused on extensibility and usability
vim-sneak - The missing motion for Vim :athletic_shoe:
vim-enfocado - How themes should be.
nvim-tree.lua - A file explorer tree for neovim written in lua
tree-sitter - An incremental parsing system for programming tools
vim-gitgutter - A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks.
zen-mode.nvim - š§ Distraction-free coding for Neovim
lualine.nvim - A blazing fast and easy to configure Neovim statusline written in Lua