use wsl nvim config
This commit is contained in:
parent
4aa17d8d06
commit
7d94ba5b29
2 changed files with 126 additions and 22 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
vim.g.mapleader = " "
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
vim.lsp.inlay_hint.enable = true
|
vim.lsp.inlay_hint.enable = true
|
||||||
vim.opt.tabstop = 8
|
vim.opt.tabstop = 8
|
||||||
|
|
@ -23,10 +24,25 @@ vim.pack.add({
|
||||||
'https://github.com/nvim-tree/nvim-web-devicons',
|
'https://github.com/nvim-tree/nvim-web-devicons',
|
||||||
"https://github.com/nvim-lualine/lualine.nvim",
|
"https://github.com/nvim-lualine/lualine.nvim",
|
||||||
"https://github.com/tinted-theming/tinted-nvim.git",
|
"https://github.com/tinted-theming/tinted-nvim.git",
|
||||||
|
"https://github.com/nvim-telescope/telescope.nvim.git",
|
||||||
|
"https://github.com/nvim-lua/plenary.nvim.git",
|
||||||
|
"https://github.com/romgrk/barbar.nvim.git",
|
||||||
|
"https://github.com/sschleemilch/slimline.nvim",
|
||||||
|
"https://github.com/mason-org/mason.nvim",
|
||||||
"https://github.com/neovim/nvim-lspconfig",
|
"https://github.com/neovim/nvim-lspconfig",
|
||||||
"https://github.com/vyfor/cord.nvim",
|
"https://github.com/vyfor/cord.nvim",
|
||||||
})
|
})
|
||||||
|
require('mason').setup()
|
||||||
|
require('telescope').setup()
|
||||||
|
require('barbar').setup({
|
||||||
|
animation = false,
|
||||||
|
tabpages = true,
|
||||||
|
icons = {
|
||||||
|
buffer_index = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
require('tinted-nvim').setup({
|
require('tinted-nvim').setup({
|
||||||
|
default_scheme = "base16-catppuccin-mocha",
|
||||||
selector = { enabled = true, mode = "cmd" },
|
selector = { enabled = true, mode = "cmd" },
|
||||||
ui = {
|
ui = {
|
||||||
transparent = true,
|
transparent = true,
|
||||||
|
|
@ -48,35 +64,63 @@ require("cord").setup({
|
||||||
},
|
},
|
||||||
editor = { tooltip = "ur gay x3" },
|
editor = { tooltip = "ur gay x3" },
|
||||||
})
|
})
|
||||||
require("lualine").setup({
|
require('slimline').setup({
|
||||||
options = {
|
spaces = {
|
||||||
theme = "tinted",
|
components = " ",
|
||||||
section_separators = { left = "", right = "" },
|
left = "",
|
||||||
component_separators = { left = "", right = "" },
|
right = "",
|
||||||
},
|
},
|
||||||
|
components = {
|
||||||
sections = {
|
left = {
|
||||||
lualine_a = { "mode" },
|
'mode',
|
||||||
lualine_c = { "diagnostics" },
|
'path',
|
||||||
lualine_b = { "filename", { "filetype", icon_only = true } },
|
'diagnostics',
|
||||||
lualine_x = { "lsp_status", },
|
},
|
||||||
lualine_y = { "" },
|
right = {
|
||||||
lualine_z = { "location" },
|
'filetype_lsp',
|
||||||
|
'progress',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sep = {
|
||||||
|
hide = {
|
||||||
|
first = true, -- hides the first separator of the line
|
||||||
|
last = true, -- hides the last separator of the line
|
||||||
|
},
|
||||||
|
left = " ",
|
||||||
|
right = " ",
|
||||||
|
},
|
||||||
|
style = 'fg',
|
||||||
|
bold = false,
|
||||||
|
hl = {
|
||||||
|
primary = 'StatusLine',
|
||||||
|
secondary = 'StatusLineNC',
|
||||||
|
base = 'StatusLine',
|
||||||
|
base_inactive = 'StatusLineNC',
|
||||||
|
},
|
||||||
|
configs = {
|
||||||
|
mode = {
|
||||||
|
verbose = true,
|
||||||
|
},
|
||||||
|
path = {
|
||||||
|
},
|
||||||
|
progress = {
|
||||||
|
follow = 'mode',
|
||||||
|
},
|
||||||
|
filetype_lsp = {
|
||||||
|
hl = {
|
||||||
|
primary = 'String',
|
||||||
|
secondary = 'Function',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
tabline = {
|
|
||||||
lualine_a = { { 'buffers', mode = 2, show_modified_status = true, } },
|
|
||||||
lualine_b = { 'branch' },
|
|
||||||
lualine_c = {},
|
|
||||||
lualine_x = {},
|
|
||||||
lualine_y = {},
|
|
||||||
lualine_z = { 'tabs' }
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
local map = vim.keymap.set
|
local map = vim.keymap.set
|
||||||
for i = 1, 10 do
|
for i = 1, 10 do
|
||||||
map("n", "<A-" .. i .. ">", "<cmd> LualineBuffersJump! " .. i .. "<cr>")
|
map("n", "<A-" .. i .. ">", "<cmd> BufferGoto " .. i .. "<cr>")
|
||||||
end
|
end
|
||||||
|
|
||||||
map("n", "<C-f>", function() vim.lsp.buf.format() end)
|
map("n", "<C-f>", function() vim.lsp.buf.format() end)
|
||||||
|
map("n", "<leader>ff", "<cmd> Telescope find_files<cr>")
|
||||||
map("n", "<leader>t", "<cmd> terminal <cr>")
|
map("n", "<leader>t", "<cmd> terminal <cr>")
|
||||||
map("t", "<esc>", "<c-\\><c-n>")
|
map("t", "<esc>", "<c-\\><c-n>")
|
||||||
map("n", "<leader>w", "<cmd> bdelete! <cr>")
|
map("n", "<leader>w", "<cmd> bdelete! <cr>")
|
||||||
|
|
|
||||||
60
nvim/.config/nvim/nvim-pack-lock.json
Normal file
60
nvim/.config/nvim/nvim-pack-lock.json
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
{
|
||||||
|
"plugins": {
|
||||||
|
"barbar.nvim": {
|
||||||
|
"rev": "337ecfadb8bf005050990bf2f624dc4fc828dabd",
|
||||||
|
"src": "https://github.com/romgrk/barbar.nvim.git"
|
||||||
|
},
|
||||||
|
"blink.cmp": {
|
||||||
|
"rev": "0f54bd78892f587db4dcf100a23eaddfc2a9df7d",
|
||||||
|
"src": "https://github.com/saghen/blink.cmp.git"
|
||||||
|
},
|
||||||
|
"blink.indent": {
|
||||||
|
"rev": "8b69b9262891fe81fe728fe6a52fa2a84dd5d5e0",
|
||||||
|
"src": "https://github.com/saghen/blink.indent"
|
||||||
|
},
|
||||||
|
"blink.lib": {
|
||||||
|
"rev": "5876dd95deeb70aadbe9f1c0b7117a135061cdac",
|
||||||
|
"src": "https://github.com/saghen/blink.lib"
|
||||||
|
},
|
||||||
|
"cord.nvim": {
|
||||||
|
"rev": "8f081613c1314a0d6f38839c2788216621efb4d9",
|
||||||
|
"src": "https://github.com/vyfor/cord.nvim"
|
||||||
|
},
|
||||||
|
"lualine.nvim": {
|
||||||
|
"rev": "221ce6b2d999187044529f49da6554a92f740a96",
|
||||||
|
"src": "https://github.com/nvim-lualine/lualine.nvim"
|
||||||
|
},
|
||||||
|
"mason.nvim": {
|
||||||
|
"rev": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d",
|
||||||
|
"src": "https://github.com/mason-org/mason.nvim"
|
||||||
|
},
|
||||||
|
"nvim-lspconfig": {
|
||||||
|
"rev": "e7ca2c95ba316a8b846d3f3546d407908c5c4ccb",
|
||||||
|
"src": "https://github.com/neovim/nvim-lspconfig"
|
||||||
|
},
|
||||||
|
"nvim-treesitter": {
|
||||||
|
"rev": "7248feaca45e4d944591497964bc19afa89ad1c6",
|
||||||
|
"src": "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||||
|
},
|
||||||
|
"nvim-web-devicons": {
|
||||||
|
"rev": "0ca28b61a04fe7426cefbdd52c2647ef0e335b5f",
|
||||||
|
"src": "https://github.com/nvim-tree/nvim-web-devicons"
|
||||||
|
},
|
||||||
|
"plenary.nvim": {
|
||||||
|
"rev": "74b06c6c75e4eeb3108ec01852001636d85a932b",
|
||||||
|
"src": "https://github.com/nvim-lua/plenary.nvim.git"
|
||||||
|
},
|
||||||
|
"slimline.nvim": {
|
||||||
|
"rev": "6c91c731863f47636c6ae0f00774ea6c2c90cb4b",
|
||||||
|
"src": "https://github.com/sschleemilch/slimline.nvim"
|
||||||
|
},
|
||||||
|
"telescope.nvim": {
|
||||||
|
"rev": "427b576c16792edad01a92b89721d923c19ad60f",
|
||||||
|
"src": "https://github.com/nvim-telescope/telescope.nvim.git"
|
||||||
|
},
|
||||||
|
"tinted-nvim": {
|
||||||
|
"rev": "a229fe0efadb4d9bfa92cad16175bb4e93fa70d4",
|
||||||
|
"src": "https://github.com/tinted-theming/tinted-nvim.git"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue