Watch
1
0
Fork
You've already forked Zoe-Dotfiles
0
mirror of synced 2026-11-03 21:07:17 +00:00
Zoe-Dotfiles/nvim/init.lua
2026-08-29 21:21:08 +02:00

105 lines
2.3 KiB
Lua

local set = vim.opt
set.wrap = false
set.expandtab = false
set.shiftwidth = 2
set.tabstop = 2
set.number = true
vim.diagnostic.config({
virtual_text = {
spacing = 2,
source = true,
},
})
set.termguicolors = true
vim.lsp.inlay_hint.enable = true
vim.g.tinted_background_transparent = 1
vim.g.tinted_italic = 0
vim.g.tinted_bold = 0
vim.g.tinted_italic = 0
vim.g.tinted_strikethrough = 0
vim.g.tinted_underline = 0
vim.g.tinted_undercurl = 0
vim.pack.add({
"https://github.com/folke/snacks.nvim",
"https://github.com/nvim-lualine/lualine.nvim",
"https://github.com/tinted-theming/tinted-vim",
"https://github.com/neovim/nvim-lspconfig",
--"https://github.com/nvim-treesitter/nvim-treesitter",
"https://github.com/saghen/blink.lib",
"https://github.com/Saghen/blink.cmp",
})
--vim.cmd.colorscheme('base24-builtin-dark')
vim.cmd.colorscheme('base16-purpledream')
vim.lsp.config("clangd", {
cmd = { "clangd" },
filetypes = { "c", "cpp" },
})
vim.lsp.enable("clangd")
vim.lsp.config("qmlls", {
cmd = { "qmlls" },
filetypes = { "qml" },
})
vim.lsp.enable("qmlls")
local cmp = require('blink.cmp')
cmp.build():pwait()
cmp.setup({
keymap = { preset = 'super-tab' },
fuzzy = { implementation = "prefer_rust_with_warning" },
completion = {
menu = {
auto_show = true,
},
},
sources = {
default = { "lsp", "path", "snippets", "buffer" },
},
})
require("snacks").setup({
bigfile = { enabled = true },
dashboard = { enabled = false },
explorer = { enabled = false },
indent = { enabled = false },
input = { enabled = true },
picker = { enabled = false },
notifier = { enabled = true },
quickfile = { enabled = false },
scope = { enabled = true },
scroll = { enabled = true },
statuscolumn = { enabled = true },
words = { enabled = false },
})
require('lualine').setup {
options = {
theme = 'auto',
component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''},
ignore_focus = {},
always_divide_middle = true,
globalstatus = false,
},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch', 'diagnostics'},
lualine_c = {'filename'},
lualine_x = {--[['encoding', 'fileformat',]] 'lsp_status', 'filetype'},
lualine_y = {--[['progress']]},
lualine_z = {'location'}
},
}