Commit Graph

52 Commits

Author SHA1 Message Date
Hoang Nguyen 2a2c753ffd
neovim: nvim-cmp: delete unused sources, add other 2021-10-23 21:30:14 +07:00
Hoang Nguyen 6b48ca7940
neovim: add venn.nvim, simplify bufferline 2021-10-22 23:39:43 +07:00
Hoang Nguyen 6df7ee09a5
Another commit for neovim
- highlights: delete unused ones, set some custom highlights for
  specified plugins. Also use orange for TSType (to distinguish with
  TSKeyword)
- plugins: remove coq_nvim
2021-10-21 20:52:06 +07:00
Hoang Nguyen 133dd68322
neovim: update multiple
- nvim-ts-rainbow: move config into 'nvim-treesitter.configs' block
- bufferline.nvim: update lsp diagnostic display, highlight
- gitsigns.nvim: add highlight for line blame info
- nvim-autopairs: update new config
- highlight: no more lazy loading (only 1-2ms faster, and caused some
  glitched highlights at startup due to treesitter group)
- chore: theme.util -> util
2021-10-20 15:05:04 +07:00
Hoang Nguyen b3d7a24c19
Another neovim + chore
neovim:
    - increase timoutlen, ttimeoutlen coz I'm slow
    - print -> vim.notify
chore: use ANSI escape code for 'bunny' script instead of tput (from
ncurses)
2021-10-19 21:04:59 +07:00
Hoang Nguyen ceb46755cd
neovim
- plugins: add dial.nvim, remove spellsitter.nvim
- null-ls.nvim: make a list of interesting linters/formatters
- chore: add luacheck
2021-10-19 03:03:00 +07:00
Hoang Nguyen 12b240dc21
neovim: lsp: clean up lsp install scripts 2021-10-18 21:25:08 +07:00
Hoang Nguyen 0f2574a887
neovim + system
neovim:
    - highlight:
        + adjust treesitter groups for nord (TSField as fg doesn't look
          good in yaml files). Also add highlight for TSNote, TSWarning,
          TSDanger (notes such as 'TODO', 'FIXME', ...)
        + rewrite the way theme is set (now 'g:colors_name' is used
          properly instead of a hacky variable 'g:global_theme'). Also
          make setting theme more modular
        + add 'highlight_languages' groups for other syntaxes (html,
          markdown) that are not covered with treesitter
    - mappings: properly move ':Telescope lsp_range_code_action' to
      visual block + avoid mappings for <C-x> and <C-a> (number
      decrement/increment)
    - null-ls.nvim: add basic config, load before nvim-lspconfig
    - plugins: add nvim-treesitter/playground
    - feline.nvim: lazy loaded on VimEnter
    - nvim-lightbulb: only refresh on CursorHold (previously stopped
      working after entering INSERT mode)
system:
    - tlp: update config for v1.4.0
setup: add ani-cli to scripts.sh
2021-10-18 00:53:25 +07:00
Hoang Nguyen c196180d0a
neovim: clean up
mappings: add doc for nvim-treesitter mappings
chore: unify the way mappings to a command is called
nvim-treesitter: load vim.opt for folding after setup()
nvim-lspconfig: emmet_ls is now officially supported upstream
2021-10-17 21:48:14 +07:00
Hoang Nguyen 61b5cb5b70
neovim: revamp
- packer: load vim-eft, nvim-spectre, nvim-dap, persistence.nvim on key
  press instead of on Vim event
- keybindings: redefine multiple, move keybindings for plugins loaded on
  key press to their configs
- plugins: add winshift.nvim, better-escape.nvim, window-picker.nvim,
  neogen, spellsitter.nvim, nvim-lightbulb, close-buffers.nvim
- init.lua: move autocmds back inside async loop (filetype events already
  got handled by filetype.nvim)
- zen-mode.nvim + twilight.nvim: move from 'tools' to 'editor' group
- lsp: change signs characters for unification
- dap: initial config, keybindings
- feline.nvim: reorder elements, add nvim-lightbulb signs
- chore: unify the way setup() is called, and format stuff
2021-10-17 21:48:14 +07:00
Hoang Nguyen a2a7caa279
neovim: bunch of changes again
- Fix commit 8a8e0db586 : vim.opt is a table, so it should have been
  vim.o -> vim.opt:get()
- Add filetype.nvim (improved startup time)
- Drop vimtex. Potentially will switch to tex.nvim
- Re-compile packer only inside '/modules' directory (less eager)
2021-10-17 21:48:14 +07:00
Hoang Nguyen 7991b12511
neovim: make completion menu more colorful
Also change Telescope match highlight to be the same as nvim-cmp
2021-10-17 21:48:14 +07:00
Hoang Nguyen 4508f2a819
neovim: replace nvim-lint + neoformat with null-ls.nvim
Also update config for jsonls and yamlls.
2021-10-17 21:48:14 +07:00
Hoang Nguyen 1f973f3850
neovim: add scripts to install lsp servers 2021-10-17 21:48:13 +07:00
Hoang Nguyen 493e7d6c1c
Update user agent for various config 2021-10-17 21:48:13 +07:00
Hoang Nguyen 9b81f9b07b
Some user configs
- neovim:
    + update lspkind icons for completion
    + start migrating config for nvim-tree.lua
    + update lsp config for sumneko_lua
- scripts:
    + add POSIX clients for PurritoBin (https://bsd.ac)
    + add script to upload to https://0x0.st
2021-10-17 21:48:13 +07:00
Hoang Nguyen ea74e9076e
neovim: disable rarely used wilder.nvim + conjure 2021-10-17 21:48:13 +07:00
Hoang Nguyen dfcfbd004a
neovim: configure packer.nvim + add iswap.nvim 2021-10-17 21:48:12 +07:00
Hoang Nguyen a8e3fb728b
neovim: add a snippet for using pandoc 2021-10-17 21:48:12 +07:00
Hoang Nguyen 6f78887641
neovim: changes a bunch
- undodir: move to stdpath('data') to be more inline with other
- add todo-comments.nvim
- whichkey: rebind for hop.nvim (avoid conflicting with vim-sandwich
  blockwise)
- mappings: clean up and rearrange
2021-10-17 21:48:12 +07:00
Hoang Nguyen 8c725aa77c
Lots of changes. See comment :)
- firefox: add script to automate updating user.js
- Anime4K: update version in install script to 4.0.1
- neovim:
    + remove nnn plugin (telescope's file browser has hidden files now)
    + telescope.nvim: update horizontal layout
    + nvim-cmp: update config for lsp, add more sources
    + indent-blankline: update config to use setup()
    + toggleterm, bufferline: repos moved
    + plugins: update multiple small configurations
2021-10-17 21:48:12 +07:00
Hoang Nguyen 0b6f538235
Bunch of changes
- emacs: enable parinfer
- neovim:
    + add config for sniprun
    + replace lsp-rooter.nvim with project.nvim
    + replace galaxyline.nvim with feline.nvim
    + update config for gitsigns.nvim, nvimtree and alpha-nvim
2021-10-17 21:48:12 +07:00
Hoang Nguyen fc2f231aaf
neovim: load persistence.nvim in BufEnter
This way it will still work in a readonly buffer (eg. alpha)
2021-10-17 21:48:12 +07:00
Hoang Nguyen b9d674767b
neovim: replace dashboard-nvim with alpha-nvim + persistence.nvim 2021-10-17 21:48:12 +07:00
Hoang Nguyen e9cdccb8a8
Another bunch of changes
emacs: update init.el following upstream
neovim: add conjure, update packer call for nvim-cmp
2021-10-17 21:48:12 +07:00
Hoang Nguyen 2a62792e2b
Bunch of changes
neovim: add more plugins
nushell, xonsh: update startup hook for starship
2021-10-17 21:48:11 +07:00
Hoang Nguyen fa5374bafe
neovim: reconfigure nvim-cmp mappings + vim.cmd -> vim.api.nvim_command
Also delete `news` script
2021-10-17 21:48:11 +07:00
Hoang Nguyen b45c8f2541
neovim: add editorconfig.vim and spectre.nvim 2021-10-17 21:48:11 +07:00
Hoang Nguyen 58598d112d
neovim: add asynctasks.vim 2021-10-17 21:48:11 +07:00
Hoang Nguyen af695b83db
neovim: add undotree and vim-eft
Also fix some cursor highlight groups
2021-10-17 21:48:11 +07:00
Hoang Nguyen ac6be59e68
neovim: configure lsp_signature.nvim 2021-10-17 21:48:11 +07:00
Hoang Nguyen 78b6d2bf54
neovim: add nvim-lint, nvim-dap-ui, vimtex 2021-10-17 21:48:10 +07:00
Hoang Nguyen 3cefe864f4
neovim: big refractor
- nvim-compe -> nvim-cmp
- combine multple modules config into category files
- add some more plugins
2021-10-17 21:48:10 +07:00
Hoang Nguyen 418f3b462b
neovim: lspsaga highlight groups 2021-10-17 21:48:10 +07:00
Hoang Nguyen 7deb0d68f1
neovim: add more plugins 2021-10-17 21:48:10 +07:00
Hoang Nguyen 5ecf79b424
neovim: remove deprecated config 2021-10-17 21:48:05 +07:00
Hoang Nguyen b0d2122117
neovim: fix typo 2021-10-17 21:48:05 +07:00
Hoang Nguyen 7a4a5bdeb1
neovim: add translate-shell + orgmode 2021-10-17 21:48:05 +07:00
Hoang Nguyen 2501edc0ea
neovim: add zem-mode + symbol-outline 2021-10-17 21:48:04 +07:00
Hoang Nguyen be9665b0e6
neovim: add hop.nvim 2021-10-17 21:48:04 +07:00
Hoang Nguyen 84c528ddb1
neovim: add trouble.nvim
Also update treesitter highlight groups to be aligned with original
nord.vim
2021-10-17 21:48:04 +07:00
Hoang Nguyen ec3540565a
neovim: add lspkind and nnn.vim 2021-10-17 21:48:04 +07:00
Hoang Nguyen a0ca5c25b6
neovim: add Neogit config 2021-10-17 21:48:04 +07:00
Hoang Nguyen 5ab3184378
neovim: add lspconfig, move compe config 2021-10-17 21:48:03 +07:00
Hoang Nguyen bc7bdb2bdc
neovim: almost done 2021-10-17 21:48:03 +07:00
Hoang Nguyen d1be74ee0b
neovim: lazy-load some plugins
Also rebind mappings for GitSigns
2021-10-17 21:48:03 +07:00
Hoang Nguyen 52b9be4bee
neovim: add indent-blankline, use which-key for mappings
Also add more nord highlight groups
2021-10-17 21:48:03 +07:00
Hoang Nguyen e03162b21a
neovim: add more config 2021-10-17 21:48:03 +07:00
Hoang Nguyen 0098bc351f
neovim: gitsigns, basic mappings and nord colors
Also update nushell startup hook
2021-10-17 21:48:02 +07:00
Hoang Nguyen c447ef8282
neovim: add bufferline and nvim-tree plugins 2021-10-17 21:48:02 +07:00