Skip to content

Commit

Permalink
📝 Add last updated in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen-Hoang-Nam committed Dec 12, 2021
1 parent 6d57f9c commit a0fe035
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 58 deletions.
82 changes: 46 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Nvim-Dotfiles-Kitty

Neovim is great, but time-consuming to configure it works properly.
I deal with it from 2021, and still change it weekly to fit my job at cooperation.
I deal with it from 2021, and still change it weekly to fit my job at
cooperation.

This configuration works properly with
JavaScript, Python, Go, Rust, Lua, PHP and Java.

Up coming languages, Haskell, Zig, Solidity, Scala, Dart (Flutter)

![Main](https://raw.githubusercontent.com/Nguyen-Hoang-Nam/readme-image/main/nvim-dotfiles/main.png)
_Kitty with Fira, Cascadia, and Mini-File-Icons_

Expand Down Expand Up @@ -132,7 +135,7 @@ M = {
### Requirements

- Kitty
- Neovim 0.5
- Neovim 0.7 (Last updated Dec 12 2021)

### Fonts

Expand All @@ -154,38 +157,43 @@ cursor #6796E6

### Plugin list

Git clone below plugins in `~/.local/share/nvim/site/pack/*/start`.

| Plugin |
| ----------------------------------------------------------------------------------------------- |
| [auto-session](https://github.com/rmagatti/auto-session) |
| [cmp-nvim-lsp](https://github.com/hrsh7th/cmp-nvim-lsp) |
| [cmp-path](https://github.com/hrsh7th/cmp-path) |
| [cmp_luasnip](https://github.com/saadparwaiz1/cmp_luasnip) |
| [dashboard-nvim](https://github.com/glepnir/dashboard-nvim) |
| [friendly-snippets](https://github.com/rafamadriz/friendly-snippets) |
| [git-utils.nvim](https://github.com/Nguyen-Hoang-Nam/git-utils.nvim) |
| [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) |
| [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) |
| [lsp_signature.nvim](https://github.com/ray-x/lsp_signature.nvim) |
| [LuaSnip](https://github.com/L3MON4D3/LuaSnip) |
| [nvim-autopair](https://github.com/windwp/nvim-autopairs) |
| [nvim-bufferline.lua](https://github.com/akinsho/nvim-bufferline.lua) |
| [nvim-colorizer.lua](https://github.com/norcalli/nvim-colorizer.lua) |
| [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) |
| [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) |
| [nvim-mini-file-icons](https://github.com/Nguyen-Hoang-Nam/nvim-mini-file-icons) |
| [nvim-scrollview](https://github.com/dstein64/nvim-scrollview) |
| [nvim-toggleterm.lua](https://github.com/akinsho/nvim-toggleterm.lua) |
| [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua) |
| [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) |
| [nvim-ts-autotag](https://github.com/windwp/nvim-ts-autotag) |
| [nvim-ts-context-commentstring](https://github.com/JoosepAlviste/nvim-ts-context-commentstring) |
| [nvim-ts-rainbow](https://github.com/p00f/nvim-ts-rainbow) |
| [plenary.nvim](https://github.com/nvim-lua/plenary.nvim) |
| [telescope-fzf-native.nvim](https://github.com/nvim-telescope/telescope-fzf-native.nvim) |
| [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) |
| [yanil](https://github.com/Nguyen-Hoang-Nam/yanil/tree/customize-ui) |
If you plan to install plugins manually, you can clone below plugins and store
in `~/.local/share/nvim/site/pack/*/start/`.

| Plugin | Last updated |
| ----------------------------------------------------------------------------------------------- | ------------ |
| [auto-session](https://github.com/rmagatti/auto-session) | Dec 6 2021 |
| [cmp-nvim-lsp](https://github.com/hrsh7th/cmp-nvim-lsp) | Nov 10 2021 |
| [cmp-path](https://github.com/hrsh7th/cmp-path) | Dec 2 2021 |
| [cmp_luasnip](https://github.com/saadparwaiz1/cmp_luasnip) | Dec 4 2021 |
| [dashboard-nvim](https://github.com/glepnir/dashboard-nvim) | Apr 17 2021 |
| [friendly-snippets](https://github.com/rafamadriz/friendly-snippets) | Dec 7 2021 |
| [git-utils.nvim](https://github.com/Nguyen-Hoang-Nam/git-utils.nvim) | |
| [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) | Dec 10 2021 |
| [goto-preview](https://github.com/rmagatti/goto-preview) | Nov 29 2021 |
| [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) | Dec 1 2021 |
| [lsp_signature.nvim](https://github.com/ray-x/lsp_signature.nvim) | Dec 10 2021 |
| [LuaSnip](https://github.com/L3MON4D3/LuaSnip) | Dec 9 2021 |
| [nvim-autopair](https://github.com/windwp/nvim-autopairs) | Dec 11 2021 |
| [nvim-bufferline.lua](https://github.com/akinsho/nvim-bufferline.lua) | Nov 15 2021 |
| [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) | Dec 7 2021 |
| [nvim-colorizer.lua](https://github.com/norcalli/nvim-colorizer.lua) | Apr 20 2020 |
| [nvim-dap](https://github.com/mfussenegger/nvim-dap) | Dec 10 2021 |
| [nvim-dap-ui](https://github.com/rcarriga/nvim-dap-ui) | Dec 4 2021 |
| [nvim-jdtls](https://github.com/mfussenegger/nvim-jdtls) | Dec 11 2021 |
| [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) | Dec 10 2021 |
| [nvim-mini-file-icons](https://github.com/Nguyen-Hoang-Nam/nvim-mini-file-icons) | |
| [nvim-scrollview](https://github.com/dstein64/nvim-scrollview) | Dec 6 2021 |
| [nvim-toggleterm.lua](https://github.com/akinsho/nvim-toggleterm.lua) | Nov 24 2021 |
| [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) | Dec 6 2021 |
| [nvim-ts-autotag](https://github.com/windwp/nvim-ts-autotag) | Oct 9 2021 |
| [nvim-ts-context-commentstring](https://github.com/JoosepAlviste/nvim-ts-context-commentstring) | Nov 20 2021 |
| [nvim-ts-rainbow](https://github.com/p00f/nvim-ts-rainbow) | Nov 21 2021 |
| [plenary.nvim](https://github.com/nvim-lua/plenary.nvim) | Dec 7 2021 |
| [tabout.nvim](https://github.com/abecodes/tabout.nvim) | Aug 27 2021 |
| [telescope-fzf-native.nvim](https://github.com/nvim-telescope/telescope-fzf-native.nvim) | Nov 24 2021 |
| [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) | Dec 10 2021 |
| [yanil](https://github.com/Nguyen-Hoang-Nam/yanil/tree/customize-ui) | |

### Treesitter

Expand All @@ -207,9 +215,9 @@ Check [wiki](https://github.com/Nguyen-Hoang-Nam/nvim-dotfiles-kitty/wiki/Code-f
| <Leader>b | Toggle Explorer |
| <Leader>c | Range format |
| <Leader>d | Go to definition |
| <Leader>e | Search emojis |
| <Leader>e | Search gitmojis |
| <Leader>f | Show text search |
| <Leader>g | Search gitmojis |
| <Leader>g | Git hover |
| <Leader>h | Go to left window |
| <Leader>l | Go to right window |
| <leader>m | Format code |
Expand All @@ -219,6 +227,8 @@ Check [wiki](https://github.com/Nguyen-Hoang-Nam/nvim-dotfiles-kitty/wiki/Code-f
| <Leader>r | Rename variable |
| <Leader>s | Save file |
| <Leader>w | Delete current buffer |
| <Leader>x | Show list registers |
| <Leader>z | Preview definition |
| <Leader>/ | Toggle comment |
| <Leader>; | Jump to pairs (Bracket, Parentheses, Quote) |
| <M-t> | Toggle Terminal |
Expand Down
1 change: 1 addition & 0 deletions after/ftplugin/gitcommit.lua
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vim.opt_local.spell = true
vim.opt_local.colorcolumn = '72'
1 change: 1 addition & 0 deletions after/ftplugin/markdown.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
vim.opt_local.spell = true
vim.opt_local.colorcolumn = '80'

require('cmp').setup.buffer({
sources = {
Expand Down
2 changes: 1 addition & 1 deletion lua/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ highlight({
MatchParen = { guibg = base03 },
MoreMsg = { guifg = base0B },
NonText = { guifg = colors.comment },
-- Normal = { guifg = base05, guibg = colors.background },
Normal = { guibg = colors.background },
NormalFloat = { guifg = base05, guibg = colors.dark_background },
NormalNC = { guifg = base05, guibg = colors.background },
FloatBorder = { guifg = base05, guibg = base00 },
ColorColumn = { guibg = colors.cursorLine },

Pmenu = { guifg = base05, guibg = colors.dark_background },
PmenuSbar = { guifg = base05, guibg = colors.dark_background },
Expand Down
21 changes: 0 additions & 21 deletions lua/utils/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ local api = vim.api

local M = {}

-- Delete current buffer
-- Unlike bdelete, this command will jump to next buffer by id
function M.bufdelete()
if bo.modified then
cmd('write')
Expand Down Expand Up @@ -52,25 +50,6 @@ function M.file_extension(filename)
return t[#t]
end

-- function M.match_jump()
-- local current_node = require('nvim-treesitter.ts_utils').get_node_at_cursor()

-- if current_node:type() == 'string' then
-- local start_row, start_col, end_row, end_col = current_node:range()
-- local current_position = api.nvim_win_get_cursor(0)
-- local current_row = current_position[1]
-- local current_col = current_position[2]

-- if current_row == start_row + 1 and current_col == start_col then
-- api.nvim_win_set_cursor(0, { end_row + 1, end_col - 1 })
-- elseif current_row == end_row + 1 and current_col == end_col - 1 then
-- api.nvim_win_set_cursor(0, { start_row + 1, start_col })
-- end
-- else
-- require('nvim-treesitter.pairs').goto_partner()
-- end
-- end

function M.git_hover()
local blame = require('git_utils').blame(vim.fn.expand('%:p'), vim.api.nvim_win_get_cursor(0)[1])

Expand Down

0 comments on commit a0fe035

Please sign in to comment.