mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 23:05:38 +00:00
add neovim as nix app
This commit is contained in:
parent
b258a40181
commit
54e89d3acd
20
README.md
20
README.md
@ -6,12 +6,24 @@ configuration may be difficult to translate to a non-Nix system.
|
||||
|
||||
However, some of the configurations are easier to lift directly:
|
||||
|
||||
- [Neovim](https://github.com/nmasur/dotfiles/tree/master/modules/neovim/lua)
|
||||
- [Neovim](https://github.com/nmasur/dotfiles/tree/master/modules/neovim/config)
|
||||
- [Fish functions](https://github.com/nmasur/dotfiles/tree/master/modules/shell/fish/functions)
|
||||
- [More fish aliases](https://github.com/nmasur/dotfiles/blob/master/modules/shell/fish/default.nix)
|
||||
- [Git aliases](https://github.com/nmasur/dotfiles/blob/master/modules/shell/git.nix)
|
||||
- [Hammerspoon](https://github.com/nmasur/dotfiles/tree/master/modules/darwin/hammerspoon)
|
||||
|
||||
Try out my Neovim config:
|
||||
|
||||
```bash
|
||||
nix run github:nmasur/dotfiles#neovim
|
||||
```
|
||||
|
||||
Or build it as a package:
|
||||
|
||||
```bash
|
||||
nix build github:nmasur/dotfiles#neovim
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Installation
|
||||
@ -87,12 +99,6 @@ openssl s_client -showcerts -verify 5 -connect cache.nixos.org:443 < /dev/null
|
||||
sudo nvim $NIX_SSL_CERT_FILE
|
||||
```
|
||||
|
||||
### Dealing with Neovim issues:
|
||||
|
||||
Update Neovim Packer plugins: `:PackerSync`
|
||||
|
||||
Update TreeSitter languages: `:TSUpdateSync`
|
||||
|
||||
---
|
||||
|
||||
# Flake Templates
|
||||
|
@ -20,4 +20,19 @@
|
||||
# Connect machine metrics to Netdata Cloud
|
||||
netdata = import ./netdata-cloud.nix { inherit pkgs; };
|
||||
|
||||
# Run neovim as an app
|
||||
neovim = {
|
||||
type = "app";
|
||||
program = "${
|
||||
(import ../modules/neovim/package {
|
||||
inherit pkgs;
|
||||
colors = import ../modules/colorscheme/gruvbox/neovim-gruvbox.nix {
|
||||
inherit pkgs;
|
||||
};
|
||||
})
|
||||
}/bin/nvim";
|
||||
};
|
||||
|
||||
nvim = neovim;
|
||||
|
||||
}
|
||||
|
@ -1,64 +0,0 @@
|
||||
# Neovim Plugins
|
||||
|
||||
## Must-haves
|
||||
|
||||
- neovim/nvim-lspconfig: enable LSP
|
||||
- hrsh7th/cmp-nvim-lsp: connect LSP to nvim-cmp
|
||||
- hrsh7th/cmp-buffer: completion from current buffer
|
||||
- nvim-lua/plenary.nvim: utility functions for other plugins
|
||||
- jose-elias-alvarez/null-ls.nvim: auto-trigger linting, formatting
|
||||
- tpope/vim-surround: surround shortcuts
|
||||
- tpope/vim-repeat: better repeat with .
|
||||
- numToStr/Comment.nvim: smart comment shortcut
|
||||
- lewis6991/impatient.nvim: faster start time
|
||||
- nvim-treesitter/nvim-treesitter: language parsers
|
||||
- nvim-telescope/telescope.nvim: fuzzy finder
|
||||
- nvim-telescope/telescope-project.nvim: jump projects
|
||||
- akinsho/toggleterm.nvim: embedded floating terminal
|
||||
- lewis6991/gitsigns.nvim: git in sidebar
|
||||
- hoob3rt/lualine.nvim: status bar
|
||||
- kyazdani42/nvim-web-devicons: icons in status bar
|
||||
- akinsho/bufferline.nvim: tab view for buffers
|
||||
- moll/vim-bbye: fixes for buffer closing
|
||||
- kyazdani42/nvim-tree.lua: better sidebar explorer
|
||||
|
||||
## Optional
|
||||
|
||||
- hrsh7th/cmp-path: completion of file path
|
||||
- hrsh7th/cmp-cmdline: completion of shell commands
|
||||
- hrsh7th/cmp-nvim-lua: completion of neovim commands
|
||||
- L3MON4D3/LuaSnip: snippet engine
|
||||
- saadparwaiz1/cmp_luasnip: completion of luasnip snippets
|
||||
- lukas-reineke/cmp-rg: completion of ripgrep search
|
||||
- rafamadriz/friendly-snippets: pre-generated snippets
|
||||
- folke/lsp-colors.nvim: LSP error highlights
|
||||
- tpope/vim-eunuch: file manipulation
|
||||
- tpope/vim-vinegar: better netrw file explorer
|
||||
- tpope/vim-fugitive: git commands
|
||||
- godlygeek/tabular: alignment commands
|
||||
- jakewvincent/mkdnflow.nvim: markdown notes
|
||||
- nvim-treesitter/nvim-treesitter-textobjects: syntax-aware textobjects
|
||||
- chr4/nginx.vim: nginx syntax
|
||||
- towolf/vim-helm: helm syntax
|
||||
- rodjek/vim-puppet: puppet syntax
|
||||
- nvim-telescope/telescope-fzy-native.nvim: faster sorting
|
||||
- jvgrootveld/telescope-zoxide: jump directories
|
||||
- nvim-telescope/telescope-file-browser.nvim: view files
|
||||
- ellisonleao/glow.nvim: view markdown with glow
|
||||
- norcalli/nvim-colorizer.lua: preview hex colors
|
||||
|
||||
# Other Tools
|
||||
|
||||
- git
|
||||
- stylua
|
||||
- black
|
||||
- flake8
|
||||
- fish_indent
|
||||
- nixfmt
|
||||
- rustfmt
|
||||
- shellcheck
|
||||
- shfmt
|
||||
- terraform
|
||||
- luacheck
|
||||
- markdownlint
|
||||
- pylint
|
Loading…
Reference in New Issue
Block a user