add nice autocomplete and indent guides"
This commit is contained in:
parent
a2a00851c9
commit
6b9f3f8861
1 changed files with 1 additions and 68 deletions
68
init.lua
68
init.lua
|
|
@ -1,68 +0,0 @@
|
||||||
vim.opt.relativenumber = true
|
|
||||||
vim.lsp.inlay_hint.enable = true
|
|
||||||
vim.opt.tabstop = 8
|
|
||||||
vim.opt.expandtab = true
|
|
||||||
vim.opt.swapfile = false
|
|
||||||
vim.opt.shiftwidth = 8
|
|
||||||
vim.diagnostic.config({
|
|
||||||
virtual_text = {
|
|
||||||
spacing = 4,
|
|
||||||
source = true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
vim.lsp.enable("lua_ls")
|
|
||||||
vim.lsp.enable("qmlls")
|
|
||||||
vim.lsp.enable("clangd")
|
|
||||||
vim.lsp.enable("lua-language-server")
|
|
||||||
-- add plugins
|
|
||||||
vim.pack.add({
|
|
||||||
"https://github.com/nvim-treesitter/nvim-treesitter",
|
|
||||||
"https://github.com/nvim-lualine/lualine.nvim",
|
|
||||||
"https://github.com/tinted-theming/tinted-nvim.git",
|
|
||||||
"https://github.com/neovim/nvim-lspconfig",
|
|
||||||
"https://github.com/vyfor/cord.nvim",
|
|
||||||
"https://github.com/nvim-mini/mini.nvim"
|
|
||||||
})
|
|
||||||
require('tinted-nvim').setup({
|
|
||||||
selector = { enabled = true, mode = "cmd" },
|
|
||||||
})
|
|
||||||
require('mini.basics').setup()
|
|
||||||
require('mini.icons').setup()
|
|
||||||
require('mini.pick').setup()
|
|
||||||
|
|
||||||
require("cord").setup({
|
|
||||||
display = {
|
|
||||||
theme = "atom",
|
|
||||||
},
|
|
||||||
editor = { tooltip = "ur gay x3" },
|
|
||||||
})
|
|
||||||
require("lualine").setup({
|
|
||||||
options = {
|
|
||||||
theme = "tinted",
|
|
||||||
},
|
|
||||||
sections = {
|
|
||||||
lualine_a = { "mode" },
|
|
||||||
lualine_b = { "diagnostics" },
|
|
||||||
lualine_c = { "filename" },
|
|
||||||
lualine_x = { "lsp_status", "filetype" },
|
|
||||||
lualine_y = { "" },
|
|
||||||
lualine_z = { "location" },
|
|
||||||
},
|
|
||||||
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
|
|
||||||
for i = 1, 10 do
|
|
||||||
map("n", "<A-" .. i .. ">", "<cmd> LualineBuffersJump! " .. i .. "<cr>")
|
|
||||||
end
|
|
||||||
map("n", "<C-f>", function() vim.lsp.buf.format() end)
|
|
||||||
map("n", "<leader>t", "<cmd> terminal <cr>")
|
|
||||||
map("t", "<esc>", "<c-\\><c-n>")
|
|
||||||
map("i", "<C-space>", "<C-X><C-O>")
|
|
||||||
map("n", "<leader>w", "<cmd> bdelete! <cr>")
|
|
||||||
1
init.lua
Symbolic link
1
init.lua
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../../dotfiles/nvim/.config/nvim/init.lua
|
||||||
Loading…
Reference in a new issue