63 lines
1.9 KiB
Lua
63 lines
1.9 KiB
Lua
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,
|
|
},
|
|
})
|
|
-- add plugins
|
|
vim.pack.add({
|
|
"https://github.com/nvim-treesitter/nvim-treesitter",
|
|
"https://github.com/nvim-lualine/lualine.nvim",
|
|
"https://github.com/RRethy/base16-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("lualine").setup({
|
|
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' }
|
|
}
|
|
})
|
|
require('tinted-nvim').setup({
|
|
selector = { enabled = true, mode = "cmd" },
|
|
})
|
|
require('mini.basics').setup()
|
|
require('mini.icons').setup()
|
|
require('mini.pick').setup()
|
|
|
|
vim.lsp.enable("lua_ls")
|
|
vim.lsp.enable("qmlls")
|
|
vim.lsp.enable("qml-language-server")
|
|
vim.lsp.enable("clangd")
|
|
vim.lsp.enable("lua-language-server")
|
|
require("cord").setup({
|
|
display = {
|
|
theme = "atom",
|
|
},
|
|
editor = { tooltip = "ur gay x3" },
|
|
})
|
|
local map = vim.keymap.set
|
|
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>")
|