remove cursorline
This commit is contained in:
parent
7c8a25e825
commit
563475c721
1 changed files with 7 additions and 42 deletions
49
init.lua
49
init.lua
|
|
@ -5,14 +5,14 @@ vim.g.maplocalleader = "\\"
|
||||||
opt.number = true
|
opt.number = true
|
||||||
opt.relativenumber = true
|
opt.relativenumber = true
|
||||||
|
|
||||||
opt.cursorline = true
|
opt.cursorline = false
|
||||||
opt.termguicolors = true
|
opt.termguicolors = true
|
||||||
opt.winborder = "rounded"
|
opt.winborder = "rounded"
|
||||||
opt.signcolumn = "yes"
|
opt.signcolumn = "yes"
|
||||||
vim.lsp.inlay_hint.enable = true
|
vim.lsp.inlay_hint.enable = true
|
||||||
opt.tabstop = 8
|
opt.tabstop = 8
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
vim.g.tinted_background_transparent = 0
|
vim.g.tinted_background_transparent = 1
|
||||||
opt.swapfile = false
|
opt.swapfile = false
|
||||||
opt.winborder = "single"
|
opt.winborder = "single"
|
||||||
|
|
||||||
|
|
@ -37,25 +37,16 @@ vim.pack.add({
|
||||||
{ src = "https://github.com/Saghen/blink.cmp", version = "v1" },
|
{ src = "https://github.com/Saghen/blink.cmp", version = "v1" },
|
||||||
})
|
})
|
||||||
-- function to set colorsceme
|
-- function to set colorsceme
|
||||||
local default_theme = "base16-oceanicnext"
|
vim.cmd("colorscheme " .. vim.fn.system("cat /home/lucy/.local/share/tinted-theming/tinty/current_scheme"))
|
||||||
local function get_tinty_theme()
|
|
||||||
local theme_name = vim.fn.system("cat /home/lucy/.local/share/tinted-theming/tinty/current_scheme")
|
|
||||||
|
|
||||||
if vim.v.shell_error ~= 0 then
|
|
||||||
return default_theme
|
|
||||||
else
|
|
||||||
return vim.trim(theme_name)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
vim.cmd("colorscheme " .. get_tinty_theme())
|
|
||||||
-- set up qmlls to point to the right binary
|
-- set up qmlls to point to the right binary
|
||||||
vim.lsp.config.qml = {
|
vim.lsp.config.qmlls = {
|
||||||
name = "qml-language-server",
|
name = "qmlls",
|
||||||
filetypes = { "qml" },
|
filetypes = { "qml" },
|
||||||
cmd = { "qml-language-server" },
|
cmd = { "qmlls6" },
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.lsp.enable("qml")
|
vim.lsp.enable("qmlls")
|
||||||
require("blink.cmp").setup({
|
require("blink.cmp").setup({
|
||||||
fuzzy = { implementation = "prefer_rust_with_warning" },
|
fuzzy = { implementation = "prefer_rust_with_warning" },
|
||||||
completion = {
|
completion = {
|
||||||
|
|
@ -163,29 +154,3 @@ map("n", "<A-t>", "<cmd>Lspsaga term_toggle<cr>")
|
||||||
map("t", "<esc>", "<c-\\><c-n>")
|
map("t", "<esc>", "<c-\\><c-n>")
|
||||||
map("i", "<C-space>", vim.lsp.completion.get, { desc = "trigger autocompletion" })
|
map("i", "<C-space>", vim.lsp.completion.get, { desc = "trigger autocompletion" })
|
||||||
|
|
||||||
-- tinty function
|
|
||||||
|
|
||||||
local function handle_focus_gained()
|
|
||||||
local new_theme_name = get_tinty_theme()
|
|
||||||
local current_theme_name = vim.g.colors_name
|
|
||||||
|
|
||||||
if current_theme_name ~= new_theme_name then
|
|
||||||
vim.cmd("colorscheme " .. new_theme_name)
|
|
||||||
require("lualine").setup()
|
|
||||||
end
|
|
||||||
require("lualine").setup()
|
|
||||||
end
|
|
||||||
|
|
||||||
local function main()
|
|
||||||
vim.o.termguicolors = true
|
|
||||||
vim.g.tinted_colorspace = 256
|
|
||||||
local current_theme_name = get_tinty_theme()
|
|
||||||
|
|
||||||
vim.cmd("colorscheme " .. current_theme_name)
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("FocusGained", {
|
|
||||||
callback = handle_focus_gained,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
main()
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue