qml fixes? not really they don't work. note: need to change mappings
This commit is contained in:
@@ -9,6 +9,24 @@ if vim.env.PROF then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({ 'VimLeavePre' }, {
|
||||||
|
group = vim.api.nvim_create_augroup('fuck_shada_temp', { clear = true }),
|
||||||
|
pattern = { '*' },
|
||||||
|
callback = function()
|
||||||
|
local status = 0
|
||||||
|
for _, f in ipairs(vim.fn.globpath(vim.fn.stdpath('data') .. '/shada', '*tmp*', false, true)) do
|
||||||
|
if vim.tbl_isempty(vim.fn.readfile(f)) then
|
||||||
|
status = status + vim.fn.delete(f)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if status ~= 0 then
|
||||||
|
vim.notify('Could not delete empty temporary ShaDa files.', vim.log.levels.ERROR)
|
||||||
|
vim.fn.getchar()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
desc = "Delete empty temp ShaDa files"
|
||||||
|
})
|
||||||
|
|
||||||
vim.cmd('source ' .. vim.fn.stdpath("config") .. "/cursor.vim")
|
vim.cmd('source ' .. vim.fn.stdpath("config") .. "/cursor.vim")
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
require("options")
|
require("options")
|
||||||
|
|||||||
@@ -164,7 +164,9 @@ lspconfig("texlab", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
lspconfig("qmlls", {
|
lspconfig("qmlls", {
|
||||||
cmd = { "qmlls6" },
|
cmd = { "qmlls6", "qmlls" },
|
||||||
|
filetypes = { "qml", "qmljs" },
|
||||||
|
root_markers = { ".git" },
|
||||||
})
|
})
|
||||||
|
|
||||||
lspconfig("jsonls", {
|
lspconfig("jsonls", {
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ $packages = @(
|
|||||||
"Rustlang.Rust.MSVC",
|
"Rustlang.Rust.MSVC",
|
||||||
"GoLang.Go",
|
"GoLang.Go",
|
||||||
"Kitware.Cmake",
|
"Kitware.Cmake",
|
||||||
"Ninja-build.Ninja"
|
"Ninja-build.Ninja",
|
||||||
|
"LuaLS.lua-language-server"
|
||||||
)
|
)
|
||||||
|
|
||||||
# cargo install --locked tree-sitter-cli
|
# cargo install --locked tree-sitter-cli
|
||||||
|
|||||||
Reference in New Issue
Block a user