Skip to content

Commit

Permalink
chore: readme update (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
senelway authored Jul 30, 2023
1 parent 5a54014 commit c4048ea
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 2,454 deletions.
1 change: 0 additions & 1 deletion kitty/README.md

This file was deleted.

2,306 changes: 0 additions & 2,306 deletions kitty/kitty.conf

This file was deleted.

80 changes: 0 additions & 80 deletions kitty/theme.conf

This file was deleted.

27 changes: 7 additions & 20 deletions nvim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
```sh
brew install neovim
brew install ripgrep # is required for grep searching with Telescope (OPTIONAL).

git clone [email protected]:senelway/dotfiles.git ~/.config/_tmp
cd ~/.config/_tmp
mv nvim ../nvim
```

## Uninstall
Expand All @@ -21,7 +25,7 @@ cd ~/.config/nvim/lua/custom/
# mappings.lua there is a custom hotkeys
```

## Hotkeys
## All Hotkeys

```sh
## <leader>ch
Expand All @@ -41,25 +45,8 @@ sudo nvim

## Plugins list

- [Chat gpt](https://github.com/jackMort/ChatGPT.nvim)
- [Symbols in right tree](https://github.com/simrat39/symbols-outline.nvim)
- [Todos and etc](https://github.com/folke/todo-comments.nvim)
- [Troubles](https://github.com/folke/trouble.nvim)
- [Copilot](https://github.com/zbirenbaum/copilot.lua)

## ChatGPT settings

```sh
# generate a token https://platform.openai.com/account/api-keys

export OPENAI_API_KEY=""

# ~/.zshrc
# export OPENAI_API_KEY=""

# hotkey is `<leader>gg`
# ./lua/custom/mappings.lua
```
- [Custom](https://github.com/senelway/dotfiles/blob/main/nvim/lua/custom/plugins.lua)
- [Base](https://github.com/senelway/dotfiles/blob/main/nvim/lua/plugins/init.lua)

## Spellcheck

Expand Down
1 change: 1 addition & 0 deletions nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"nvim-web-devicons": { "branch": "master", "commit": "efbfed0567ef4bfac3ce630524a0f6c8451c5534" },
"nvterm": { "branch": "main", "commit": "5ae78fb332e92447121d2af58a6313189a7799fb" },
"plenary.nvim": { "branch": "master", "commit": "267282a9ce242bbb0c5dc31445b6d353bed978bb" },
"project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" },
"rest.nvim": { "branch": "main", "commit": "22673c848768ff25517154a5aebfebc0c77d0b4f" },
"telescope.nvim": { "branch": "master", "commit": "22735947d84d78f29436c203f0a4b8dc15dda204" },
"trouble.nvim": { "branch": "main", "commit": "40aad004f53ae1d1ba91bcc5c29d59f07c5f01d3" },
Expand Down
2 changes: 1 addition & 1 deletion nvim/lua/custom/configs/overrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ M.treesitter = {
}

M.telescope = {
extensions_list = { "harpoon", "themes", "terms" },
extensions_list = { "harpoon", "themes", "terms", "projects" },
}

M.mason = {
Expand Down
1 change: 1 addition & 0 deletions nvim/lua/custom/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ M.telescope = {
["<leader>gbb"] = { "<cmd> Telescope git_branches <CR>", "git branches" },
["<leader>fs"] = { "<cmd> Telescope grep_string <CR>", "grep with word under cursor" },
["<leader>fc"] = { "<cmd> Telescope current_buffer_fuzzy_find <CR>", "Find in current buffer" },
["<leader>fp"] = { "<cmd> Telescope projects <CR>", "Open projects list" },
},
}

Expand Down
103 changes: 57 additions & 46 deletions nvim/lua/custom/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,64 @@ local overrides = require "custom.configs.overrides"
local plugins = {
-- Override plugin definition options
--
{
"neovim/nvim-lspconfig",
dependencies = {
-- format & linting
{
"jose-elias-alvarez/null-ls.nvim",
config = function()
require "custom.configs.null-ls"
end,
},
},
config = function()
require "plugins.configs.lspconfig"
require "custom.configs.lspconfig"
end, -- Override to setup mason-lspconfig
},

-- override plugin configs
{
"williamboman/mason.nvim",
opts = overrides.mason,
},

{
"nvim-treesitter/nvim-treesitter",
opts = overrides.treesitter,
},
{
"nvim-tree/nvim-tree.lua",
opts = overrides.nvimtree,
},

-- Install a plugin
{
"max397574/better-escape.nvim",
event = "InsertEnter",
config = function()
require("better_escape").setup()
end,
},

-------------------------------
-------------------------------
-------------------------------
-------------------------------
-------------------------------
-------------------------------

{
"ahmedkhalf/project.nvim",
dependencies = "nvim-telescope/telescope.nvim",
cmd = { "ProjectRoot" },
config = function()
require("project_nvim").setup {
manual_mode = true,
}
end,
},
{
"kdheepak/lazygit.nvim",
dependencies = "nvim-lua/plenary.nvim",
Expand Down Expand Up @@ -80,52 +137,6 @@ local plugins = {
}
end,
},
-------------------------------
-------------------------------
-------------------------------
-------------------------------
-------------------------------
-------------------------------
{
"neovim/nvim-lspconfig",
dependencies = {
-- format & linting
{
"jose-elias-alvarez/null-ls.nvim",
config = function()
require "custom.configs.null-ls"
end,
},
},
config = function()
require "plugins.configs.lspconfig"
require "custom.configs.lspconfig"
end, -- Override to setup mason-lspconfig
},

-- override plugin configs
{
"williamboman/mason.nvim",
opts = overrides.mason,
},

{
"nvim-treesitter/nvim-treesitter",
opts = overrides.treesitter,
},
{
"nvim-tree/nvim-tree.lua",
opts = overrides.nvimtree,
},

-- Install a plugin
{
"max397574/better-escape.nvim",
event = "InsertEnter",
config = function()
require("better_escape").setup()
end,
},
}

return plugins

0 comments on commit c4048ea

Please sign in to comment.