neovim: update readme
This commit is contained in:
parent
4cb65ca512
commit
6a1506671f
41
README.md
41
README.md
|
@ -1,2 +1,41 @@
|
||||||
# nvim
|
# Neovim
|
||||||
|
|
||||||
Neovim Configuration
|
Neovim Configuration
|
||||||
|
|
||||||
|
![Screenshot]
|
||||||
|
|
||||||
|
This repository contains my Neovim configuration.
|
||||||
|
|
||||||
|
This Neovim configuration stay close to my [NixOS config] to keep up the dependencies used.
|
||||||
|
|
||||||
|
## Features (Configured for)
|
||||||
|
|
||||||
|
### Basic
|
||||||
|
|
||||||
|
- Syntax Highlighting via [Treesitter]
|
||||||
|
- Autocompletion and Git integration in the number column.
|
||||||
|
|
||||||
|
![Auto-Completion]
|
||||||
|
|
||||||
|
- LSP Integration
|
||||||
|
|
||||||
|
![Hover Window]
|
||||||
|
|
||||||
|
### Golang
|
||||||
|
|
||||||
|
- Auto detect implementation by [Gomplements] plugin.
|
||||||
|
|
||||||
|
![Gomplements-Pic]
|
||||||
|
|
||||||
|
- Generate stub implementation by searching the definition.
|
||||||
|
|
||||||
|
![Impl-Gif]
|
||||||
|
|
||||||
|
[NixOS config]: https://git.tigor.web.id/tigor/NixOS
|
||||||
|
[Treesitter]: https://github.com/nvim-treesitter/nvim-treesitter
|
||||||
|
[Hover Window]: https://public.tigor.web.id/git/images/neovim/hover.png
|
||||||
|
[Screenshot]: https://public.tigor.web.id/git/images/neovim/screenshot.png
|
||||||
|
[Auto-Completion]: https://public.tigor.web.id/git/images/neovim/autocomplete.png
|
||||||
|
[Gomplements]: https://github.com/maxandron/goplements.nvim
|
||||||
|
[Gomplements-Pic]: https://public.tigor.web.id/git/images/neovim/gomplements.png
|
||||||
|
[Impl-Gif]: https://public.tigor.web.id/git/images/neovim/impl.gif
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
"mini.icons": { "branch": "main", "commit": "fe63fe080e76d80713557e5f0c65bc15b14b152d" },
|
"mini.icons": { "branch": "main", "commit": "fe63fe080e76d80713557e5f0c65bc15b14b152d" },
|
||||||
"mini.nvim": { "branch": "main", "commit": "7c00ea1a6b35332746e1a2fa768e26c5fa9c3589" },
|
"mini.nvim": { "branch": "main", "commit": "7c00ea1a6b35332746e1a2fa768e26c5fa9c3589" },
|
||||||
"mini.pairs": { "branch": "main", "commit": "927d19cbdd0e752ab1c7eed87072e71d2cd6ff51" },
|
"mini.pairs": { "branch": "main", "commit": "927d19cbdd0e752ab1c7eed87072e71d2cd6ff51" },
|
||||||
|
"mini.surround": { "branch": "main", "commit": "d8913ed23be0a1a4585ae34414821cc343a46174" },
|
||||||
"neo-tree.nvim": { "branch": "main", "commit": "206241e451c12f78969ff5ae53af45616ffc9b72" },
|
"neo-tree.nvim": { "branch": "main", "commit": "206241e451c12f78969ff5ae53af45616ffc9b72" },
|
||||||
"neotest": { "branch": "master", "commit": "32ff2ac21135a372a42b38ae131e531e64833bd3" },
|
"neotest": { "branch": "master", "commit": "32ff2ac21135a372a42b38ae131e531e64833bd3" },
|
||||||
"neotest-golang": { "branch": "main", "commit": "cfaf82eeb198651dffabc6cf17b019a117147957" },
|
"neotest-golang": { "branch": "main", "commit": "cfaf82eeb198651dffabc6cf17b019a117147957" },
|
||||||
|
@ -72,6 +73,7 @@
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "ca93cb2c34b67ab22d01976fc90bc95627a3317f" },
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "ca93cb2c34b67ab22d01976fc90bc95627a3317f" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "dc5e1687ab76ee02e0f11c5ce137f530b36e98b3" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "dc5e1687ab76ee02e0f11c5ce137f530b36e98b3" },
|
||||||
"one-small-step-for-vimkind": { "branch": "main", "commit": "0f0d5bc67786c36edc2cb6fb5faa5c09dd1a6e10" },
|
"one-small-step-for-vimkind": { "branch": "main", "commit": "0f0d5bc67786c36edc2cb6fb5faa5c09dd1a6e10" },
|
||||||
|
"peek.nvim": { "branch": "master", "commit": "5820d937d5414baea5f586dc2a3d912a74636e5b" },
|
||||||
"persistence.nvim": { "branch": "main", "commit": "f6aad7dde7fcf54148ccfc5f622c6d5badd0cc3d" },
|
"persistence.nvim": { "branch": "main", "commit": "f6aad7dde7fcf54148ccfc5f622c6d5badd0cc3d" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
||||||
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
|
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
|
||||||
|
|
|
@ -16,6 +16,7 @@ require("lazy").setup {
|
||||||
{ import = "lazyvim.plugins.extras.coding.copilot" },
|
{ import = "lazyvim.plugins.extras.coding.copilot" },
|
||||||
{ import = "lazyvim.plugins.extras.coding.yanky" },
|
{ import = "lazyvim.plugins.extras.coding.yanky" },
|
||||||
{ import = "lazyvim.plugins.extras.coding.luasnip" },
|
{ import = "lazyvim.plugins.extras.coding.luasnip" },
|
||||||
|
{ import = "lazyvim.plugins.extras.coding.mini-surround" },
|
||||||
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
||||||
|
|
||||||
{ import = "lazyvim.plugins.extras.dap.core" },
|
{ import = "lazyvim.plugins.extras.dap.core" },
|
||||||
|
|
|
@ -5,9 +5,10 @@ return {
|
||||||
prefer_local = true,
|
prefer_local = true,
|
||||||
excluded_servers = {
|
excluded_servers = {
|
||||||
"gopls", -- gopls likes to be double attached if enabled here.
|
"gopls", -- gopls likes to be double attached if enabled here.
|
||||||
"postgres_lsp",
|
|
||||||
},
|
},
|
||||||
preferred_servers = {
|
preferred_servers = {
|
||||||
|
gitcommit = {},
|
||||||
|
sql = {},
|
||||||
nix = {
|
nix = {
|
||||||
"nil_ls",
|
"nil_ls",
|
||||||
},
|
},
|
||||||
|
@ -15,6 +16,7 @@ return {
|
||||||
"buf-language-server",
|
"buf-language-server",
|
||||||
},
|
},
|
||||||
sh = {},
|
sh = {},
|
||||||
|
markdown = {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- enabled = false,
|
-- enabled = false,
|
||||||
|
|
|
@ -1,8 +1,37 @@
|
||||||
return {
|
return {
|
||||||
|
{
|
||||||
"MeanderingProgrammer/markdown.nvim",
|
"MeanderingProgrammer/markdown.nvim",
|
||||||
name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim
|
name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||||
config = function()
|
config = function()
|
||||||
require("render-markdown").setup {}
|
require("render-markdown").setup {}
|
||||||
end,
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"toppair/peek.nvim",
|
||||||
|
ft = { "markdown" },
|
||||||
|
cmd = { "Peek" },
|
||||||
|
build = "deno task --quiet build:fast",
|
||||||
|
opts = function()
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
desc = "Create peek command on markdown ft",
|
||||||
|
pattern = "markdown",
|
||||||
|
callback = function(ev)
|
||||||
|
vim.api.nvim_buf_create_user_command(ev.buf, "Peek", function(ctx)
|
||||||
|
local peek = require "peek"
|
||||||
|
if peek.is_open() then
|
||||||
|
if ctx.bang then
|
||||||
|
peek.close()
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
|
peek.open()
|
||||||
|
end, { bang = true })
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
return {
|
||||||
|
app = { "chromium", "--new-window" },
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
return {
|
|
||||||
enabled = false,
|
|
||||||
"akinsho/toggleterm.nvim",
|
|
||||||
keys = {
|
|
||||||
{ "<F5>", "Open Toggleterm" },
|
|
||||||
},
|
|
||||||
cmd = { "ToggleTerm" },
|
|
||||||
version = "*",
|
|
||||||
opts = {
|
|
||||||
size = function(term)
|
|
||||||
if term.direction == "horizontal" then
|
|
||||||
if vim.o.lines < 60 then
|
|
||||||
return 12
|
|
||||||
end
|
|
||||||
return 20
|
|
||||||
elseif term.direction == "vertical" then
|
|
||||||
return vim.o.columns * 0.3
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
open_mapping = [[<F5>]],
|
|
||||||
},
|
|
||||||
}
|
|
Loading…
Reference in a new issue